<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="digidot-Observation-no" />
  <url value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no" />
  <version value="0.7.0" />
  <name value="DigidotObservationNo" />
  <title value="DigiDot Observation (NO)" />
  <status value="draft" />
  <date value="2026-11-02" />
  <publisher value="Novari AS - DigiDOT" />
  <description value="Readiness: [In review](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-observation).&#xA;&#xA;Profile base: FHIR R4 Observation (http://hl7.org/fhir/StructureDefinition/Observation).&#xA;&#xA;Represents the result of a dental measurement or assessment, such as periodontal pocket depth or a patient-reported pain score. Use it to record what was assessed and the result, or why no result is available, together with the patient contact, time and relevant tooth or oral site. An observation can provide supporting evidence for a finding or diagnosis recorded as a Condition." />
  <purpose value="Use this profile for dental measurements, assessment results, patient-reported scores and calculated indicators with an agreed SNOMED CT representation. Record what was assessed in code and the result in value[x], or explain a missing result in dataAbsentReason. Link each result to the patient and the required Encounter. Record clinical time, the known performer, method and relevant anatomy. Use Condition for a clinically significant finding, diagnosis or problem; an Observation can provide evidence for that Condition. Generate structured anatomy and extended clinical meaning from the same clinical input and validate equal anatomical scope. Local assessment codes require an agreed terminology mapping; do not invent one." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="Dental measurement, assessment result, patient-reported score or calculated indicator" />
      <constraint>
        <key value="obs-result-or-absent-reason" />
        <severity value="error" />
        <human value="A DigiDOT Observation must contain one result value or one standard data absent reason." />
        <expression value="value.exists() or dataAbsentReason.exists()" />
      </constraint>
      <constraint>
        <key value="observation-anatomy-same-release" />
        <severity value="error" />
        <human value="When bodySite is populated, SNOMED CT clinical codings use the selected Norwegian edition release 20260715." />
        <expression value="bodySite.empty() or code.coding.where(system = 'http://snomed.info/sct').all(version = 'http://snomed.info/sct/51000202101/version/20260715')" />
      </constraint>
      <constraint>
        <key value="digidot-status-known" />
        <severity value="error" />
        <human value="Do not use unknown as a default or an unmapped lifecycle status." />
        <expression value="status != 'unknown'" />
      </constraint>
      <constraint>
        <key value="observation-anatomy-version-match" />
        <severity value="error" />
        <human value="Every SNOMED CT anatomical coding in the inline body-structure extension must state the same edition release as SCTextended." />
        <expression value="bodySite.extension.where(url = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ehds-body-structure').extension.value.ofType(CodeableConcept).coding.where(system = 'http://snomed.info/sct').all(version.exists() and version = %resource.code.coding.where(id = 'SCTextended').version)" />
      </constraint>
    </element>
    <element id="Observation.implicitRules">
      <path value="Observation.implicitRules" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="The Central Storage representation follows the published DigiDOT profile and does not use resource-specific implicit rules." />
      <max value="0" />
    </element>
    <element id="Observation.contained">
      <path value="Observation.contained" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="Central Storage uses independently identifiable and searchable resources. Supporting resources must be stored separately and referenced through an agreed profile relationship." />
      <max value="0" />
    </element>
    <element id="Observation.extension">
      <path value="Observation.extension" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="No named and governed Observation extension is in scope. A future extension requires a documented use case and an explicit profile change." />
      <max value="0" />
    </element>
    <element id="Observation.modifierExtension">
      <path value="Observation.modifierExtension" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="Modifier extensions can change the meaning of an Observation and require every consumer to understand them. No modifier extension is defined for the current DigiDOT scope." />
      <max value="0" />
    </element>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <short value="Stable source business identifiers when available" />
      <definition value="Stable business identifiers for this record. If the source EHR or external system has a stable business identifier, it SHALL be included and preserved with its assigning system and value. The element is optional when no such identifier is available. Each supplied identifier SHALL contain system and value. Do not copy the local FHIR resource id merely to populate this element." />
      <comment value="MustSupport requires producers to support conveying available source identifiers and receivers to support preserving them; it does not require inventing an identifier when none is available. Any additional identifier-assignment and matching requirements belong in the exchange contract. An integration-assigned identifier requires governed assignment and a persistent mapping across retries; never generate a fresh identifier on each submission. Different records retain their own identities, even when they share the same patient or care episode. Resource references and FHIR server id rules are unchanged." />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.identifier.system">
      <path value="Observation.identifier.system" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.identifier.value">
      <path value="Observation.identifier.value" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <short value="Planned or requested service that this observation fulfils" />
      <definition value="Use basedOn when the observation fulfils a planned, proposed or requested dental service, examination or assessment. When known, reference DigiDOT ServiceRequest." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.partOf">
      <path value="Observation.partOf" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="Use Encounter for the dental contact and DiagnosticReport.result for an agreed imaging or diagnostic report relationship. No Observation.partOf relationship is currently modelled for Central Storage." />
      <max value="0" />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <short value="Lifecycle status for the observation" />
      <definition value="Use final for a stable clinical result. Other valid FHIR Observation statuses remain available for preliminary, corrected, entered-in-error or migrated data when that lifecycle is known." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <short value="Optional standard category marker for the observation" />
      <definition value="Use Observation.category as an optional standard marker for searching, sorting, display and comparison across systems. It is not the clinical observation code and does not replace Observation.code." />
      <min value="0" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <description value="When Observation.category is included, use one code from the standard FHIR Observation category value set." />
        <valueSet value="http://terminology.hl7.org/ValueSet/observation-category" />
      </binding>
    </element>
    <element id="Observation.category.extension">
      <path value="Observation.category.extension" />
      <short value="No extensions on the observation category" />
      <definition value="The category is a single standard interoperable marker. Extensions on Observation.category are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.category.coding">
      <path value="Observation.category.coding" />
      <short value="Standard FHIR Observation category coding" />
      <definition value="When Observation.category is populated, use exactly one coding from the standard FHIR Observation category code system." />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
      </patternCoding>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="Observable entity" />
      <definition value="Record what was measured or assessed in the SNOMED CT Observable entity hierarchy. The result belongs in value[x], not in the clinical code. Include exactly one SCTextended coding and optionally one SCTpre coding. SCTextended carries the complete intended meaning as either a single precoordinated SNOMED CT concept or a postcoordinated expression. SCTpre is an optional, directly usable concept representing the same clinical meaning at the same or a compatible broader level of detail. Do not add a duplicate companion merely to fill a slot. When both are present they must use the same edition release and must not contradict each other; the extended coding may add compatible precision. Compatible meaning must be checked through the terminology contract, not inferred from code equality. When bodySite is present, the extended coding must represent the same complete anatomical scope. Prefer a valid postcoordinated expression when additional clinical or anatomical detail needs to be represented. A single precoordinated concept is sufficient if its defined meaning already represents the complete intended scope. Validate concept membership, compositional grammar, MRCM, clinical templates and anatomical equivalence with the terminology service; a FHIR syntax guard cannot establish these semantic requirements." />
      <min value="1" />
      <max value="1" />
      <constraint>
        <key value="digidot-coding-same-release" />
        <severity value="error" />
        <human value="When SCTpre is present, both clinical codings must use the same SNOMED CT edition release." />
        <expression value="coding.where(id = 'SCTpre').empty() or coding.where(id = 'SCTpre').version = coding.where(id = 'SCTextended').version" />
      </constraint>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Required Observable entity scope for the clinical code. SCTpre accepts a single concept identifier; SCTextended accepts a concept identifier or a valid expression within this scope. This is a semantic scope, not a national dental reference-set selection." />
        <valueSet value="https://novari.no/fhir/digidot/ValueSet/digidot-observation-codes" />
      </binding>
    </element>
    <element id="Observation.code.extension">
      <path value="Observation.code.extension" />
      <short value="No extensions on the clinical observation code" />
      <definition value="Additional SNOMED CT precision is represented by the agreed SCTextended coding in Observation.code.coding. Extensions on Observation.code are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="id" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <short value="One required extended coding and one optional precoordinated coding" />
      <definition value="Include exactly one SCTextended coding and optionally one SCTpre coding. SCTextended carries the complete intended meaning as either a single precoordinated SNOMED CT concept or a postcoordinated expression. SCTpre is an optional, directly usable concept representing the same clinical meaning at the same or a compatible broader level of detail. Do not add a duplicate companion merely to fill a slot. When both are present they must use the same edition release and must not contradict each other; the extended coding may add compatible precision. Compatible meaning must be checked through the terminology contract, not inferred from code equality. Fixed Coding.id values distinguish the roles because a numeric concept can conform to both datatype profiles." />
      <min value="1" />
      <max value="2" />
    </element>
    <element id="Observation.code.coding:SCTpre">
      <path value="Observation.code.coding" />
      <sliceName value="SCTpre" />
      <short value="Optional precoordinated SNOMED CT concept" />
      <definition value="Optional single numeric SNOMED CT concept in the Observable entity scope, compatible with the complete meaning in SCTextended. The SCTpre datatype prohibits postcoordinated expressions, even though the shared ValueSet also supports them for SCTextended. Both codings must use the same edition release." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Required Observable entity scope, restricted here to a single concept by the SCTpre datatype. Postcoordinated expressions are not permitted in this slice." />
        <valueSet value="https://novari.no/fhir/digidot/ValueSet/digidot-observation-codes" />
      </binding>
    </element>
    <element id="Observation.code.coding:SCTpre.id">
      <path value="Observation.code.coding.id" />
      <short value="SCTpre slot identifier" />
      <definition value="Required technical element identifier SCTpre, used to select this coding slice. Preserve it when exchanging or transforming a conforming DigiDOT record. The identifier selects the coding role; it is not the SNOMED CT concept code." />
      <min value="1" />
      <fixedString value="SCTpre" />
    </element>
    <element id="Observation.code.coding:SCTextended">
      <path value="Observation.code.coding" />
      <sliceName value="SCTextended" />
      <short value="Required extended SNOMED CT code: concept or expression" />
      <definition value="The complete clinical meaning in the Observable entity scope, represented by one sufficiently specific SNOMED CT concept or a valid postcoordinated expression. A single concept is allowed; postcoordination is not mandatory. Follow the meaning and anatomy rules on Observation.code. Prefer postcoordination for additional clinical detail; do not add an identical SCTpre coding merely to fill the optional slice." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpost-no" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Required Observable entity scope. This slice permits a single concept or a valid postcoordinated expression within that scope; expression syntax and meaning need terminology validation." />
        <valueSet value="https://novari.no/fhir/digidot/ValueSet/digidot-observation-codes" />
      </binding>
    </element>
    <element id="Observation.code.coding:SCTextended.id">
      <path value="Observation.code.coding.id" />
      <short value="SCTextended slot identifier" />
      <definition value="Required technical element identifier SCTextended, used to select this coding slice. Preserve it when exchanging or transforming a conforming DigiDOT record. The identifier selects the coding role; it is not the SNOMED CT concept code." />
      <min value="1" />
      <fixedString value="SCTextended" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <short value="Patient the observation belongs to" />
      <definition value="Reference the no-basis Patient that owns the dental observation. External data must be mapped to this agreed patient representation before it becomes a canonical DigiDOT Observation in Central Storage." />
      <comment value="Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
      </type>
      <constraint>
        <key value="observation-subject-literal" />
        <severity value="error" />
        <human value="A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject.reference">
      <path value="Observation.subject.reference" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.subject.identifier">
      <path value="Observation.subject.identifier" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="Condition.evidence.detail is the authoritative explicit relationship from a clinical condition to its supporting Observation. Observation.bodySite references the patient-specific DigiDOT Dental BodyStructure when anatomy is known. Observation.focus is not used as an alternative link to Condition or BodyStructure." />
      <max value="0" />
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <short value="Encounter where the observation was made" />
      <definition value="Reference the DigiDOT Encounter during which the observation was measured, assessed or reported. Location and organisation context are resolved through the Encounter." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <short value="Time when the observed value was true" />
      <definition value="Use effectiveDateTime for the clinically relevant time of a simple dental observation. This is normally when it was measured, assessed or reported, and may differ from when the record was created or imported." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.issued">
      <path value="Observation.issued" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="Use Observation.effectiveDateTime for the clinically relevant time. Source import, publication and record-history times are handled by resource metadata and Provenance rather than Observation.issued." />
      <max value="0" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <short value="Known person responsible for the reported result" />
      <definition value="The known person responsible for asserting the reported measurement or assessment. Use Practitioner for a clinician-performed or clinician-assessed result and Patient for a self-reported result. The person entering the record is not automatically the performer. Record the responsible clinician when known; a patient-reported score does not require an invented clinician performer. This element remains optional to allow results whose source does not identify a performer; do not infer one from the importing system." />
      <comment value="Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
      </type>
      <constraint>
        <key value="observation-performer-literal" />
        <severity value="error" />
        <human value="A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer.reference">
      <path value="Observation.performer.reference" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.performer.identifier">
      <path value="Observation.performer.identifier" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <short value="Result value" />
      <definition value="The single result of the observation. Use valueQuantity for a measured quantity, valueCodeableConcept for a coded categorical result, valueInteger for a score or calculated count, valueBoolean for a true/false result, and valueString only when no structured result can faithfully represent the source content. Do not use valueString to repeat structured codes, anatomy, status or method. When no result is available, use dataAbsentReason instead of leaving both elements empty." />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueBoolean">
      <path value="Observation.value[x]" />
      <sliceName value="valueBoolean" />
      <short value="True or false result" />
      <definition value="Use valueBoolean for a clinically meaningful true/false result. Do not use it for a coded category with more than two possible results." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueInteger">
      <path value="Observation.value[x]" />
      <sliceName value="valueInteger" />
      <short value="Whole-number score or count" />
      <definition value="Use valueInteger for a discrete score, count or calculated index with no physical unit, such as DMFT or DMFS. Use valueQuantity when a unit of measure is required." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="integer" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueString">
      <path value="Observation.value[x]" />
      <sliceName value="valueString" />
      <short value="Source result without a faithful structured representation" />
      <definition value="Use valueString only when the source result cannot faithfully be represented as a quantity, coded result, integer or Boolean. It is a controlled fallback, not a default result type. Record a mapping gap when the same unstructured result recurs and needs a governed representation." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.valueCodeableConcept">
      <path value="Observation.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <short value="Coded categorical result" />
      <definition value="Use valueCodeableConcept for a categorical result that has a faithful code. The applicable code system and ValueSet depend on Observation.code. This field remains open for agreed SNOMED CT, national and other governed code systems; it is not restricted to one generic result ValueSet." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.valueCodeableConcept.extension">
      <path value="Observation.valueCodeableConcept.extension" />
      <short value="No extensions on the coded result" />
      <definition value="The coded result is represented by its coding and optional source text. Extensions are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.valueCodeableConcept.coding">
      <path value="Observation.valueCodeableConcept.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="Coded observation result" />
      <definition value="When valueCodeableConcept is used, record at least one coded result. Use the code system and ValueSet that are appropriate for Observation.code; text may supplement but must not be the only result representation. When a coding uses SNOMED CT, it must be a direct precoordinated concept with the selected SNOMED CT edition release. SNOMED CT codings use the shared SCTpre profile. The slice is selected by system; no Coding.id marker is required. Other code systems remain subject to the existing field binding." />
      <min value="1" />
    </element>
    <element id="Observation.valueCodeableConcept.coding.extension">
      <path value="Observation.valueCodeableConcept.coding.extension" />
      <short value="No extensions on the coded result coding" />
      <definition value="A coded result uses the agreed code system directly. Extensions on the coding are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.valueCodeableConcept.coding.system">
      <path value="Observation.valueCodeableConcept.coding.system" />
      <short value="Code system for the coded result" />
      <min value="1" />
    </element>
    <element id="Observation.valueCodeableConcept.coding.code">
      <path value="Observation.valueCodeableConcept.coding.code" />
      <short value="Code for the coded result" />
      <min value="1" />
    </element>
    <element id="Observation.valueCodeableConcept.coding.userSelected">
      <path value="Observation.valueCodeableConcept.coding.userSelected" />
      <short value="Not used for the coded result" />
      <definition value="The code is the agreed exchange representation. userSelected is not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.valueCodeableConcept.coding:SCTpre">
      <path value="Observation.valueCodeableConcept.coding" />
      <sliceName value="SCTpre" />
      <short value="Precoordinated SNOMED CT coding" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Coding" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no" />
      </type>
    </element>
    <element id="Observation.valueCodeableConcept.coding:SCTpre.system">
      <path value="Observation.valueCodeableConcept.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.valueCodeableConcept.text">
      <path value="Observation.valueCodeableConcept.text" />
      <short value="Supplementary source display text" />
      <definition value="Text may preserve a useful source display, but it does not replace the required coding and must not introduce a different clinical result." />
    </element>
    <element id="Observation.value[x]:valueQuantity">
      <path value="Observation.value[x]" />
      <sliceName value="valueQuantity" />
      <short value="Measured quantity" />
      <definition value="Use valueQuantity for a numeric observation with a physical unit. The value, UCUM system and UCUM code are required." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueQuantity.extension">
      <path value="Observation.value[x].extension" />
      <short value="No extensions on the measured quantity" />
      <definition value="The measured quantity is represented by the standard Quantity fields. Extensions are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.value[x]:valueQuantity.value">
      <path value="Observation.value[x].value" />
      <short value="Measured value" />
      <min value="1" />
    </element>
    <element id="Observation.value[x]:valueQuantity.comparator">
      <path value="Observation.value[x].comparator" />
      <short value="Measurement comparator when recorded" />
      <definition value="Use the comparator only when it is part of the source measurement meaning, such as less than or greater than a stated value. Do not use it as a replacement for a coded qualitative result." />
    </element>
    <element id="Observation.value[x]:valueQuantity.unit">
      <path value="Observation.value[x].unit" />
      <short value="Human-readable UCUM unit display" />
      <definition value="Populate unit when the source provides a human-readable display. UCUM system and code remain the authoritative machine-readable unit representation." />
    </element>
    <element id="Observation.value[x]:valueQuantity.system">
      <path value="Observation.value[x].system" />
      <short value="UCUM unit system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.value[x]:valueQuantity.code">
      <path value="Observation.value[x].code" />
      <short value="UCUM unit code" />
      <min value="1" />
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <short value="Reason a simple result is absent" />
      <definition value="Use the standard FHIR data-absent-reason coding when an expected simple result is unavailable. Do not use it together with Observation.value[x]. This distinguishes an unavailable result from an omitted value." />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Use one standard FHIR data absent reason code." />
        <valueSet value="http://hl7.org/fhir/ValueSet/data-absent-reason" />
      </binding>
    </element>
    <element id="Observation.dataAbsentReason.extension">
      <path value="Observation.dataAbsentReason.extension" />
      <short value="No extensions on the absent-result reason" />
      <definition value="The absent-result reason is represented by one standard FHIR code. Extensions on Observation.dataAbsentReason are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.dataAbsentReason.coding">
      <path value="Observation.dataAbsentReason.coding" />
      <short value="Coded reason the result is absent" />
      <definition value="When dataAbsentReason is used, record exactly one standard FHIR data absent reason code." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.dataAbsentReason.coding.extension">
      <path value="Observation.dataAbsentReason.coding.extension" />
      <short value="No extensions on the absent-result coding" />
      <definition value="The absent-result coding uses the standard FHIR code system directly. Extensions on the coding are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.dataAbsentReason.coding.system">
      <path value="Observation.dataAbsentReason.coding.system" />
      <short value="Code system for the absent-result reason" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/data-absent-reason" />
    </element>
    <element id="Observation.dataAbsentReason.coding.code">
      <path value="Observation.dataAbsentReason.coding.code" />
      <short value="Code for the absent-result reason" />
      <min value="1" />
    </element>
    <element id="Observation.dataAbsentReason.coding.userSelected">
      <path value="Observation.dataAbsentReason.coding.userSelected" />
      <short value="Not used for the absent-result reason" />
      <definition value="The standard absent-result reason is the agreed exchange code. userSelected is not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.dataAbsentReason.text">
      <path value="Observation.dataAbsentReason.text" />
      <short value="No free text for the absent-result reason" />
      <definition value="Use the standard coded reason. Free text is not used as a second absent-result representation." />
      <max value="0" />
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="No governed dental interpretation terminology or cross-system mapping is agreed. Record a coded clinical result in valueCodeableConcept when that is the observation result; use a Condition for a clinically significant finding or diagnosis." />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Observation.note.author[x]">
      <path value="Observation.note.author[x]" />
      <definition value="The author of this annotation, distinct from the performer of the observation. Use the identified individual where individual attribution is needed. A no-basis-Organization reference is permitted when the annotation is attributable to the organization and no individual attribution is needed. It does not replace the responsible clinician in performer." />
      <comment value="Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage. An authorString may be retained where this Annotation choice permits it; if authorReference is used, the literal-reference rule applies." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Organization" />
      </type>
      <type>
        <code value="string" />
      </type>
      <constraint>
        <key value="observation-note-author-x-literal" />
        <severity value="error" />
        <human value="A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no" />
      </constraint>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <short value="Inline Xt-EHR anatomy group" />
      <definition value="One inline anatomical group in the shared DentalBodySite format: a complex extension containing location, repeated locationQualifier, laterality, morphology and description, matching the Xt-EHR logical field model. No independent BodyStructure resource is required. Clinical coding and dental workflow rules apply separately." />
      <comment value="FHIR R4 Observation permits at most one bodySite. Use one anatomical group for one site-specific result; record separate results for different teeth as separate Observations. A single aggregate result across several teeth must use a code and, if populated, an anatomical group that describe the aggregate scope. Do not assign an aggregate value to one representative tooth or encode an arbitrary list of tooth groups in this field. The anatomy in SCTextended must cover the same scope. See the shared Dental BodySite guidance for location, qualifiers and laterality." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalBodySite-no" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <short value="How the observation was made or calculated" />
      <definition value="Use method only when it adds information that is not already implicit in Observation.code. If the source records a clinically relevant method, it shall be populated. Prefer a suitable SNOMED CT code from the FHIR Observation Methods ValueSet. Another agreed standard method code may be used when it better represents the source meaning." />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <description value="Prefer a suitable SNOMED CT method from the FHIR Observation Methods ValueSet. This does not require a local CodeSystem or a separate resource instance." />
        <valueSet value="http://hl7.org/fhir/ValueSet/observation-methods" />
      </binding>
    </element>
    <element id="Observation.method.extension">
      <path value="Observation.method.extension" />
      <short value="No extensions on the observation method" />
      <definition value="Method is represented by its coded value. Extensions on Observation.method are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.method.coding">
      <path value="Observation.method.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="Coded observation method" />
      <definition value="When Observation.method is populated, use exactly one coded method. Prefer a suitable SNOMED CT code; retain the original code system and code. Another agreed standard method code is permitted by the preferred binding. SNOMED CT codings use the shared SCTpre profile. The slice is selected by system; no Coding.id marker is required. Other code systems remain subject to the existing field binding." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.method.coding.extension">
      <path value="Observation.method.coding.extension" />
      <short value="No extensions on the observation method coding" />
      <definition value="The observation method is represented by one agreed coding. Extensions on Observation.method.coding are not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.method.coding.system">
      <path value="Observation.method.coding.system" />
      <short value="Code system for the observation method" />
      <min value="1" />
    </element>
    <element id="Observation.method.coding.code">
      <path value="Observation.method.coding.code" />
      <short value="Code for the observation method" />
      <min value="1" />
    </element>
    <element id="Observation.method.coding.userSelected">
      <path value="Observation.method.coding.userSelected" />
      <short value="Not used for the observation method" />
      <definition value="The coded method is the agreed exchange representation. userSelected is not used in the current DigiDOT draft." />
      <max value="0" />
    </element>
    <element id="Observation.method.coding:SCTpre">
      <path value="Observation.method.coding" />
      <sliceName value="SCTpre" />
      <short value="Precoordinated SNOMED CT coding" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no" />
      </type>
    </element>
    <element id="Observation.method.coding:SCTpre.system">
      <path value="Observation.method.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.method.text">
      <path value="Observation.method.text" />
      <short value="No free text method" />
      <definition value="Use the coded method. Free text is not used as a second method representation." />
      <max value="0" />
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="Specimen-based laboratory observations require a separate agreed model and are outside the current dental Observation scope." />
      <max value="0" />
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="The current profile does not model device-generated measurements. Imaging and device context must use their own agreed resources and relationships." />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="No dental reference-range terminology or cross-system calculation model is agreed for the current scope." />
      <max value="0" />
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="Use separate DigiDOT Observation resources when results need separate codes, anatomy, times or lifecycle states. Grouping and questionnaire modelling require separate agreed profiles." />
      <max value="0" />
    </element>
    <element id="Observation.derivedFrom">
      <path value="Observation.derivedFrom" />
      <short value="Source document from which this result was derived" />
      <definition value="Reference a no-basis DocumentReference for a source document or image from which this observation was obtained, for example a measurement transcribed from an original periodontal chart. Use this only for an actual derivation relationship, not for any related attachment or a report subsequently generated from this Observation. Patient-specific source documents must concern the same patient." />
      <comment value="Use a literal reference to a separately stored permitted resource. The receiving service must check target existence, profile conformance and patient consistency. File access is through the document API, not a database table identifier." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference" />
      </type>
      <constraint>
        <key value="observation-derivedfrom-literal" />
        <severity value="error" />
        <human value="A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no" />
      </constraint>
    </element>
    <element id="Observation.derivedFrom.reference">
      <path value="Observation.derivedFrom.reference" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.derivedFrom.identifier">
      <path value="Observation.derivedFrom.identifier" />
      <max value="0" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <short value="Not used in the current DigiDOT Observation draft" />
      <definition value="The current Central Storage draft represents one result per Observation. A multi-component dental index or assessment requires a governed component terminology and mapping model before Observation.component is reopened." />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>