{
  "resourceType": "StructureDefinition",
  "id": "digidot-Coding-SCTpost-no",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpost-no",
  "version": "0.4.0",
  "name": "DigidotCodingSctExtendedNo",
  "title": "DigiDOT Coding - SNOMED CT Extended code",
  "status": "draft",
  "date": "2026-09-29T12:57:07Z",
  "publisher": "Novari AS - DigiDOT",
  "description": "Readiness: [In development](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-coding-sctpost).\n\nReusable constraints for a SNOMED CT extended coding. The code may be a single precoordinated concept identifier or a postcoordinated SNOMED CT expression when additional clinical precision is needed. Postcoordination is optional, not a condition of using this profile. The published canonical URL is retained for continuity.",
  "purpose": "Requires the SNOMED CT system, a published edition release URI and a concept identifier or expression. In the DigiDOT Condition, Observation, Procedure and ServiceRequest clinical coding slices, SCTextended is 1..1 and SCTpre is 0..1, conditional on the containing code element being present. Clinical hierarchy, meaning and anatomy are constrained by the consuming profile and terminology contract. This is a Coding datatype profile, not a FHIR Extension or a separate code system.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Coding",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Coding",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Coding",
        "path": "Coding",
        "short": "SNOMED CT extended code: concept or expression"
      },
      {
        "id": "Coding.extension",
        "path": "Coding.extension",
        "short": "Extensions are not used",
        "definition": "Clinical meaning is represented in Coding.code as a SNOMED CT concept or expression. Coding extensions are not used in the agreed DigiDOT scope.",
        "max": "0"
      },
      {
        "id": "Coding.system",
        "path": "Coding.system",
        "short": "SNOMED CT code system",
        "definition": "Fixed to the canonical SNOMED CT code system URI.",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Coding.version",
        "path": "Coding.version",
        "short": "Published SNOMED CT edition release URI",
        "definition": "Identify the published SNOMED CT edition and release used to interpret the concept or expression, for example the Norwegian edition release URI.",
        "min": 1,
        "constraint": [
          {
            "key": "sct-extended-version-sct",
            "severity": "error",
            "human": "Version must be an SCT version in the form .../sct/edition/version/yyyymmdd.",
            "expression": "matches('^http://snomed[.]info/sct/.*/version/[0-9]{8}$')"
          }
        ]
      },
      {
        "id": "Coding.code",
        "path": "Coding.code",
        "short": "SNOMED CT concept identifier or postcoordinated expression",
        "definition": "A single numeric SNOMED CT concept identifier is sufficient when it represents the intended meaning. A postcoordinated expression may add necessary precision. No separate SCTpre companion is required by this datatype. Local codes are not allowed. The invariant is only a basic syntax guard, not a full compositional grammar, concept-existence, MRCM or semantic validation.",
        "min": 1,
        "constraint": [
          {
            "key": "sct-extended-concept-or-expression",
            "severity": "error",
            "human": "Use a numeric SNOMED CT concept identifier or SNOMED CT expression syntax; validate full syntax and meaning with terminology tooling.",
            "expression": "matches('^[0-9]{6,18}$') or matches('[:=+|{}<]')"
          }
        ]
      },
      {
        "id": "Coding.display",
        "path": "Coding.display",
        "short": "Human-readable concept or expression display",
        "definition": "Include a readable term or expression rendering when available, consistent with code and edition release."
      },
      {
        "id": "Coding.userSelected",
        "path": "Coding.userSelected",
        "short": "User-selection marker is not used",
        "definition": "User selection is a source-system interaction detail and does not define the clinical meaning.",
        "max": "0"
      }
    ]
  }
}