{
  "resourceType": "StructureDefinition",
  "id": "digidot-Condition-no",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no",
  "version": "0.7.0",
  "name": "DigidotConditionNo",
  "title": "DigiDot Condition (NO)",
  "status": "draft",
  "date": "2026-11-03",
  "publisher": "Novari AS - DigiDOT",
  "description": "Readiness: [In review](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-condition).\n\nProfile base: FHIR R4 Condition (http://hl7.org/fhir/StructureDefinition/Condition).\n\nRepresents a clinically significant dental finding, diagnosis or problem, such as dental caries or periodontitis. Use it to record what has been identified, its clinical status and diagnostic certainty, and the affected tooth or oral site. Link it to the patient contact where it was recorded. The condition can be followed over time and referenced when planning or documenting treatment.",
  "purpose": "Use this profile when a dental clinician records or exchanges a clinically significant dental condition that should be assessed, tracked, managed or used as a reason for planned or performed care. Every Condition references the Encounter where it was asserted or recorded. When anatomy is known, Condition.bodySite carries one complete inline anatomical value for each tooth or oral structure. When the resource represents an external assertion retained in Central Storage, preserve source responsibility, provenance and freshness. Generate structured anatomy and extended clinical meaning from the same clinical input and validate equal anatomical scope.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition",
        "path": "Condition",
        "short": "Clinically significant dental finding, diagnosis, problem or condition",
        "constraint": [
          {
            "key": "cond-clinical-status-or-entered-error",
            "severity": "error",
            "human": "A clinical status is required unless verificationStatus is entered-in-error.",
            "expression": "clinicalStatus.exists() or verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists()"
          },
          {
            "key": "condition-anatomy-same-release",
            "severity": "error",
            "human": "When bodySite is populated, clinical SNOMED CT codings use the pinned Norwegian draft release 20260715. Anatomical Coding.version equality is checked separately.",
            "expression": "bodySite.empty() or code.coding.where(system = 'http://snomed.info/sct').all(version = 'http://snomed.info/sct/51000202101/version/20260715')"
          },
          {
            "key": "condition-anatomy-version-match",
            "severity": "error",
            "human": "Every SNOMED CT anatomical coding in the inline body-structure extension must state the same edition release as SCTextended.",
            "expression": "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)"
          }
        ]
      },
      {
        "id": "Condition.implicitRules",
        "path": "Condition.implicitRules",
        "max": "0"
      },
      {
        "id": "Condition.contained",
        "path": "Condition.contained",
        "max": "0"
      },
      {
        "id": "Condition.extension",
        "path": "Condition.extension",
        "max": "0"
      },
      {
        "id": "Condition.modifierExtension",
        "path": "Condition.modifierExtension",
        "max": "0"
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "short": "Stable source business identifiers when available",
        "definition": "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.",
        "mustSupport": true,
        "min": 0,
        "max": "*",
        "comment": "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."
      },
      {
        "id": "Condition.identifier.system",
        "path": "Condition.identifier.system",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.identifier.value",
        "path": "Condition.identifier.value",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "short": "Authoritative lifecycle status for the dental condition",
        "definition": "Use clinicalStatus as the authoritative FHIR lifecycle status for the condition. It is required unless verificationStatus is entered-in-error; in that case it must be absent in accordance with inherited FHIR R4 con-5. A SNOMED CT expression must not contradict the lifecycle represented here.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "short": "Verification status for the finding or diagnosis",
        "definition": "Use verificationStatus to distinguish confirmed dental findings from provisional, differential, refuted or entered-in-error records. If verificationStatus is entered-in-error, clinicalStatus is absent in accordance with FHIR R4. If the source records verification status, it shall be populated.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "short": "Optional workflow categories and dental marker from published HL7 code systems",
        "definition": "Use the FHIR R4 categories problem-list-item and encounter-diagnosis according to the source workflow. The optional dental code from HL7 Dental Data Exchange marks a condition as dental in nature. Represent different classifications as separate category entries. Absence of the dental marker does not establish that a condition is non-dental. The clinical finding or diagnosis remains in Condition.code.",
        "min": 0,
        "max": "*",
        "binding": {
          "strength": "required",
          "description": "Each supplied category must use a code selected from the published FHIR R4 Condition category or HL7 Dental Data Exchange code systems. The category field itself remains optional; the dental marker is not mandatory.",
          "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-condition-category"
        },
        "comment": "Sources: https://hl7.org/fhir/R4/valueset-condition-category.html and https://hl7.org/fhir/us/dental-data-exchange/STU1/CodeSystem-dental-category.html. Dental Data Exchange STU1 is a published US implementation guide; its Dental Category CodeSystem has draft status. Reusing its code does not assert US Core or EHDS conformance."
      },
      {
        "id": "Condition.category.extension",
        "path": "Condition.category.extension",
        "max": "0"
      },
      {
        "id": "Condition.category.coding",
        "path": "Condition.category.coding",
        "short": "Published HL7 category coding",
        "definition": "Use one coding from the bound ValueSet for each category entry. Do not use the retired DigiDOT dental-finding code or the demonstrator example.org code system.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "short": "Not used in the current DigiDOT Condition draft",
        "definition": "No governed dental severity terminology or cross-system mapping is agreed for this field. Additional clinical precision may be represented in the validated postcoordinated SNOMED CT expression. Reopen this element only with an agreed terminology and implementation rule.",
        "max": "0"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "short": "Dental finding, diagnosis or condition",
        "definition": "Record a clinically significant dental finding, diagnosis or problem in the SNOMED CT Clinical finding hierarchy. Do not use Situation wrappers. Clinical and verification statuses remain authoritative. 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": 1,
        "max": "1",
        "constraint": [
          {
            "key": "digidot-coding-same-release",
            "severity": "error",
            "human": "When SCTpre is present, both clinical codings must use the same SNOMED CT edition release.",
            "expression": "coding.where(id = 'SCTpre').empty() or coding.where(id = 'SCTpre').version = coding.where(id = 'SCTextended').version"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "description": "Prefer a suitable concept from the national dental findings core, either directly or as the focus of a postcoordinated expression. If it does not cover the intended meaning, use another suitable concept within the Clinical finding hierarchy. Validate the complete coding against the required binding on its slice. No additional SCTpre coding is required to satisfy this preferred selection.",
          "valueSet": "https://novari.no/fhir/digidot/ValueSet/snomed-clinical-findings"
        }
      },
      {
        "id": "Condition.code.extension",
        "path": "Condition.code.extension",
        "max": "0"
      },
      {
        "id": "Condition.code.coding",
        "path": "Condition.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "id"
            }
          ],
          "rules": "closed"
        },
        "short": "One required extended coding and one optional precoordinated coding",
        "definition": "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": 1,
        "max": "2"
      },
      {
        "id": "Condition.code.coding:SCTpre",
        "path": "Condition.code.coding",
        "sliceName": "SCTpre",
        "short": "Optional precoordinated SNOMED CT concept",
        "definition": "Optional single numeric SNOMED CT concept in the Clinical finding hierarchy, compatible with the complete meaning in SCTextended. The SCTpre datatype prohibits postcoordinated expressions. Both codings must use the same edition release. Follow the core-selection guidance on Condition.code.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Required Clinical finding scope, restricted here to a single concept by the SCTpre datatype. Postcoordinated expressions are not permitted in this slice.",
          "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
        }
      },
      {
        "id": "Condition.code.coding:SCTpre.id",
        "path": "Condition.code.coding.id",
        "short": "SCTpre slot identifier",
        "definition": "Required technical slot identifier. It distinguishes the two roles even when their system, version and code are identical.",
        "min": 1,
        "fixedString": "SCTpre"
      },
      {
        "id": "Condition.code.coding:SCTextended",
        "path": "Condition.code.coding",
        "sliceName": "SCTextended",
        "short": "Required extended SNOMED CT code: concept or expression",
        "definition": "The complete clinical meaning as one sufficiently specific SNOMED CT concept or a valid postcoordinated expression. Prefer a suitable national core concept as the focus; another suitable focus is allowed when the core does not cover the meaning. The complete expression must satisfy the Clinical finding hierarchy binding, not membership of the core refset. Follow the meaning and anatomy rules on Condition.code. Do not add an identical or broader SCTpre coding solely to match the core list.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpost-no"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Required Clinical finding scope for the complete coding. Single concepts and postcoordinated expressions are permitted. Validate the entire value, not only its focus concept, against this ValueSet using the stated SNOMED edition and release. Expression syntax and concept-model rules also require terminology validation.",
          "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings"
        }
      },
      {
        "id": "Condition.code.coding:SCTextended.id",
        "path": "Condition.code.coding.id",
        "short": "SCTextended slot identifier",
        "definition": "Required technical slot identifier. It distinguishes the two roles even when their system, version and code are identical.",
        "min": 1,
        "fixedString": "SCTextended"
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "short": "Inline Xt-EHR anatomy group",
        "definition": "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": "Use the current DentalBodySite complex body-structure extension. This draft pins clinical SNOMED CT coding to Norwegian release 20260715 when bodySite is supplied, and separately checks all supplied SNOMED anatomical Coding.version values against SCTextended. This release baseline must be revised deliberately when terminology is upgraded. Version equality does not establish clinical or anatomical semantic equivalence.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalBodySite-no"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "short": "Patient with the dental condition",
        "definition": "Reference the no-basis Patient who has the dental condition. External patient information must be mapped to the agreed patient representation before it is stored as a canonical DigiDOT Condition.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient"
            ]
          }
        ],
        "mustSupport": true,
        "comment": "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.",
        "constraint": [
          {
            "key": "condition-subject-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no"
          }
        ]
      },
      {
        "id": "Condition.subject.reference",
        "path": "Condition.subject.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.subject.identifier",
        "path": "Condition.subject.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "short": "Encounter where the condition was asserted or recorded",
        "definition": "Reference the DigiDOT Encounter in which the dental finding, diagnosis or condition was asserted or recorded. Location and organisation context are resolved through the Encounter. Data without an identifiable clinical contact must be mapped to an agreed source Encounter before it can conform to this profile.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "short": "Onset or finding time",
        "definition": "Use onset[x] for the known, estimated or patient-reported onset of the condition. This is not necessarily the same as the time it was recorded by the dental service. If the source records onset or finding time, it shall be populated without inventing a more precise date or time.",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "short": "Time or period when the condition abated",
        "definition": "Use abatement[x] when the condition is inactive, in remission or resolved and the source records when that state was reached. If the source records abatement, it shall be populated. The value must remain consistent with clinicalStatus according to the base FHIR R4 Condition rules.",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "short": "Date the condition was first recorded",
        "definition": "Use recordedDate for the date and time this Condition record was first entered or received by the responsible system. Preserve external source provenance separately when the condition originates outside the dental service. If the source records the date, it shall be populated.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "short": "Practitioner who recorded the condition",
        "definition": "Individual who recorded the record and takes responsibility for its content.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner"
            ]
          }
        ],
        "mustSupport": true,
        "comment": "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.",
        "constraint": [
          {
            "key": "condition-recorder-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no"
          }
        ]
      },
      {
        "id": "Condition.recorder.extension",
        "path": "Condition.recorder.extension",
        "min": 0,
        "max": "0",
        "definition": "No additional Reference extension is part of this Condition contract. Use the standard reference, type, identifier and display fields as permitted by the reference contract."
      },
      {
        "id": "Condition.recorder.reference",
        "path": "Condition.recorder.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.recorder.identifier",
        "path": "Condition.recorder.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "short": "Patient or practitioner who clinically asserts the condition",
        "definition": "Individual who is making the condition statement.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient"
            ]
          }
        ],
        "mustSupport": true,
        "comment": "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.",
        "constraint": [
          {
            "key": "condition-asserter-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no"
          }
        ]
      },
      {
        "id": "Condition.asserter.extension",
        "path": "Condition.asserter.extension",
        "min": 0,
        "max": "0",
        "definition": "No additional Reference extension is part of this Condition contract. Use the standard reference, type, identifier and display fields as permitted by the reference contract."
      },
      {
        "id": "Condition.asserter.reference",
        "path": "Condition.asserter.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.asserter.identifier",
        "path": "Condition.asserter.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "short": "Not used in the current DigiDOT Condition draft",
        "definition": "No governed dental staging terminology, assessment model or cross-system mapping is agreed for this field. Reopen it only with a defined dental staging model and terminology binding.",
        "max": "0"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "short": "Supporting observation or source document",
        "definition": "Link a clinically relevant DigiDOT Observation or no-basis DocumentReference that supports the finding or diagnosis. Keep the result or document represented once; evidence supplies the explicit clinical relationship.",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Condition.evidence.extension",
        "path": "Condition.evidence.extension",
        "max": "0"
      },
      {
        "id": "Condition.evidence.modifierExtension",
        "path": "Condition.evidence.modifierExtension",
        "max": "0"
      },
      {
        "id": "Condition.evidence.code",
        "path": "Condition.evidence.code",
        "short": "Not used in the current DigiDOT Condition draft",
        "definition": "No separate evidence-type coding is used. The evidence is identified by the referenced DigiDOT Observation or no-basis DocumentReference.",
        "max": "0"
      },
      {
        "id": "Condition.evidence.detail",
        "path": "Condition.evidence.detail",
        "short": "Observation or document supporting the condition",
        "definition": "Reference a DigiDOT Observation or no-basis DocumentReference that provides clinical evidence for the Condition. Use a document link for an actual supporting source report or image, not merely because it concerns the same patient or anatomy. Preserve the clinical finding in Condition and the document metadata in DocumentReference. Patient-specific evidence must concern the same patient.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no",
              "http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference"
            ]
          }
        ],
        "mustSupport": true,
        "constraint": [
          {
            "key": "condition-evidence-detail-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no"
          }
        ],
        "comment": "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."
      },
      {
        "id": "Condition.evidence.detail.reference",
        "path": "Condition.evidence.detail.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.evidence.detail.identifier",
        "path": "Condition.evidence.detail.identifier",
        "max": "0"
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "short": "Additional unstructured clinical context",
        "definition": "Use note only for clinically relevant narrative that has no appropriate structured element. Do not use note to replace the coded condition, clinical or verification status, anatomy, encounter, timing or responsible person.",
        "min": 0
      },
      {
        "id": "Condition.note.extension",
        "path": "Condition.note.extension",
        "min": 0,
        "max": "0",
        "definition": "Use the standard Annotation content for limited clinical narrative. No additional note extension is part of this Condition contract; structured clinical facts remain in their defined elements."
      },
      {
        "id": "Condition.note.author[x]",
        "path": "Condition.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient",
              "http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Organization"
            ]
          },
          {
            "code": "string"
          }
        ],
        "definition": "The individual responsible for making the annotation.",
        "comment": "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.",
        "constraint": [
          {
            "key": "condition-note-author-x-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no"
          }
        ]
      }
    ]
  }
}