Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"resourceType": "MedicationStatement",
"extension": [
{
"extension": [
{
"url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationDosageLastChanged-1",
"valueDateTime": "2020-01-28"
}
],
"url": "http://fhir.hl7.org/fhir/3.0/StructureDefinition/extension-Extension-CareConnect-MedicationDosageLastChanged-1"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"resourceType": "MedicationStatement",
"extension": [
{
"extension": [
{
"url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationDosageLastChanged-1",
"valueDateTime": "2020-02-25"
}
],
"url": "http://fhir.hl7.org/fhir/3.0/StructureDefinition/extension-Extension-CareConnect-MedicationDosageLastChanged-1"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"resourceType": "MedicationStatement",
"extension": [
{
"extension": [
{
"url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationDosageLastChanged-1",
"valueDateTime": "2020-02-25"
}
],
"url": "http://fhir.hl7.org/fhir/3.0/StructureDefinition/extension-Extension-CareConnect-GPC-MedicationDosageLastChanged-1"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"resourceType": "MedicationStatement",
"extension": [
{
"url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationDosageLastChanged-1",
"valueDateTime": "2020-01-28"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"resourceType": "MedicationStatement",
"extension": [
{
"url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationDosageLastChanged-1",
"valueDateTime": "2020-02-25"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"resourceType": "MedicationStatement",
"extension": [
{
"url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extensioncoding-CareConnect-GPC-DosageLastChanged-1",
"valueDateTime": "2020-02-25"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
map "http://fhir.nhs.uk/StructureMap/MedicationStatementDosageLastChanged-Extension-3to4" = "R3 to R4 conversion for CareConnect MedicationStatement DosageLastChanged extension"
uses "http://hl7.org/fhir/StructureDefinition/MedicationStatement" alias MedicationStatement as source
uses "http://hl7.org/fhir/StructureDefinition/MedicationStatement" alias MedicationStatement as target

group MedicationStatement(source src : MedicationStatement, target tgt : MedicationStatement) {
src.extension as ext where $this.url='https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationDosageLastChanged-1'
-> tgt.extension = create('Extension') as tgtext,
tgtext.url='http://fhir.hl7.org/fhir/3.0/StructureDefinition/extension-Extension-CareConnect-MedicationDosageLastChanged-1' then {
ext.value : dateTime as vs -> tgtext.extension = create('Extension') as vt,
vt.url = 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationDosageLastChanged-1' then {
ext.value : dateTime as vs1 -> vt.value = create('dateTime') as vt1, vt1.value = vs1;
};
};

src.extension as ext where $this.url='https://fhir.hl7.org.uk/STU3/StructureDefinition/Extensioncoding-CareConnect-GPC-DosageLastChanged-1'
-> tgt.extension = create('Extension') as tgtext,
tgtext.url='http://fhir.hl7.org/fhir/3.0/StructureDefinition/extension-Extension-CareConnect-GPC-MedicationDosageLastChanged-1' then {
ext.value : dateTime as vs -> tgtext.extension = create('Extension') as vt,
vt.url = 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationDosageLastChanged-1' then {
ext.value : dateTime as vs1 -> vt.value = create('dateTime') as vt1, vt1.value = vs1;
};
};
}