<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="digidot-DentalBodySite-no" />
  <url value="https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalBodySite-no" />
  <version value="0.4.2" />
  <name value="DigidotDentalBodySiteNo" />
  <title value="DigiDOT Dental BodySite (inline anatomy)" />
  <status value="draft" />
  <date value="2026-11-03" />
  <publisher value="Novari AS - DigiDOT" />
  <description value="Readiness: [In development](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-dentalbodysite).&#xA;&#xA;Inline R4 container for one anatomical group, covering a tooth or another body structure. Its single complex extension represents the five Xt-EHR EHDSBodyStructure 1.0.0 fields. The nested definition contains the general anatomical bindings and additional dental selection subsets." />
  <purpose value="Separate the exact logical-model field representation from dental workflow and terminology rules. No independent BodyStructure identity is required. This does not assert legal EHDS certification or conformity with an unspecified EHDS exchange implementation guide." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="xt-ehr-bodystructure" />
    <uri value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSBodyStructure" />
    <name value="Xt-EHR EHDSBodyStructure 1.0.0 logical model" />
    <comment value="Element mapping to the logical model, not derivation from an EHDS FHIR implementation profile or a legal conformance claim." />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="CodeableConcept" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CodeableConcept" />
  <derivation value="constraint" />
  <differential>
    <element id="CodeableConcept">
      <path value="CodeableConcept" />
      <short value="One Xt-EHR anatomical group" />
      <definition value="Inline R4 container for one Xt-EHR Body structure group. Its single complex extension represents location, locationQualifier, laterality, morphology and description using the logical model cardinalities and datatypes." />
    </element>
    <element id="CodeableConcept.extension">
      <path value="CodeableConcept.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="closed" />
      </slicing>
      <min value="1" />
      <max value="1" />
    </element>
    <element id="CodeableConcept.extension:bodyStructure">
      <path value="CodeableConcept.extension" />
      <sliceName value="bodyStructure" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-ehds-body-structure" />
      </type>
    </element>
    <element id="CodeableConcept.extension:bodyStructure.url">
      <path value="CodeableConcept.extension.url" />
      <fixedUri value="https://novari.no/fhir/digidot/StructureDefinition/digidot-ehds-body-structure" />
    </element>
    <element id="CodeableConcept.coding">
      <path value="CodeableConcept.coding" />
      <definition value="Location coding is inside the bodyStructure extension; do not duplicate it here." />
      <max value="0" />
    </element>
    <element id="CodeableConcept.text">
      <path value="CodeableConcept.text" />
      <definition value="Use location.text or description inside the bodyStructure extension." />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>