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" : "Measurement",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap Measurement</b></p><a name=\"Measurement\"> </a><a name=\"hcMeasurement\"> </a><a name=\"Measurement-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/Measurement<span style=\"color: navy\">" = "</span>Measurement<span style=\"color: navy\">"\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mapping 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-LogicalBundle.html\" title=\"LogicalBundle\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/LogicalBundle</a><span style=\"color: navy\">" </span><b>alias </b>LogicalBundle <b>as </b><b>target</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>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-SimpleObservation.html\" title=\"Mapping simple Observation laboratory resources to Measurement OMOP Domain\">https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/SimpleObservation</a><span style=\"color: navy\">"\r\n</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">imports "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/ComplexMeasurement"</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">imports "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/*Measurement"</span>\r\n<b>group </b>Observation<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\">tgtBundle</span><span style=\"color: navy\"> : </span>LogicalBundle<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> src<span style=\"color: navy\"><b> -> </b></span>tgtBundle.id = <b>uuid</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>"setId"</i><span style=\"color: navy\">;</span>\r\n src<span style=\"color: navy\"><b> -> </b></span>tgtBundle.type = <span style=\"color: blue\">'transaction'</span> <i>"setType"</i><span style=\"color: navy\">;</span>\r\n src<b> where </b>code.coding.code in ('14682-9' | '22664-7' | '77147-7')<span style=\"color: navy\"><b> -> </b></span>tgtBundle.entry<b> as </b><span style=\"color: maroon\">newEntry</span><b> then</b><span style=\"color: navy\"> {\r\n</span> src<span style=\"color: navy\"><b> -> </b></span>newEntry.measurement = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'MeasurementTable'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">newMeasurement</span><b> then</b><span style=\"color: navy\"> {\r\n</span> src<b> then </b>SimpleObservation<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">newMeasurement</span><span style=\"color: navy\">)</span> <i>"transformSimpleObservation"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"createSimpleObservation"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"newEntrySimpleObservation"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">src where code.coding.code in ('50197-3') -> tgtBundle.entry as newEntry then { src -> newEntry.measurement = create("MeasurementTable") as newMeasurement then { src then ComplexMeasurement(src, newMeasurement) "transformComplexMeasurement"; } "createComplexMeasurement"; } "newEntryComplexMeasurement";</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"url" : "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/Measurement",
"version" : "0.1.0",
"name" : "Measurement",
"title" : "Mapping 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 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/LogicalBundle",
"mode" : "target",
"alias" : "LogicalBundle"
},
{
"url" : "https://interop.esante.gouv.fr/ig/fhir/eds/StructureDefinition/OMOPMeasurement",
"mode" : "target",
"alias" : "MeasurementTable"
}
],
"import" : [
🔗 "https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/SimpleObservation"
],
"group" : [
{
"name" : "Observation",
"typeMode" : "none",
"documentation" : "imports \"https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/ComplexMeasurement\"\r\nimports \"https://interop.esante.gouv.fr/ig/fhir/eds/StructureMap/*Measurement\"",
"input" : [
{
"name" : "src",
"type" : "LabObs",
"mode" : "source"
},
{
"name" : "tgtBundle",
"type" : "LogicalBundle",
"mode" : "target"
}
],
"rule" : [
{
"name" : "setId",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgtBundle",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "setType",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgtBundle",
"contextType" : "variable",
"element" : "type",
"transform" : "copy",
"parameter" : [
{
"valueString" : "transaction"
}
]
}
]
},
{
"name" : "newEntrySimpleObservation",
"source" : [
{
"context" : "src",
"condition" : "code.coding.code in ('14682-9' | '22664-7' | '77147-7')"
}
],
"target" : [
{
"context" : "tgtBundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "newEntry"
}
],
"rule" : [
{
"name" : "createSimpleObservation",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "newEntry",
"contextType" : "variable",
"element" : "measurement",
"variable" : "newMeasurement",
"transform" : "create",
"parameter" : [
{
"valueString" : "MeasurementTable"
}
]
}
],
"rule" : [
{
"name" : "transformSimpleObservation",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "SimpleObservation",
"variable" : [
"src",
"newMeasurement"
]
}
]
}
]
}
]
}
]
}
]
}