Data Management with FHIR 0.1.0 - ci-build

Data Management with FHIR - version de développement local (intégration continue v0.1.0) construite par les outils de publication FHIR (HL7® FHIR® Standard). Voir le répertoire des versions publiées

## : Mapping simple Observation laboratory resources to Measurement OMOP Domain - JSON Representation

Draft as of 2026-04-16

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "CoreSimpleObservation2OMOPMeasurement",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Narratif généré : StructureMap CoreSimpleObservation2OMOPMeasurement</b></p><a name=\"CoreSimpleObservation2OMOPMeasurement\"> </a><a name=\"hcCoreSimpleObservation2OMOPMeasurement\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreSimpleObservation2OMOPMeasurement<span style=\"color: navy\">&quot; = &quot;</span>CoreSimpleObservation2OMOPMeasurement<span style=\"color: navy\">&quot;\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\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">&quot; </span><b>alias </b>LabObs <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPMeasurement<span style=\"color: navy\">&quot; </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> -&gt; </b></span>tgt.person_id = <span style=\"color: maroon\">srcSubject</span> <i>&quot;setSubject&quot;</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> -&gt; </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> -&gt; </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.aphp.fr/ig/fhir/dm/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>&quot;setMeasurementConcept&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;createMeasurementConcept&quot;</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> -&gt; </b></span>tgt.measurement_datetime = <span style=\"color: maroon\">srcDateTime</span> <i>&quot;setDateTime&quot;</i><span style=\"color: navy\">;</span>\r\n    srcDateTime<span style=\"color: navy\"><b> -&gt; </b></span>tgt.measurement_date = <span style=\"color: navy\">(</span>%srcDateTime.toString().substring(0, 10)<span style=\"color: navy\">)</span> <i>&quot;setDateNotTime&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;SetDate&quot;</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> -&gt; </b></span>tgt.value_as_number = <span style=\"color: maroon\">srcResultValue</span> <i>&quot;setResultValue&quot;</i><span style=\"color: navy\">;</span>\r\n    srcValueQuantity<span style=\"color: navy\"><b> -&gt; </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> -&gt; </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.aphp.fr/ig/fhir/dm/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>&quot;setComparatorConcept&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;createComparatorConcept&quot;</i><span style=\"color: navy\">;</span>\r\n    srcValueQuantity<span style=\"color: navy\"><b> -&gt; </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> -&gt; </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.aphp.fr/ig/fhir/dm/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>&quot;createUnitConcept&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;setUnitConcept&quot;</i><span style=\"color: navy\">;</span>\r\n    srcValueQuantity.code<b> as </b><span style=\"color: maroon\">srcValueCode</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.unit_source_value = <span style=\"color: maroon\">srcValueCode</span> <i>&quot;setUnitSourceValue&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;SetValue&quot;</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> -&gt; </b></span>tgt.range_low = <span style=\"color: maroon\">srcRangeLowValue</span> <i>&quot;setRangeLow1&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;setRangeLow0&quot;</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> -&gt; </b></span>tgt.range_high = <span style=\"color: maroon\">srcRangeHighValue</span> <i>&quot;setRangeHigh1&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;setRangeHigh0&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;setRange&quot;</i><span style=\"color: navy\">;</span>\r\n  src.performer<b> as </b><span style=\"color: maroon\">srcPerformer</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.provider_id = <span style=\"color: maroon\">srcPerformer</span> <i>&quot;setPerformer&quot;</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.aphp.fr/ig/fhir/dm/StructureMap/CoreSimpleObservation2OMOPMeasurement",
      "version" : "0.1.0",
      "name" : "CoreSimpleObservation2OMOPMeasurement",
      "title" : "Mapping simple Observation laboratory resources to Measurement OMOP Domain",
      "status" : "draft",
      "date" : "2026-04-16T14:35:38+00:00",
      "publisher" : "AP-HP",
      "contact" : [
        {
          "name" : "AP-HP",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://aphp.fr"
            }
          ]
        }
      ],
      "description" : "Mapping simple Observation laboratory resources to Measurement OMOP Domain",
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "FR"
            }
          ]
        }
      ],
      "structure" : [
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/Observation",
          "mode" : "source",
          "alias" : "LabObs"
        },
        {
          "url" : "https://interop.aphp.fr/ig/fhir/dm/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.aphp.fr/ig/fhir/dm/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.aphp.fr/ig/fhir/dm/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.aphp.fr/ig/fhir/dm/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"
            }
          ]
        }
      ]
    }