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
| Draft as of 2026-07-11 |
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
<http://hl7.org/fhir/StructureMap/CoreFHIR2OMOPPerson> a fhir:StructureMap ;
fhir:nodeRole fhir:treeRoot ;
fhir:Resource.id [ fhir:value "CoreFHIR2OMOPPerson"] ;
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ] ;
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Narratif généré : StructureMap CoreFHIR2OMOPPerson</b></p><a name=\"CoreFHIR2OMOPPerson\"> </a><a name=\"hcCoreFHIR2OMOPPerson\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPPerson<span style=\"color: navy\">\" = \"</span>CoreFHIR2OMOPPerson<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Mapping FHIR Patient resource to OMOP Person</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/patient.html\" title=\"Patient\">http://hl7.org/fhir/StructureDefinition/Patient</a><span style=\"color: navy\">\" </span><b>alias </b>Patient <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPPerson<span style=\"color: navy\">\" </span><b>alias </b>PersonTable <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>Person<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Patient, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>PersonTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span> src.id<b> as </b><span style=\"color: maroon\">srcId</span><span style=\"color: navy\"><b> -> </b></span>tgt.person_source_value = <span style=\"color: maroon\">srcId</span><span style=\"color: navy\">;</span>#xD;\n src.gender<b> as </b><span style=\"color: maroon\">srcGender</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> srcGender<span style=\"color: navy\"><b> -> </b></span>tgt.gender_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\"> {#xD;\n</span> srcGender<span style=\"color: navy\"><b> -> </b></span> <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">srcGender</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://interop.aphp.fr/ig/fhir/dm/ConceptMap/hl7-gender-to-ohdsi-gender'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">genderCode</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\">genderCode</span><span style=\"color: navy\">)</span> <i>\"ref\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"refConcept\"</i><span style=\"color: navy\">;</span>#xD;\n srcGender<span style=\"color: navy\"><b> -> </b></span>tgt.gender_source_value = <span style=\"color: maroon\">srcGender</span> <i>\"sourceGender\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n src.birthDate<b> as </b><span style=\"color: maroon\">srcBirthDate</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> srcBirthDate<span style=\"color: navy\"><b> -> </b></span>tgt.birth_datetime = <span style=\"color: maroon\">srcBirthDate</span> <i>\"dateTime\"</i><span style=\"color: navy\">;</span>#xD;\n srcBirthDate<span style=\"color: navy\"><b> -> </b></span>tgt.year_of_birth = <span style=\"color: navy\">(</span>%srcBirthDate.toString().substring(0, 4).toInteger()<span style=\"color: navy\">)</span> <i>\"year\"</i><span style=\"color: navy\">;</span>#xD;\n srcBirthDate<span style=\"color: navy\"><b> -> </b></span>tgt.month_of_birth = <span style=\"color: navy\">(</span>%srcBirthDate.toString().substring(5, 2).toInteger()<span style=\"color: navy\">)</span> <i>\"month\"</i><span style=\"color: navy\">;</span>#xD;\n srcBirthDate<span style=\"color: navy\"><b> -> </b></span>tgt.day_of_birth = <span style=\"color: navy\">(</span>%srcBirthDate.toString().substring(8, 2).toInteger()<span style=\"color: navy\">)</span> <i>\"day\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"
] ;
fhir:StructureMap.url [ fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreFHIR2OMOPPerson"] ;
fhir:StructureMap.version [ fhir:value "0.1.0"] ;
fhir:StructureMap.name [ fhir:value "CoreFHIR2OMOPPerson"] ;
fhir:StructureMap.title [ fhir:value "Mapping FHIR Patient resource to OMOP Person"] ;
fhir:StructureMap.status [ fhir:value "draft"] ;
fhir:StructureMap.date [ fhir:value "2026-07-11T15:40:47+00:00"^^xsd:dateTime] ;
fhir:StructureMap.publisher [ fhir:value "AP-HP"] ;
fhir:StructureMap.contact [
fhir:index 0 ;
fhir:ContactDetail.name [ fhir:value "AP-HP" ] ;
fhir:ContactDetail.telecom [
fhir:index 0 ;
fhir:ContactPoint.system [ fhir:value "url" ] ;
fhir:ContactPoint.value [ fhir:value "https://aphp.fr" ]
]
] ;
fhir:StructureMap.description [ fhir:value "Mapping FHIR Patient resource to OMOP Person"] ;
fhir:StructureMap.jurisdiction [
fhir:index 0 ;
fhir:CodeableConcept.coding [
fhir:index 0 ;
fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
fhir:Coding.code [ fhir:value "FR" ]
]
] ;
fhir:StructureMap.structure [
fhir:index 0 ;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>
] ;
fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
fhir:StructureMap.structure.alias [ fhir:value "Patient" ]
], [
fhir:index 1 ;
fhir:StructureMap.structure.url [
fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPPerson" ;
fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/OMOPPerson>
] ;
fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
fhir:StructureMap.structure.alias [ fhir:value "PersonTable" ]
] ;
fhir:StructureMap.group [
fhir:index 0 ;
fhir:StructureMap.group.name [ fhir:value "Person" ] ;
fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
fhir:StructureMap.group.input [
fhir:index 0 ;
fhir:StructureMap.group.input.name [ fhir:value "src" ] ;
fhir:StructureMap.group.input.type [ fhir:value "Patient" ] ;
fhir:StructureMap.group.input.mode [ fhir:value "source" ]
], [
fhir:index 1 ;
fhir:StructureMap.group.input.name [ fhir:value "tgt" ] ;
fhir:StructureMap.group.input.type [ fhir:value "PersonTable" ] ;
fhir:StructureMap.group.input.mode [ fhir:value "target" ]
] ;
fhir:StructureMap.group.rule [
fhir:index 0 ;
fhir:StructureMap.group.rule.name [ fhir:value "id" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
fhir:StructureMap.group.rule.source.element [ fhir:value "id" ] ;
fhir:StructureMap.group.rule.source.variable [ fhir:value "srcId" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "person_source_value" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcId" ]
]
]
], [
fhir:index 1 ;
fhir:StructureMap.group.rule.name [ fhir:value "gender" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
fhir:StructureMap.group.rule.source.element [ fhir:value "gender" ] ;
fhir:StructureMap.group.rule.source.variable [ fhir:value "srcGender" ]
] ;
fhir:StructureMap.group.rule.rule [
fhir:index 0 ;
fhir:StructureMap.group.rule.name [ fhir:value "refConcept" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcGender" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "gender_concept_id" ] ;
fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtReference" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "create" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Reference" ]
]
] ;
fhir:StructureMap.group.rule.rule [
fhir:index 0 ;
fhir:StructureMap.group.rule.name [ fhir:value "ref" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcGender" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.variable [ fhir:value "genderCode" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "translate" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcGender" ]
], [
fhir:index 1 ;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://interop.aphp.fr/ig/fhir/dm/ConceptMap/hl7-gender-to-ohdsi-gender" ]
], [
fhir:index 2 ;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "code" ]
]
], [
fhir:index 1 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgtReference" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "reference" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "append" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Concept/" ]
], [
fhir:index 1 ;
fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "genderCode" ]
]
]
]
], [
fhir:index 1 ;
fhir:StructureMap.group.rule.name [ fhir:value "sourceGender" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcGender" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "gender_source_value" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcGender" ]
]
]
]
], [
fhir:index 2 ;
fhir:StructureMap.group.rule.name [ fhir:value "birthDate" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
fhir:StructureMap.group.rule.source.element [ fhir:value "birthDate" ] ;
fhir:StructureMap.group.rule.source.variable [ fhir:value "srcBirthDate" ]
] ;
fhir:StructureMap.group.rule.rule [
fhir:index 0 ;
fhir:StructureMap.group.rule.name [ fhir:value "dateTime" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcBirthDate" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "birth_datetime" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcBirthDate" ]
]
]
], [
fhir:index 1 ;
fhir:StructureMap.group.rule.name [ fhir:value "year" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcBirthDate" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "year_of_birth" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "%srcBirthDate.toString().substring(0, 4).toInteger()" ]
]
]
], [
fhir:index 2 ;
fhir:StructureMap.group.rule.name [ fhir:value "month" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcBirthDate" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "month_of_birth" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "%srcBirthDate.toString().substring(5, 2).toInteger()" ]
]
]
], [
fhir:index 3 ;
fhir:StructureMap.group.rule.name [ fhir:value "day" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcBirthDate" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "day_of_birth" ] ;
fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "%srcBirthDate.toString().substring(8, 2).toInteger()" ]
]
]
]
]
] .
# - ontology header ------------------------------------------------------------
<http://hl7.org/fhir/StructureMap/CoreFHIR2OMOPPerson.ttl> a owl:Ontology ;
owl:imports fhir:fhir.ttl ;
owl:versionIRI <http://build.fhir.org/StructureMap/CoreFHIR2OMOPPerson.ttl> .
IG © 2023+ AP-HP. Package aphp.fhir.fr.dm#0.1.0 based on FHIR 4.0.1. Generated 2026-07-11
Links: Table of Contents |
QA Report
| New Issue
|