Skip to content

Commit 9f58d37

Browse files
committed
Added IGs and example resources
1 parent 2e401b9 commit 9f58d37

15 files changed

Lines changed: 577 additions & 6 deletions

File tree

env/aidbox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ BOX_FEATURES_FTR_PULL_ENABLE=false
2626
AIDBOX_SDC_ENABLED=false
2727

2828
AIDBOX_FHIR_SCHEMA_VALIDATION=true
29-
AIDBOX_FHIR_PACKAGES=hl7.fhir.r4b.core#4.3.0
29+
AIDBOX_FHIR_PACKAGES=hl7.fhir.r4b.core#4.3.0:hl7.fhir.ph.core.r4b#0.1.0
3030
AIDBOX_TERMINOLOGY_SERVICE_BASE_URL="https://tx.health-samurai.io/fhir"
3131

3232
BOX_INIT_BUNDLE="file:///resources/seeds/initBundle.json"

package.ph.r4b.tgz

135 KB
Binary file not shown.

package.tgz

58.7 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
resourceType: AllergyIntolerance
2+
id: allergy-single-ex
3+
meta:
4+
profile:
5+
- "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-allergyintolerance"
6+
text:
7+
status: generated
8+
div: '<div xmlns="http://www.w3.org/1999/xhtml">Juan Dela Cruz has a high criticality, active allergy to Benethamine penicillin.</div>'
9+
code:
10+
coding:
11+
- code: "294494002"
12+
system: "http://snomed.info/sct"
13+
display: "Benethamine penicillin allergy"
14+
criticality: high
15+
clinicalStatus:
16+
coding:
17+
- code: active
18+
system: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"
19+
display: Active
20+
patient:
21+
reference: Patient/patient-single-ex
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
resourceType: Condition
2+
id: condition-single-ex
3+
meta:
4+
profile:
5+
- "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-condition"
6+
text:
7+
status: generated
8+
div: '<div xmlns="http://www.w3.org/1999/xhtml">Juan Dela Cruz has an active diagnosis of Type 2 Diabetes Mellitus.</div>'
9+
clinicalStatus:
10+
coding:
11+
- code: active
12+
system: "http://terminology.hl7.org/CodeSystem/condition-clinical"
13+
display: Active
14+
code:
15+
coding:
16+
- code: "44054006"
17+
system: "http://snomed.info/sct"
18+
display: "Diabetes mellitus type 2"
19+
subject:
20+
reference: Patient/patient-single-ex
21+
encounter:
22+
reference: Encounter/encounter-single-ex
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
resourceType: Encounter
2+
id: encounter-single-ex
3+
meta:
4+
profile:
5+
- "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter"
6+
text:
7+
status: generated
8+
div: '<div xmlns="http://www.w3.org/1999/xhtml">An ambulatory encounter for Juan Dela Cruz that has been completed.</div>'
9+
status: finished
10+
class:
11+
code: AMB
12+
system: "http://terminology.hl7.org/CodeSystem/v3-ActCode"
13+
display: ambulatory
14+
subject:
15+
reference: Patient/patient-single-ex
16+
serviceProvider:
17+
reference: Organization/organization-single-ex
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
resourceType: Immunization
2+
id: immunization-single-ex
3+
meta:
4+
profile:
5+
- "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-immunization"
6+
identifier:
7+
- system: "urn:ietf:rfc:3986"
8+
value: "urn:oid:1.3.6.1.4.1.21367.2005.3.7.1234"
9+
note:
10+
- text: "Notes on adminstration of vaccine"
11+
performer:
12+
- actor:
13+
reference: Practitioner/practitioner-single-ex
14+
function:
15+
coding:
16+
- code: OP
17+
system: "http://terminology.hl7.org/CodeSystem/v2-0443"
18+
vaccineCode:
19+
coding:
20+
- code: "123"
21+
system: "http://hl7.org/fhir/sid/cvx"
22+
text: "influenza, H5N1-1203"
23+
text:
24+
status: generated
25+
div: '<div xmlns="http://www.w3.org/1999/xhtml">Juan Dela Cruz received a completed intramuscular flu shot (H5N1-1203) in the left arm on January 10, 2013. The vaccine lot number was AAJN11K and it was privately funded.</div>'
26+
doseQuantity:
27+
value: 5
28+
code: mg
29+
system: "http://unitsofmeasure.org"
30+
encounter:
31+
reference: Encounter/encounter-single-ex
32+
expirationDate: "2015-02-15"
33+
fundingSource:
34+
coding:
35+
- code: private
36+
system: "http://terminology.hl7.org/CodeSystem/immunization-funding-source"
37+
isSubpotent: true
38+
lotNumber: AAJN11K
39+
occurrenceDateTime: "2013-01-10"
40+
patient:
41+
reference: Patient/patient-single-ex
42+
primarySource: true
43+
route:
44+
coding:
45+
- code: IM
46+
system: "http://terminology.hl7.org/CodeSystem/v3-RouteOfAdministration"
47+
display: "Injection, intramuscular"
48+
site:
49+
coding:
50+
- code: LA
51+
system: "http://terminology.hl7.org/CodeSystem/v3-ActSite"
52+
display: "left arm"
53+
status: completed
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
body:
2+
$let:
3+
contactMobile: >-
4+
$
5+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='contact-mobile').answer.valueString").0
6+
address: >-
7+
$
8+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='address').answer.valueString").0
9+
contactFirstName: >-
10+
$
11+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='contact-first-name').answer.valueString").0
12+
email: >-
13+
$
14+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='email').answer.valueString").0
15+
addContact: >-
16+
$
17+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='add-contact').answer.valueBoolean").0
18+
contactLastName: >-
19+
$
20+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='contact-last-name').answer.valueString").0
21+
birthDate: >-
22+
$
23+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='birth-date').answer.valueDate").0
24+
ssn: >-
25+
$
26+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='ssn').answer.valueString").0
27+
firstName: >-
28+
$
29+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='first-name').answer.valueString").0
30+
contactEmail: >-
31+
$
32+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='contact-email').answer.valueString").0
33+
hmo: >-
34+
$
35+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='hmo').answer.valueReference").0
36+
phm: >-
37+
$
38+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='phm').answer.valueReference").0
39+
lastName: >-
40+
$
41+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='last-name').answer.valueString").0
42+
navigator: >-
43+
$
44+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='navigator').answer.valueReference").0
45+
contactRelationship: >-
46+
$
47+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='contact-relationship').answer.valueCoding").0
48+
gender: >-
49+
$
50+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='gender').answer.valueCoding.code").0
51+
mobile: >-
52+
$
53+
fhirpath("QuestionnaireResponse.repeat(item).where(linkId='mobile').answer.valueString").0
54+
$body:
55+
$let:
56+
hmoReferenceSplit:
57+
$args:
58+
- $ hmo.reference
59+
- /
60+
$call: splitStr
61+
phmReferenceSplit:
62+
$args:
63+
- $ phm.reference
64+
- /
65+
$call: splitStr
66+
navigatorReferenceSplit:
67+
$args:
68+
- $ navigator.reference
69+
- /
70+
$call: splitStr
71+
$body:
72+
type: transaction
73+
entry:
74+
- request:
75+
url: /Patient
76+
method: POST
77+
resource:
78+
address:
79+
- text: $ address
80+
managingOrganization:
81+
id: $ hmoReferenceSplit.1
82+
display: $ hmo.display
83+
resourceType: $ hmoReferenceSplit.0
84+
name:
85+
- given:
86+
- $ firstName
87+
family: $ lastName
88+
birthDate: $ birthDate
89+
resourceType: Patient
90+
active: true
91+
identifier:
92+
- value: $ ssn
93+
system: http://fhir.health.gov.il/identifier/il-national-id
94+
telecom:
95+
- value: $ mobile
96+
system: phone
97+
- value: $ email
98+
system: email
99+
gender: $ gender
100+
contact:
101+
- $if: $ addContact
102+
$then:
103+
name:
104+
given:
105+
- $ contactFirstName
106+
family: $ contactLastName
107+
telecom:
108+
- use: work
109+
value: $ contactMobile
110+
system: phone
111+
- use: work
112+
value: $ contactEmail
113+
system: email
114+
relationship:
115+
- coding:
116+
- code: $ contactRelationship.code
117+
system: $ contactRelationship.system
118+
display: $ contactRelationship.display
119+
- request:
120+
url: /CareTeam
121+
method: POST
122+
resource:
123+
status: active
124+
participant:
125+
- member:
126+
id: $ phmReferenceSplit.1
127+
display: $ phm.display
128+
identifier:
129+
value: phm
130+
resourceType: $ phmReferenceSplit.0
131+
- member:
132+
id: $ navigatorReferenceSplit.1
133+
display: $ navigator.display
134+
identifier:
135+
value: navigator
136+
resourceType: $ navigatorReferenceSplit.0
137+
resourceType: CareTeam
138+
resourceType: Bundle
139+
id: patient-create
140+
resourceType: Mapping
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resourceType: Medication
2+
id: medication-single-ex
3+
meta:
4+
profile:
5+
- "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication"
6+
text:
7+
status: generated
8+
div: '<div xmlns="http://www.w3.org/1999/xhtml">A medication resource has been created, but no specific details are provided.</div>'
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
resourceType: Observation
2+
id: observation-single-ex
3+
meta:
4+
profile:
5+
- "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation"
6+
- "http://hl7.org/fhir/StructureDefinition/vitalsigns"
7+
- "http://hl7.org/fhir/StructureDefinition/bp"
8+
identifier:
9+
- system: "urn:ietf:rfc:3986"
10+
value: "urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281"
11+
basedOn:
12+
- identifier:
13+
system: "https://acme.org/identifiers"
14+
value: "1234"
15+
category:
16+
- coding:
17+
- code: vital-signs
18+
system: "http://terminology.hl7.org/CodeSystem/observation-category"
19+
display: "Vital Signs"
20+
code:
21+
coding:
22+
- code: 85354-9
23+
system: "http://loinc.org"
24+
display: "Blood pressure panel with all children optional"
25+
text: "Blood pressure systolic & diastolic"
26+
performer:
27+
- reference: Practitioner/practitioner-single-ex
28+
interpretation:
29+
- coding:
30+
- code: L
31+
system: "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"
32+
display: Low
33+
text: "Below low normal"
34+
component:
35+
- interpretation:
36+
- coding:
37+
- { code: N, system: "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", display: Normal }
38+
text: Normal
39+
code:
40+
coding:
41+
- code: 8480-6
42+
system: "http://loinc.org"
43+
display: "Systolic blood pressure"
44+
valueQuantity:
45+
value: 107
46+
code: "mm[Hg]"
47+
system: "http://unitsofmeasure.org"
48+
unit: mmHg
49+
- interpretation:
50+
- coding:
51+
- { code: L, system: "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", display: Low }
52+
text: "Below low normal"
53+
code:
54+
coding:
55+
- code: 8462-4
56+
system: "http://loinc.org"
57+
display: "Diastolic blood pressure"
58+
valueQuantity:
59+
value: 60
60+
code: "mm[Hg]"
61+
system: "http://unitsofmeasure.org"
62+
unit: mmHg
63+
text:
64+
status: generated
65+
div: '<div xmlns="http://www.w3.org/1999/xhtml">On 17 September 2012, a blood pressure observation was recorded for Juan Dela Cruz. The systolic pressure was 107 mmHg (Normal), and the diastolic pressure was 60 mmHg (Below low normal). The measurement was taken from the right arm and performed by a practitioner.</div>'
66+
status: final
67+
subject:
68+
reference: Patient/patient-single-ex
69+
effectiveDateTime: "2012-09-17"
70+
bodySite:
71+
coding:
72+
- code: "368209003"
73+
system: "http://snomed.info/sct"
74+
display: "Right arm"

0 commit comments

Comments
 (0)