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

## Logical Model: OMOPVisitDetail - XML Profile

Draft as of 2026-04-16

XML representation of the OMOPVisitDetail logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="OMOPVisitDetail"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Narratif généré : DéfinitionStructure OMOPVisitDetail</b></p><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Le nom logique de l'élément">Nom</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Informations sur l'utilisation de l'élément">Drapeaux</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Nombre minimum et maximum de fois que l'élément peut apparaître dans l'instance">Card.</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Référence au type de l'élément">Type</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Informations supplémentaires sur l'élément">Description et contraintes</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail" title="The VISIT_DETAIL table is an optional table used to represents details of each record in the parent VISIT_OCCURRENCE table. A good example of this would be the movement between units in a hospital during an inpatient stay or claim lines associated with a one insurance claim. For every record in the VISIT_OCCURRENCE table there may be 0 or more records in the VISIT_DETAIL table with a 1:n relationship where n may be 0. The VISIT_DETAIL table is structurally very similar to VISIT_OCCURRENCE table and belongs to the visit domain.">OMOPVisitDetail</a><a name="OMOPVisitDetail"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://build.fhir.org/types.html#Base">Base</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail OMOP Table<br/><span style="font-weight:bold">Les instances de ce modèle logique peuvent être la cible d'une référence</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Type de donnée primitif" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-id" title="Use this to identify unique interactions between a person and the health care system. This identifier links across the other CDM event tables to associate events with a visit detail.">visit_detail_id</a><a name="OMOPVisitDetail.visit_detail_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#integer">integer</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail Identifier</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.person-id" title="Person">person_id</a><a name="OMOPVisitDetail.person_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPPerson.html">Person OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Person</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-concept-id" title="This field contains a concept id representing the kind of visit detail, like inpatient or outpatient. All concepts in this field should be standard and belong to the Visit domain.">visit_detail_concept_id</a><a name="OMOPVisitDetail.visit_detail_concept_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPConcept.html">Concept OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Type de donnée primitif" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-start-date" title="This is the date of the start of the encounter. This may or may not be equal to the date of the Visit the Visit Detail is associated with.">visit_detail_start_date</a><a name="OMOPVisitDetail.visit_detail_start_date"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#date">date</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail Start Date</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Type de donnée primitif" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-start-datetime" title="Visit Detail Start Datetime">visit_detail_start_datetime</a><a name="OMOPVisitDetail.visit_detail_start_datetime"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail Start Datetime</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Type de donnée primitif" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-end-date" title="This the end date of the patient-provider interaction.  If a Person is still an inpatient in the hospital at the time of the data extract and does not have a visit_end_date, then set the visit_end_date to the date of the data pull.">visit_detail_end_date</a><a name="OMOPVisitDetail.visit_detail_end_date"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#date">date</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail End Date</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Type de donnée primitif" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-end-datetime" title="If a Person is still an inpatient in the hospital at the time of the data extract and does not have a visit_end_datetime, then set the visit_end_datetime to the datetime of the data pull.">visit_detail_end_datetime</a><a name="OMOPVisitDetail.visit_detail_end_datetime"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail End Datetime</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-type-concept-id" title="Use this field to understand the provenance of the visit detail record, or where the record comes from.">visit_detail_type_concept_id</a><a name="OMOPVisitDetail.visit_detail_type_concept_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPConcept.html">Concept OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail Type</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.provider-id" title="There will only be one provider per  **visit** record and the ETL document should clearly state how they were chosen (attending, admitting, etc.). This is a typical reason for leveraging the VISIT_DETAIL table as even though each VISIT_DETAIL record can only have one provider, there is no limit to the number of VISIT_DETAIL records that can be associated to a VISIT_OCCURRENCE record.">provider_id</a><a name="OMOPVisitDetail.provider_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPProvider.html">Provider OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Provider</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.care-site-id" title="This field provides information about the Care Site where the Visit Detail took place.">care_site_id</a><a name="OMOPVisitDetail.care_site_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPCareSite.html">CareSite OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Care Site</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Type de donnée primitif" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-source-value" title="This field houses the verbatim value from the source data representing the kind of visit detail that took place (inpatient, outpatient, emergency, etc.)">visit_detail_source_value</a><a name="OMOPVisitDetail.visit_detail_source_value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail Source Value</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-detail-source-concept-id" title="Visit Detail Source Concept">visit_detail_source_concept_id</a><a name="OMOPVisitDetail.visit_detail_source_concept_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPConcept.html">Concept OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Detail Source Concept</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.admitted-from-concept-id" title="Use this field to determine where the patient was admitted from. This concept is part of the visit domain and can indicate if a patient was admitted to the hospital from a long-term care facility, for example.">admitted_from_concept_id</a><a name="OMOPVisitDetail.admitted_from_concept_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPConcept.html">Concept OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Admitted From</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Type de donnée primitif" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.admitted-from-source-value" title="Admitted From Source Value">admitted_from_source_value</a><a name="OMOPVisitDetail.admitted_from_source_value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Admitted From Source Value</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Type de donnée primitif" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.discharged-to-source-value" title="Discharged To Source Value">discharged_to_source_value</a><a name="OMOPVisitDetail.discharged_to_source_value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Discharged To Source Value</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.discharged-to-concept-id" title="Use this field to determine where the patient was discharged to after a visit. This concept is part of the visit domain and can indicate if a patient was transferred to another hospital or sent to a long-term care facility, for example.  It is assumed that a person is discharged to home therefore there is not a standard concept id for &quot;home&quot;.  Use concept id = 0 when a person is discharged to home.">discharged_to_concept_id</a><a name="OMOPVisitDetail.discharged_to_concept_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPConcept.html">Concept OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Discharged To</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.preceding-visit-detail-id" title="Use this field to find the visit detail that occurred for the person prior to the given visit detail record. There could be a few days or a few years in between.">preceding_visit_detail_id</a><a name="OMOPVisitDetail.preceding_visit_detail_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPVisitDetail.html">Visit Detail OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Preceding Visit</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.parent-visit-detail-id" title="Use this field to find the visit detail that subsumes the given visit detail record. This is used in the case that a visit detail record needs to be nested beyond the VISIT_OCCURRENCE/VISIT_DETAIL relationship.">parent_visit_detail_id</a><a name="OMOPVisitDetail.parent_visit_detail_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPVisitDetail.html">Visit Detail OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Parent Visit</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Référence à une autre ressource" class="hierarchy"/> <a href="StructureDefinition-OMOPVisitDetail-definitions.html#OMOPVisitDetail.visit-occurrence-id" title="Use this field to link the VISIT_DETAIL record to its VISIT_OCCURRENCE.">visit_occurrence_id</a><a name="OMOPVisitDetail.visit_occurrence_id"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-OMOPVisitOccurrence.html">Visit Occurrence OMOP Table</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Visit Occurrence</td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Légende pour ce format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation pour ce format</a></td></tr></table></div>
      </text>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
        <valueCode value="can-be-target"/>
      </extension>
      <url
           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPVisitDetail"/>
      <version value="0.1.0"/>
      <name value="OMOPVisitDetail"/>
      <title value="Visit Detail OMOP Table"/>
      <status value="draft"/>
      <date value="2026-04-16T14:35:38+00:00"/>
      <publisher value="AP-HP"/>
      <contact>
        <name value="AP-HP"/>
        <telecom>
          <system value="url"/>
          <value value="https://aphp.fr"/>
        </telecom>
      </contact>
      <description
                   value="The VISIT_DETAIL table is an optional table used to represents details of each record in the parent VISIT_OCCURRENCE table. A good example of this would be the movement between units in a hospital during an inpatient stay or claim lines associated with a one insurance claim. For every record in the VISIT_OCCURRENCE table there may be 0 or more records in the VISIT_DETAIL table with a 1:n relationship where n may be 0. The VISIT_DETAIL table is structurally very similar to VISIT_OCCURRENCE table and belongs to the visit domain."/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="FR"/>
        </coding>
      </jurisdiction>
      <fhirVersion value="4.0.1"/>
      <kind value="logical"/>
      <abstract value="false"/>
      <type
            value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPVisitDetail"/>
      <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Base"/>
      <derivation value="specialization"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="4.0.1"/>
        </extension>
        <element id="OMOPVisitDetail">
          <path value="OMOPVisitDetail"/>
          <short value="Visit Detail OMOP Table"/>
          <definition
                      value="The VISIT_DETAIL table is an optional table used to represents details of each record in the parent VISIT_OCCURRENCE table. A good example of this would be the movement between units in a hospital during an inpatient stay or claim lines associated with a one insurance claim. For every record in the VISIT_OCCURRENCE table there may be 0 or more records in the VISIT_DETAIL table with a 1:n relationship where n may be 0. The VISIT_DETAIL table is structurally very similar to VISIT_OCCURRENCE table and belongs to the visit domain."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Base"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <isModifier value="false"/>
        </element>
        <element id="OMOPVisitDetail.visit-detail-id">
          <path value="OMOPVisitDetail.visit_detail_id"/>
          <short value="Visit Detail Identifier"/>
          <definition
                      value="Use this to identify unique interactions between a person and the health care system. This identifier links across the other CDM event tables to associate events with a visit detail."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_id"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="integer"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.person-id">
          <path value="OMOPVisitDetail.person_id"/>
          <short value="Person"/>
          <definition value="Person"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.person_id"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPPerson"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-concept-id">
          <path value="OMOPVisitDetail.visit_detail_concept_id"/>
          <short value="Visit Detail"/>
          <definition
                      value="This field contains a concept id representing the kind of visit detail, like inpatient or outpatient. All concepts in this field should be standard and belong to the Visit domain."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_concept_id"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-start-date">
          <path value="OMOPVisitDetail.visit_detail_start_date"/>
          <short value="Visit Detail Start Date"/>
          <definition
                      value="This is the date of the start of the encounter. This may or may not be equal to the date of the Visit the Visit Detail is associated with."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_start_date"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="date"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-start-datetime">
          <path value="OMOPVisitDetail.visit_detail_start_datetime"/>
          <short value="Visit Detail Start Datetime"/>
          <definition value="Visit Detail Start Datetime"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_start_datetime"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-end-date">
          <path value="OMOPVisitDetail.visit_detail_end_date"/>
          <short value="Visit Detail End Date"/>
          <definition
                      value="This the end date of the patient-provider interaction.  If a Person is still an inpatient in the hospital at the time of the data extract and does not have a visit_end_date, then set the visit_end_date to the date of the data pull."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_end_date"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="date"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-end-datetime">
          <path value="OMOPVisitDetail.visit_detail_end_datetime"/>
          <short value="Visit Detail End Datetime"/>
          <definition
                      value="If a Person is still an inpatient in the hospital at the time of the data extract and does not have a visit_end_datetime, then set the visit_end_datetime to the datetime of the data pull."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_end_datetime"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-type-concept-id">
          <path value="OMOPVisitDetail.visit_detail_type_concept_id"/>
          <short value="Visit Detail Type"/>
          <definition
                      value="Use this field to understand the provenance of the visit detail record, or where the record comes from."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_type_concept_id"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.provider-id">
          <path value="OMOPVisitDetail.provider_id"/>
          <short value="Provider"/>
          <definition
                      value="There will only be one provider per  **visit** record and the ETL document should clearly state how they were chosen (attending, admitting, etc.). This is a typical reason for leveraging the VISIT_DETAIL table as even though each VISIT_DETAIL record can only have one provider, there is no limit to the number of VISIT_DETAIL records that can be associated to a VISIT_OCCURRENCE record."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.provider_id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPProvider"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.care-site-id">
          <path value="OMOPVisitDetail.care_site_id"/>
          <short value="Care Site"/>
          <definition
                      value="This field provides information about the Care Site where the Visit Detail took place."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.care_site_id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPCareSite"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-source-value">
          <path value="OMOPVisitDetail.visit_detail_source_value"/>
          <short value="Visit Detail Source Value"/>
          <definition
                      value="This field houses the verbatim value from the source data representing the kind of visit detail that took place (inpatient, outpatient, emergency, etc.)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_source_value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-source-concept-id">
          <path value="OMOPVisitDetail.visit_detail_source_concept_id"/>
          <short value="Visit Detail Source Concept"/>
          <definition value="Visit Detail Source Concept"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_detail_source_concept_id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.admitted-from-concept-id">
          <path value="OMOPVisitDetail.admitted_from_concept_id"/>
          <short value="Admitted From"/>
          <definition
                      value="Use this field to determine where the patient was admitted from. This concept is part of the visit domain and can indicate if a patient was admitted to the hospital from a long-term care facility, for example."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.admitted_from_concept_id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.admitted-from-source-value">
          <path value="OMOPVisitDetail.admitted_from_source_value"/>
          <short value="Admitted From Source Value"/>
          <definition value="Admitted From Source Value"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.admitted_from_source_value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.discharged-to-source-value">
          <path value="OMOPVisitDetail.discharged_to_source_value"/>
          <short value="Discharged To Source Value"/>
          <definition value="Discharged To Source Value"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.discharged_to_source_value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.discharged-to-concept-id">
          <path value="OMOPVisitDetail.discharged_to_concept_id"/>
          <short value="Discharged To"/>
          <definition
                      value="Use this field to determine where the patient was discharged to after a visit. This concept is part of the visit domain and can indicate if a patient was transferred to another hospital or sent to a long-term care facility, for example.  It is assumed that a person is discharged to home therefore there is not a standard concept id for &quot;home&quot;.  Use concept id = 0 when a person is discharged to home."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.discharged_to_concept_id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.preceding-visit-detail-id">
          <path value="OMOPVisitDetail.preceding_visit_detail_id"/>
          <short value="Preceding Visit"/>
          <definition
                      value="Use this field to find the visit detail that occurred for the person prior to the given visit detail record. There could be a few days or a few years in between."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.preceding_visit_detail_id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPVisitDetail"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.parent-visit-detail-id">
          <path value="OMOPVisitDetail.parent_visit_detail_id"/>
          <short value="Parent Visit"/>
          <definition
                      value="Use this field to find the visit detail that subsumes the given visit detail record. This is used in the case that a visit detail record needs to be nested beyond the VISIT_OCCURRENCE/VISIT_DETAIL relationship."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.parent_visit_detail_id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPVisitDetail"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-occurrence-id">
          <path value="OMOPVisitDetail.visit_occurrence_id"/>
          <short value="Visit Occurrence"/>
          <definition
                      value="Use this field to link the VISIT_DETAIL record to its VISIT_OCCURRENCE."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="OMOPVisitDetail.visit_occurrence_id"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPVisitOccurrence"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="OMOPVisitDetail">
          <path value="OMOPVisitDetail"/>
          <short value="Visit Detail OMOP Table"/>
          <definition
                      value="The VISIT_DETAIL table is an optional table used to represents details of each record in the parent VISIT_OCCURRENCE table. A good example of this would be the movement between units in a hospital during an inpatient stay or claim lines associated with a one insurance claim. For every record in the VISIT_OCCURRENCE table there may be 0 or more records in the VISIT_DETAIL table with a 1:n relationship where n may be 0. The VISIT_DETAIL table is structurally very similar to VISIT_OCCURRENCE table and belongs to the visit domain."/>
        </element>
        <element id="OMOPVisitDetail.visit-detail-id">
          <path value="OMOPVisitDetail.visit_detail_id"/>
          <short value="Visit Detail Identifier"/>
          <definition
                      value="Use this to identify unique interactions between a person and the health care system. This identifier links across the other CDM event tables to associate events with a visit detail."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="integer"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.person-id">
          <path value="OMOPVisitDetail.person_id"/>
          <short value="Person"/>
          <definition value="Person"/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPPerson"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-concept-id">
          <path value="OMOPVisitDetail.visit_detail_concept_id"/>
          <short value="Visit Detail"/>
          <definition
                      value="This field contains a concept id representing the kind of visit detail, like inpatient or outpatient. All concepts in this field should be standard and belong to the Visit domain."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-start-date">
          <path value="OMOPVisitDetail.visit_detail_start_date"/>
          <short value="Visit Detail Start Date"/>
          <definition
                      value="This is the date of the start of the encounter. This may or may not be equal to the date of the Visit the Visit Detail is associated with."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="date"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-start-datetime">
          <path value="OMOPVisitDetail.visit_detail_start_datetime"/>
          <short value="Visit Detail Start Datetime"/>
          <definition value="Visit Detail Start Datetime"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-end-date">
          <path value="OMOPVisitDetail.visit_detail_end_date"/>
          <short value="Visit Detail End Date"/>
          <definition
                      value="This the end date of the patient-provider interaction.  If a Person is still an inpatient in the hospital at the time of the data extract and does not have a visit_end_date, then set the visit_end_date to the date of the data pull."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="date"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-end-datetime">
          <path value="OMOPVisitDetail.visit_detail_end_datetime"/>
          <short value="Visit Detail End Datetime"/>
          <definition
                      value="If a Person is still an inpatient in the hospital at the time of the data extract and does not have a visit_end_datetime, then set the visit_end_datetime to the datetime of the data pull."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-type-concept-id">
          <path value="OMOPVisitDetail.visit_detail_type_concept_id"/>
          <short value="Visit Detail Type"/>
          <definition
                      value="Use this field to understand the provenance of the visit detail record, or where the record comes from."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.provider-id">
          <path value="OMOPVisitDetail.provider_id"/>
          <short value="Provider"/>
          <definition
                      value="There will only be one provider per  **visit** record and the ETL document should clearly state how they were chosen (attending, admitting, etc.). This is a typical reason for leveraging the VISIT_DETAIL table as even though each VISIT_DETAIL record can only have one provider, there is no limit to the number of VISIT_DETAIL records that can be associated to a VISIT_OCCURRENCE record."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPProvider"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.care-site-id">
          <path value="OMOPVisitDetail.care_site_id"/>
          <short value="Care Site"/>
          <definition
                      value="This field provides information about the Care Site where the Visit Detail took place."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPCareSite"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-source-value">
          <path value="OMOPVisitDetail.visit_detail_source_value"/>
          <short value="Visit Detail Source Value"/>
          <definition
                      value="This field houses the verbatim value from the source data representing the kind of visit detail that took place (inpatient, outpatient, emergency, etc.)"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-detail-source-concept-id">
          <path value="OMOPVisitDetail.visit_detail_source_concept_id"/>
          <short value="Visit Detail Source Concept"/>
          <definition value="Visit Detail Source Concept"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.admitted-from-concept-id">
          <path value="OMOPVisitDetail.admitted_from_concept_id"/>
          <short value="Admitted From"/>
          <definition
                      value="Use this field to determine where the patient was admitted from. This concept is part of the visit domain and can indicate if a patient was admitted to the hospital from a long-term care facility, for example."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.admitted-from-source-value">
          <path value="OMOPVisitDetail.admitted_from_source_value"/>
          <short value="Admitted From Source Value"/>
          <definition value="Admitted From Source Value"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.discharged-to-source-value">
          <path value="OMOPVisitDetail.discharged_to_source_value"/>
          <short value="Discharged To Source Value"/>
          <definition value="Discharged To Source Value"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.discharged-to-concept-id">
          <path value="OMOPVisitDetail.discharged_to_concept_id"/>
          <short value="Discharged To"/>
          <definition
                      value="Use this field to determine where the patient was discharged to after a visit. This concept is part of the visit domain and can indicate if a patient was transferred to another hospital or sent to a long-term care facility, for example.  It is assumed that a person is discharged to home therefore there is not a standard concept id for &quot;home&quot;.  Use concept id = 0 when a person is discharged to home."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPConcept"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.preceding-visit-detail-id">
          <path value="OMOPVisitDetail.preceding_visit_detail_id"/>
          <short value="Preceding Visit"/>
          <definition
                      value="Use this field to find the visit detail that occurred for the person prior to the given visit detail record. There could be a few days or a few years in between."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPVisitDetail"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.parent-visit-detail-id">
          <path value="OMOPVisitDetail.parent_visit_detail_id"/>
          <short value="Parent Visit"/>
          <definition
                      value="Use this field to find the visit detail that subsumes the given visit detail record. This is used in the case that a visit detail record needs to be nested beyond the VISIT_OCCURRENCE/VISIT_DETAIL relationship."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPVisitDetail"/>
          </type>
        </element>
        <element id="OMOPVisitDetail.visit-occurrence-id">
          <path value="OMOPVisitDetail.visit_occurrence_id"/>
          <short value="Visit Occurrence"/>
          <definition
                      value="Use this field to link the VISIT_DETAIL record to its VISIT_OCCURRENCE."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://aphp.github.io/IG-fhir-dm/StructureDefinition/OMOPVisitOccurrence"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>