Guide d'implémentation du GT Standards et Interopérabilité pour les EDS
0.1.0 - ci-build
Guide d'implémentation du GT Standards et Interopérabilité pour les EDS - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
Draft as of 2024-11-23 |
{
"resourceType" : "StructureMap",
"id" : "SimpleObservation",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap SimpleObservation</b></p><a name=\"SimpleObservation\"> </a><a name=\"hcSimpleObservation\"> </a><a name=\"SimpleObservation-fr-FR\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/SimpleObservation<span style=\"color: navy\">" = "</span>SimpleObservation<span style=\"color: navy\">"\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mapping simple Observation laboratory resources to Measurement OMOP Domain</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"StructureDefinition-EDSObservationLaboratoryGeneric.html\" title=\"Résultat de laboratoire\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/EDSObservationLaboratoryGeneric</a><span style=\"color: navy\">" </span><b>alias </b>LabObs <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"StructureDefinition-OMOPMeasurement.html\" title=\"Measurement OMOP Table\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPMeasurement</a><span style=\"color: navy\">" </span><b>alias </b>MeasurementTable <b>as </b><b>target</b>\r\n\r\n<b>group </b>SimpleObservation<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>LabObs, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>MeasurementTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> src.subject<b> as </b><span style=\"color: maroon\">srcSubject</span><span style=\"color: navy\"><b> -> </b></span>tgt.person_id = <span style=\"color: maroon\">srcSubject</span> <i>"setSubject"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">reference impropre dans le monde OMOP mais permet d'illustrer l'information qui doit être utilisée pour retrouver la bonne OMOPPerson</span>\r\n src.code<b> as </b><span style=\"color: maroon\">srcCode</span><span style=\"color: navy\"><b> -> </b></span>tgt.measurement_concept_id = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Reference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tgtReference</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcCode.coding<b> as </b><span style=\"color: maroon\">srcCoding</span><span style=\"color: navy\"><b> -> </b></span> <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">srcCoding</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://interop.esante.gouv.fr/ig/fhir/eds/ConceptMap/LabAnalyses'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">measurementCode</span><span style=\"color: navy\">, </span> tgtReference.reference = <b>append</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Concept/'</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">measurementCode</span><span style=\"color: navy\">)</span> <i>"setMeasurementConcept"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"createMeasurementConcept"</i><span style=\"color: navy\">;</span>\r\n src.effective<span style=\"color: navy\"> : </span>dateTime<b> as </b><span style=\"color: maroon\">srcDateTime</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcDateTime<span style=\"color: navy\"><b> -> </b></span>tgt.measurement_datetime = <span style=\"color: maroon\">srcDateTime</span> <i>"setDateTime"</i><span style=\"color: navy\">;</span>\r\n srcDateTime<span style=\"color: navy\"><b> -> </b></span>tgt.measurement_date = <span style=\"color: navy\">(</span>%srcDateTime.toString().substring(0, 10)<span style=\"color: navy\">)</span> <i>"setDateNotTime"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"SetDate"</i><span style=\"color: navy\">;</span>\r\n src.value<span style=\"color: navy\"> : </span>Quantity<b> as </b><span style=\"color: maroon\">srcValueQuantity</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcValueQuantity.value<b> as </b><span style=\"color: maroon\">srcResultValue</span><span style=\"color: navy\"><b> -> </b></span>tgt.value_as_number = <span style=\"color: maroon\">srcResultValue</span> <i>"setResultValue"</i><span style=\"color: navy\">;</span>\r\n srcValueQuantity<span style=\"color: navy\"><b> -> </b></span>tgt.operator_concept_id = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Reference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tgtReference</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcValueQuantity.comparator<b> as </b><span style=\"color: maroon\">srcValueComparator</span><span style=\"color: navy\"><b> -> </b></span> <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">srcValueComparator</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://interop.esante.gouv.fr/ig/fhir/eds/ConceptMap/LabComparator'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">comparatorCode</span><span style=\"color: navy\">, </span> tgtReference.reference = <b>append</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Concept/'</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">comparatorCode</span><span style=\"color: navy\">)</span> <i>"setComparatorConcept"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"createComparatorConcept"</i><span style=\"color: navy\">;</span>\r\n srcValueQuantity<span style=\"color: navy\"><b> -> </b></span>tgt.unit_concept_id = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Reference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tgtReference</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcValueQuantity.code<b> as </b><span style=\"color: maroon\">srcValueCode</span><span style=\"color: navy\"><b> -> </b></span> <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">srcValueCode</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://interop.esante.gouv.fr/ig/fhir/eds/ConceptMap/LabUnit'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">unitCode</span><span style=\"color: navy\">, </span> tgtReference.reference = <b>append</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Concept/'</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">unitCode</span><span style=\"color: navy\">)</span> <i>"createUnitConcept"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"setUnitConcept"</i><span style=\"color: navy\">;</span>\r\n srcValueQuantity.code<b> as </b><span style=\"color: maroon\">srcValueCode</span><span style=\"color: navy\"><b> -> </b></span>tgt.unit_source_value = <span style=\"color: maroon\">srcValueCode</span> <i>"setUnitSourceValue"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"SetValue"</i><span style=\"color: navy\">;</span>\r\n src.referenceRange<b> as </b><span style=\"color: maroon\">srcRange</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcRange.low<b> as </b><span style=\"color: maroon\">srcRangeLow</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcRangeLow.value<b> as </b><span style=\"color: maroon\">srcRangeLowValue</span><span style=\"color: navy\"><b> -> </b></span>tgt.range_low = <span style=\"color: maroon\">srcRangeLowValue</span> <i>"setRangeLow1"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"setRangeLow0"</i><span style=\"color: navy\">;</span>\r\n srcRange.high<b> as </b><span style=\"color: maroon\">srcRangeHigh</span><b> then</b><span style=\"color: navy\"> {\r\n</span> srcRangeHigh.value<b> as </b><span style=\"color: maroon\">srcRangeHighValue</span><span style=\"color: navy\"><b> -> </b></span>tgt.range_high = <span style=\"color: maroon\">srcRangeHighValue</span> <i>"setRangeHigh1"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"setRangeHigh0"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"setRange"</i><span style=\"color: navy\">;</span>\r\n src.performer<b> as </b><span style=\"color: maroon\">srcPerformer</span><span style=\"color: navy\"><b> -> </b></span>tgt.provider_id = <span style=\"color: maroon\">srcPerformer</span> <i>"setPerformer"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">reference impropre dans le monde OMOP mais permet d'illustrer l'information qui doit être utilisée pour retrouver le bon OMOPProvider</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"url" : "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/SimpleObservation",
"version" : "0.1.0",
"name" : "SimpleObservation",
"title" : "Mapping simple Observation laboratory resources to Measurement OMOP Domain",
"status" : "draft",
"date" : "2024-11-23T19:10:09+00:00",
"publisher" : "ANS",
"contact" : [
{
"name" : "ANS",
"telecom" : [
{
"system" : "url",
"value" : "https://esante.gouv.fr"
}
]
}
],
"description" : "Mapping simple Observation laboratory resources to Measurement OMOP Domain",
"jurisdiction" : [
{
"coding" : [
{
"system" : "urn:iso:std:iso:3166",
"code" : "FR",
"display" : "France"
}
]
}
],
"structure" : [
{
"url" : "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/EDSObservationLaboratoryGeneric",
"mode" : "source",
"alias" : "LabObs"
},
{
"url" : "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPMeasurement",
"mode" : "target",
"alias" : "MeasurementTable"
}
],
"group" : [
{
"name" : "SimpleObservation",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"type" : "LabObs",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "MeasurementTable",
"mode" : "target"
}
],
"rule" : [
{
"name" : "setSubject",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "srcSubject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "person_id",
"transform" : "copy",
"parameter" : [
{
"valueId" : "srcSubject"
}
]
}
],
"documentation" : "reference impropre dans le monde OMOP mais permet d'illustrer l'information qui doit être utilisée pour retrouver la bonne OMOPPerson"
},
{
"name" : "createMeasurementConcept",
"source" : [
{
"context" : "src",
"element" : "code",
"variable" : "srcCode"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "measurement_concept_id",
"variable" : "tgtReference",
"transform" : "create",
"parameter" : [
{
"valueString" : "Reference"
}
]
}
],
"rule" : [
{
"name" : "setMeasurementConcept",
"source" : [
{
"context" : "srcCode",
"element" : "coding",
"variable" : "srcCoding"
}
],
"target" : [
{
"contextType" : "variable",
"variable" : "measurementCode",
"transform" : "translate",
"parameter" : [
{
"valueId" : "srcCoding"
},
{
"valueString" : "https://interop.esante.gouv.fr/ig/fhir/eds/ConceptMap/LabAnalyses"
},
{
"valueString" : "code"
}
]
},
{
"context" : "tgtReference",
"contextType" : "variable",
"element" : "reference",
"transform" : "append",
"parameter" : [
{
"valueString" : "Concept/"
},
{
"valueId" : "measurementCode"
}
]
}
]
}
]
},
{
"name" : "SetDate",
"source" : [
{
"context" : "src",
"type" : "dateTime",
"element" : "effective",
"variable" : "srcDateTime"
}
],
"rule" : [
{
"name" : "setDateTime",
"source" : [
{
"context" : "srcDateTime"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "measurement_datetime",
"transform" : "copy",
"parameter" : [
{
"valueId" : "srcDateTime"
}
]
}
]
},
{
"name" : "setDateNotTime",
"source" : [
{
"context" : "srcDateTime"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "measurement_date",
"transform" : "evaluate",
"parameter" : [
{
"valueString" : "%srcDateTime.toString().substring(0, 10)"
}
]
}
]
}
]
},
{
"name" : "SetValue",
"source" : [
{
"context" : "src",
"type" : "Quantity",
"element" : "value",
"variable" : "srcValueQuantity"
}
],
"rule" : [
{
"name" : "setResultValue",
"source" : [
{
"context" : "srcValueQuantity",
"element" : "value",
"variable" : "srcResultValue"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value_as_number",
"transform" : "copy",
"parameter" : [
{
"valueId" : "srcResultValue"
}
]
}
]
},
{
"name" : "createComparatorConcept",
"source" : [
{
"context" : "srcValueQuantity"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "operator_concept_id",
"variable" : "tgtReference",
"transform" : "create",
"parameter" : [
{
"valueString" : "Reference"
}
]
}
],
"rule" : [
{
"name" : "setComparatorConcept",
"source" : [
{
"context" : "srcValueQuantity",
"element" : "comparator",
"variable" : "srcValueComparator"
}
],
"target" : [
{
"contextType" : "variable",
"variable" : "comparatorCode",
"transform" : "translate",
"parameter" : [
{
"valueId" : "srcValueComparator"
},
{
"valueString" : "https://interop.esante.gouv.fr/ig/fhir/eds/ConceptMap/LabComparator"
},
{
"valueString" : "code"
}
]
},
{
"context" : "tgtReference",
"contextType" : "variable",
"element" : "reference",
"transform" : "append",
"parameter" : [
{
"valueString" : "Concept/"
},
{
"valueId" : "comparatorCode"
}
]
}
]
}
]
},
{
"name" : "setUnitConcept",
"source" : [
{
"context" : "srcValueQuantity"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "unit_concept_id",
"variable" : "tgtReference",
"transform" : "create",
"parameter" : [
{
"valueString" : "Reference"
}
]
}
],
"rule" : [
{
"name" : "createUnitConcept",
"source" : [
{
"context" : "srcValueQuantity",
"element" : "code",
"variable" : "srcValueCode"
}
],
"target" : [
{
"contextType" : "variable",
"variable" : "unitCode",
"transform" : "translate",
"parameter" : [
{
"valueId" : "srcValueCode"
},
{
"valueString" : "https://interop.esante.gouv.fr/ig/fhir/eds/ConceptMap/LabUnit"
},
{
"valueString" : "code"
}
]
},
{
"context" : "tgtReference",
"contextType" : "variable",
"element" : "reference",
"transform" : "append",
"parameter" : [
{
"valueString" : "Concept/"
},
{
"valueId" : "unitCode"
}
]
}
]
}
]
},
{
"name" : "setUnitSourceValue",
"source" : [
{
"context" : "srcValueQuantity",
"element" : "code",
"variable" : "srcValueCode"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "unit_source_value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "srcValueCode"
}
]
}
]
}
]
},
{
"name" : "setRange",
"source" : [
{
"context" : "src",
"element" : "referenceRange",
"variable" : "srcRange"
}
],
"rule" : [
{
"name" : "setRangeLow0",
"source" : [
{
"context" : "srcRange",
"element" : "low",
"variable" : "srcRangeLow"
}
],
"rule" : [
{
"name" : "setRangeLow1",
"source" : [
{
"context" : "srcRangeLow",
"element" : "value",
"variable" : "srcRangeLowValue"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "range_low",
"transform" : "copy",
"parameter" : [
{
"valueId" : "srcRangeLowValue"
}
]
}
]
}
]
},
{
"name" : "setRangeHigh0",
"source" : [
{
"context" : "srcRange",
"element" : "high",
"variable" : "srcRangeHigh"
}
],
"rule" : [
{
"name" : "setRangeHigh1",
"source" : [
{
"context" : "srcRangeHigh",
"element" : "value",
"variable" : "srcRangeHighValue"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "range_high",
"transform" : "copy",
"parameter" : [
{
"valueId" : "srcRangeHighValue"
}
]
}
]
}
]
}
]
},
{
"name" : "setPerformer",
"source" : [
{
"context" : "src",
"element" : "performer",
"variable" : "srcPerformer"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "provider_id",
"transform" : "copy",
"parameter" : [
{
"valueId" : "srcPerformer"
}
]
}
],
"documentation" : "reference impropre dans le monde OMOP mais permet d'illustrer l'information qui doit être utilisée pour retrouver le bon OMOPProvider"
}
]
}
]
}