Skip to content

Commit

Permalink
fix: Prevent HTML encoding of apostrophes in generated FSH descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanGHole committed Dec 16, 2024
1 parent 946dbbc commit df04dff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions public/assets/ProgramLogicalModel.fsh.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Description: "{{description}}"
* enrollmentDate 1..1 date "{{enrollmentDateLabel}}"
* incidentDate 0..1 date "{{incidentDateLabel}}"
{{#programTrackedEntityAttributes}}
* {{toFhirDataElementName trackedEntityAttribute}} {{toFhirCardinality mandatory}}..1 {{toFhirDataType trackedEntityAttribute.valueType trackedEntityAttribute.optionSet}} "{{toFhirElementDescription trackedEntityAttribute}}"
* {{toFhirDataElementName trackedEntityAttribute}} {{toFhirCardinality mandatory}}..1 {{toFhirDataType trackedEntityAttribute.valueType trackedEntityAttribute.optionSet}} "{{{toFhirElementDescription trackedEntityAttribute}}}"
{{#if trackedEntityAttribute.optionSet}}
* {{toFhirDataElementName trackedEntityAttribute}} from {{toPascalCase trackedEntityAttribute.optionSet.name}}VS (required)
{{/if}}
{{/programTrackedEntityAttributes}}
{{#programStages}}
* {{toCamelCase name}} 0..{{isRepeatable repeatable}} {{toPascalCase name}} "{{toFhirElementDescription this}}"
* {{toCamelCase name}} 0..{{isRepeatable repeatable}} {{toPascalCase name}} "{{{toFhirElementDescription this}}}"
{{/programStages}}
2 changes: 1 addition & 1 deletion public/assets/ProgramStageLogicalModel.fsh.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: "{{description}}"
{{/if}}
* executionDate 0..1 date "{{displayExecutionDateLabel}}"
{{#programStageDataElements}}
* {{toFhirDataElementName dataElement}} {{toFhirCardinality compulsory}}..1 {{toFhirDataType dataElement.valueType dataElement.optionSet}} "{{toFhirElementDescription dataElement}}"
* {{toFhirDataElementName dataElement}} {{toFhirCardinality compulsory}}..1 {{toFhirDataType dataElement.valueType dataElement.optionSet}} "{{{toFhirElementDescription dataElement}}}"
{{#if dataElement.optionSet}}
* {{toFhirDataElementName dataElement}} from {{toPascalCase dataElement.optionSet.name}}VS (required)
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion src/tests/resources/expectedTbProgram.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Title: "TB program"
Parent: Base
* enrollmentDate 1..1 date "Start of treatment date"
* incidentDate 0..1 date "Start of treatment date"
* firstName 1..1 string "First name"
* firstName 1..1 string "This is the person's first name"
* lastName 1..1 string "Last name"
* gender 1..1 code "Gender"
* gender from GenderVS (required)
Expand Down
2 changes: 1 addition & 1 deletion src/tests/resources/mockTbProgram.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"trackedEntityAttribute": {
"name": "First name",
"shortName": "First name",
"description": "First name",
"description": "This is the person's first name",
"valueType": "TEXT",
"displayName": "First name"
}
Expand Down

0 comments on commit df04dff

Please sign in to comment.