Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit a60eac0

Browse files
IOPS-000 update main examples files with fhir-converter (#50)
* IOPS-000 update main examples files with fhir-converter * Fix pipeline. Co-authored-by: Declan Kieran <declan.kieran1@nhs.net>
1 parent a9303a2 commit a60eac0

6 files changed

Lines changed: 143 additions & 0 deletions
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"resourceType": "AllergyIntolerance",
3+
"code": {
4+
"coding": [
5+
{
6+
"system": "http://read.info/readv2",
7+
"code": "TJ03000",
8+
"display": "Adverse reaction to erythromycin",
9+
"userSelected": true
10+
},
11+
{
12+
"extension": [
13+
{
14+
"extension": [
15+
{
16+
"url": "descriptionId",
17+
"valueIdentifier": {
18+
"system": "http://snomed.info/sct",
19+
"value": "2579700012"
20+
}
21+
},
22+
{
23+
"url": "descriptionDisplay",
24+
"valueString": "Adverse reaction to erythromycin"
25+
}
26+
],
27+
"url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-CodingSCTDescId"
28+
}
29+
],
30+
"system": "http://snomed.info/sct",
31+
"code": "419056004",
32+
"display": "Erythromycin adverse reaction"
33+
}
34+
]
35+
}
36+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"resourceType": "AllergyIntolerance",
3+
"code": {
4+
"coding": [
5+
{
6+
"system": "http://read.info/readv2",
7+
"code": "TJ03000",
8+
"display": "Adverse reaction to erythromycin",
9+
"userSelected": true
10+
},
11+
{
12+
"extension": [
13+
{
14+
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-coding-sctdescid",
15+
"extension": [
16+
{
17+
"url": "descriptionId",
18+
"valueId": "2579700012"
19+
},
20+
{
21+
"url": "descriptionDisplay",
22+
"valueString": "Adverse reaction to erythromycin"
23+
}
24+
]
25+
}
26+
],
27+
"system": "http://snomed.info/sct",
28+
"code": "419056004",
29+
"display": "Erythromycin adverse reaction"
30+
}
31+
]
32+
}
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
map "http://fhir.nhs.uk/StructureMap/AllergyIntoleranceExtension-coding-sctdescid-3to4" = "R3 to R4 conversion for STU3 Extension-coding-sctdescid in AllergyIntolerance.code"
2+
uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as source
3+
uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as target
4+
5+
group AllergyIntolerance(source src : AllergyIntolerance, target tgt : AllergyIntolerance) {
6+
src.code : CodeableConcept as vs -> tgt.code = create('CodeableConcept') as vt then CodeableConceptAllergyIntolerance(vs, vt);
7+
}
8+
9+
group CodeableConceptAllergyIntolerance(source src : CodeableConcept, target tgt : CodeableConcept) {
10+
src.coding as vs -> tgt.coding = create('Coding') as vt then Coding(vs, vt);
11+
src.text as text -> tgt.text = text;
12+
}
13+
14+
group Coding(source src : Coding, target tgt : Coding) <<type+>> {
15+
src.system as system -> tgt.system = system;
16+
src.version as version -> tgt.version = version;
17+
src.code as code -> tgt.code = code;
18+
src.display as display -> tgt.display = display;
19+
src.userSelected as userSelected -> tgt.userSelected = userSelected;
20+
21+
src.extension as vs where $this.url='https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid' or
22+
$this.url='https://fhir.nhs.uk/STU3/StructureDefinition/Extension-coding-sctdescid' ->
23+
tgt.extension = create('Extension') as vt, vt.url = 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-CodingSCTDescId' then {
24+
25+
vs.extension as vsx where $this.url='descriptionId' -> vt.extension = create('Extension') as vtx, vtx.url = 'descriptionId' then {
26+
vsx.value: id as vsv -> vtx.value = create('Identifier') as vtv,
27+
vtv.system='http://snomed.info/sct',
28+
vtv.value = vsv;
29+
};
30+
31+
vs.extension as vsx where $this.url='descriptionDisplay' -> vt.extension = create('Extension') as vtx, vt.extension = vsx;
32+
};
33+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"resourceType": "MedicationStatement"
3+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"resourceType": "MedicationStatement",
3+
"extension": [
4+
{
5+
"url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationChangeSummary-1",
6+
"extension": [
7+
{
8+
"url": "status",
9+
"valueCode": "Added"
10+
},
11+
{
12+
"url": "indicationForChange",
13+
"valueCodeableConcept": {
14+
"coding": {
15+
"code": "CODE",
16+
"display": "DISPLAY"
17+
}
18+
}
19+
},
20+
{
21+
"url": "dateChanged",
22+
"valueDateTime": "2022-01-15"
23+
},
24+
{
25+
"url": "detailsOfAmendment",
26+
"valueString": "Add new info"
27+
}
28+
]
29+
}
30+
]
31+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
map "http://fhir.nhs.uk/StructureMap/MedicationStatementChangeSummary-Extension-3to4" = "R3 to R4 conversion for CareConnect MedicationStatementChangeSummary extension"
2+
uses "http://hl7.org/fhir/StructureDefinition/MedicationStatement" alias MedicationStatement as source
3+
uses "http://hl7.org/fhir/StructureDefinition/MedicationStatement" alias MedicationStatement as target
4+
5+
group MedicationStatement(source src : MedicationStatement, target tgt : MedicationStatement) {
6+
}
7+

0 commit comments

Comments
 (0)