Skip to content

Commit e90673e

Browse files
authored
Merge pull request #29 from mlaletina95/launch-context-patient-code
fix: SDC launchContext code patient (was Patient)
2 parents f46c996 + 878295c commit e90673e

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

resources/Questionnaire/extract-vital-signs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ meta:
99
- https://emr-core.beda.software/StructureDefinition/fhir-emr-questionnaire
1010
launchContext:
1111
- name:
12-
code: Patient
12+
system: http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext
13+
code: patient
1314
type:
1415
- Patient
1516
contained:
@@ -41,7 +42,7 @@ item:
4142
hidden: true
4243
initialExpression:
4344
language: text/fhirpath
44-
expression: "%Patient.id.first()"
45+
expression: "%patient.id.first()"
4546

4647
- linkId: body-temperature
4748
text: Body temperature

resources/Questionnaire/initial-expression.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ meta:
99
- https://emr-core.beda.software/StructureDefinition/fhir-emr-questionnaire
1010
launchContext:
1111
- name:
12-
code: Patient
12+
system: http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext
13+
code: patient
1314
type:
1415
- Patient
1516
item:
@@ -20,4 +21,4 @@ item:
2021
entryFormat: Firstname Lastname
2122
initialExpression:
2223
language: text/fhirpath
23-
expression: "%Patient.name.given.first() & ' ' & %Patient.name.family.first()"
24+
expression: "%patient.name.given.first() & ' ' & %patient.name.family.first()"

resources/Questionnaire/launch-context.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ meta:
99
- https://emr-core.beda.software/StructureDefinition/fhir-emr-questionnaire
1010
launchContext:
1111
- name:
12-
code: Patient
12+
system: http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext
13+
code: patient
1314
type:
1415
- Patient
1516
item:
1617
- linkId: instructions
1718
text: >-
1819
Instructions: Open this form in Patient context.
19-
Patient ID and full name are prefilled from %Patient launch context.
20+
Patient ID and full name are prefilled from %patient launch context.
2021
type: display
2122

2223
- linkId: patient-id
@@ -25,12 +26,12 @@ item:
2526
readOnly: true
2627
initialExpression:
2728
language: text/fhirpath
28-
expression: "%Patient.id.first()"
29+
expression: "%patient.id.first()"
2930

3031
- linkId: patient-name
3132
text: Patient name from launchContext
3233
type: string
3334
readOnly: true
3435
initialExpression:
3536
language: text/fhirpath
36-
expression: "%Patient.name.first().given.first() + ' ' + %Patient.name.first().family"
37+
expression: "%patient.name.first().given.first() + ' ' + %patient.name.first().family"

resources/Questionnaire/source-queries.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ meta:
99
- https://emr-core.beda.software/StructureDefinition/fhir-emr-questionnaire
1010
launchContext:
1111
- name:
12-
code: Patient
12+
system: http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext
13+
code: patient
1314
type:
1415
- Patient
1516
sourceQueries:
@@ -21,7 +22,7 @@ contained:
2122
entry:
2223
- request:
2324
method: GET
24-
url: /Condition?patient=Patient/{{ %Patient.id }}&_sort=-recorded-date&_count=200
25+
url: /Condition?patient=Patient/{{ %patient.id }}&_sort=-recorded-date&_count=200
2526
item:
2627
- linkId: conditions-summary
2728
text: Conditions
@@ -31,7 +32,5 @@ item:
3132
language: text/fhirpath
3233
expression: >-
3334
%ConditionBundle.entry.resource.entry.resource
34-
.select(
35-
'Name: ' & (code.coding.first().display | code.text).first()
36-
)
35+
.select('Name: ' & (code.coding.first().display | code.text).first())
3736
.join('\n')

0 commit comments

Comments
 (0)