PackagesCanonicalsLogsProblems
    Packages
    novari.digidot@0.3.0
    https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no
{
  "description": "Draft DigiDOT profile for creating a structured record of an allergy or intolerance reported by a patient or another person with knowledge of the patient's allergy information when no corresponding structured record is already available in the source EHR, the DigiDOT shared storage solution or Kjernejournal. It supports allergies and intolerances associated with medicinal products, food, latex, metals, biological material and other substances. The causative agent is recorded directly with one mandatory versioned SNOMED CT code. An ATC coding may additionally be preserved when it is part of a medication allergy or intolerance assertion supplied by the source EHR. The shared storage solution does not generate mappings or restrict EHR data-entry lists beyond the broad SNOMED CT validation value set. The reported information may originate from a previous reaction, but details of that reaction are not stored as structured AllergyIntolerance.reaction data in this narrow profile. Relevant uncertain or historical context may be retained in note. Information retrieved from Kjernejournal is not copied into this profile and remains a separate source. The profile uses the FHIR R4 AllergyIntolerance model and the two causative-agent SNOMED CT hierarchy branches also present in the IPS allergy value set. Its local restrictions do not constitute formal conformance with the IPS or EU Core AllergyIntolerance profiles.",
  "_filename": "StructureDefinition-digidot-AllergyIntolerance-no.json",
  "package_name": "novari.digidot",
  "date": "2026-10-08",
  "derivation": "constraint",
  "publisher": "Novari AS - DigiDOT",
  "fhirVersion": "4.0.1",
  "purpose": "Use this profile to create and maintain a structured DigiDOT allergy or\nintolerance record from information reported by the patient or another person\nwith knowledge of the patient's allergy information. It is intended for\ninformation for which no corresponding structured allergy or intolerance\nrecord is already available in the source EHR, the DigiDOT shared storage\nsolution or Kjernejournal. The causative agent may be a medicinal product,\nfood, latex, metal, biological material or another coded substance. The\nprofile identifies the patient, the causative agent and the clinical status.\nVerification status may additionally be recorded when it can be meaningfully\nassessed.\n\nThe report may concern a reaction that occurred in the past. The allergy or\nintolerance assertion is recorded structurally, while individual reaction\ndetails and clinical manifestations are not represented in\nAllergyIntolerance.reaction in this narrow profile. Relevant uncertain or\nhistorical context may be retained as narrative in note. The structured\ninformation supports clinical presentation and decision support in dental\ncare. The source EHR is responsible for terminology search, selection, mapping\nand decision-support logic. DigiDOT stores and validates the codings supplied\nby the source EHR and does not derive additional codings.\n\nDo not use this profile to copy or persist allergy information retrieved from\nKjernejournal or to create a duplicate of an allergy or intolerance already\navailable as a structured record. A consuming system may present and evaluate\nlocal DigiDOT and Kjernejournal information together, but each source retains\nits own resource, provenance and lifecycle. Absence of a resource conforming\nto this profile does not mean that the patient has no allergy or intolerance.",
  "name": "DigidotAllergyIntoleranceNo",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "AllergyIntolerance",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "DigiDot AllergyIntolerance (NO)",
  "package_version": "0.3.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ait-1",
        "human": "AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error.",
        "xpath": "f:verificationStatus/f:coding/f:code/@value='entered-in-error' or exists(f:clinicalStatus)",
        "severity": "error",
        "expression": "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()"
      }, {
        "key": "ait-2",
        "human": "AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error",
        "xpath": "not(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(f:clinicalStatus))",
        "severity": "error",
        "expression": "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()"
      }, {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "AllergyIntolerance",
      "min": 0,
      "definition": "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.",
      "isModifier": false,
      "short": "Locally recorded allergy or intolerance",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Observation[classCode=OBS, moodCode=EVN]",
        "identity": "rim"
      } ],
      "alias": [ "Allergy", "Intolerance", "Adverse Reaction" ],
      "max": "*",
      "id": "AllergyIntolerance",
      "comment": "Except when the resource is marked entered-in-error, this profile represents\na positive assertion about an allergy or intolerance to a specific causative\nagent. It does not represent a general statement that the patient has no known\nallergies. The mandatory SNOMED CT coding is the primary structured\nrepresentation of the causative agent associated with the\nassertion. Its presence does not by itself establish that the allergy or\nintolerance is clinically confirmed. An optional ATC coding is an additional\nrepresentation and does not replace or modify the SNOMED CT meaning.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "AllergyIntolerance"
      },
      "isSummary": false
    }, {
      "path": "AllergyIntolerance.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "max": "1",
      "id": "AllergyIntolerance.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.implicitRules",
      "min": 0,
      "definition": "A DigiDOT allergy or intolerance must be interpretable from the published\nprofile, the referenced resources and the recorded terminology version. Do\nnot use implicitRules to introduce undocumented processing rules.",
      "isModifier": true,
      "short": "Not used in the current DigiDOT allergy profile",
      "type": [ {
        "code": "uri"
      } ],
      "max": "0",
      "id": "AllergyIntolerance.implicitRules",
      "comment": "implicitRules is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "AllergyIntolerance.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "AllergyIntolerance.text",
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "AllergyIntolerance.contained",
      "min": 0,
      "definition": "Resources relevant to the DigiDOT information model must be independently\nidentifiable and linked by reference. Contained resources are not used in this\nprofile.",
      "isModifier": false,
      "short": "Not used in the current DigiDOT allergy profile",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "0",
      "id": "AllergyIntolerance.contained",
      "comment": "contained is prohibited in this profile. Reference independently identifiable resources instead.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.extension",
      "min": 0,
      "definition": "No resource-level extension is defined for the current DigiDOT allergy and\nintolerance scope. New information requirements require an explicit and\ngoverned profile revision.",
      "isModifier": false,
      "short": "No resource-level extensions",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "AllergyIntolerance.extension",
      "comment": "Resource-level extension is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.modifierExtension",
      "requirements": "The current DigiDOT information model does not permit modifier extensions because they can change the clinical interpretation of the resource.",
      "min": 0,
      "definition": "Modifier extensions can change the clinical meaning of an AllergyIntolerance\nresource and require every consumer to understand them. They are not permitted\nin the current DigiDOT profile.",
      "isModifier": true,
      "short": "No resource-level modifier extensions",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "AllergyIntolerance.modifierExtension",
      "comment": "Resource-level modifierExtension is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.identifier",
      "requirements": "Allows identification of the AllergyIntolerance as it is known by various participating systems and in a way that remains consistent across servers.",
      "min": 1,
      "definition": "Record a stable business identifier assigned to this locally maintained\nallergy or intolerance. Use it for traceability and de-duplication across\nDigiDOT systems. Do not copy a Kjernejournal identifier and do not repeat the\nFHIR server resource id. Every identifier must include both its issuing system\nand its value.",
      "isModifier": false,
      "short": "Stable identifier for the local allergy record",
      "mapping": [ {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": "IAM-7",
        "identity": "v2"
      }, {
        "map": "id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "AllergyIntolerance.identifier",
      "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "AllergyIntolerance.identifier"
      },
      "isSummary": true
    }, {
      "path": "AllergyIntolerance.identifier.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "AllergyIntolerance.identifier.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.identifier.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "AllergyIntolerance.identifier.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.identifier.use",
      "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
      "min": 0,
      "definition": "The purpose of this identifier.",
      "isModifier": true,
      "short": "usual | official | temp | secondary | old (If known)",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Role.code or implied by context",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "IdentifierUse"
        } ],
        "description": "Identifies the purpose for this identifier, if known ."
      },
      "max": "1",
      "id": "AllergyIntolerance.identifier.use",
      "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.use"
      },
      "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.identifier.type",
      "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
      "min": 0,
      "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
      "isModifier": false,
      "short": "Description of identifier",
      "mapping": [ {
        "map": "CX.5",
        "identity": "v2"
      }, {
        "map": "Role.code or implied by context",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "IdentifierType"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."
      },
      "max": "1",
      "id": "AllergyIntolerance.identifier.type",
      "comment": "This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage.   Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.identifier.system",
      "requirements": "The system establishes the namespace within which the identifier value is unique.",
      "min": 1,
      "definition": "Record the stable URI namespace that identifies the system responsible for assigning the allergy-record identifier.",
      "isModifier": false,
      "short": "Identifier namespace",
      "mapping": [ {
        "map": "CX.4 / EI-2-4",
        "identity": "v2"
      }, {
        "map": "II.root or Role.id.root",
        "identity": "rim"
      }, {
        "map": "./IdentifierType",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "AllergyIntolerance.identifier.system",
      "comment": "Identifier.system is always case sensitive.",
      "example": [ {
        "label": "General",
        "valueUri": "http://www.acme.com/identifiers/patient"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.identifier.value",
      "requirements": "The value identifies the allergy record within the namespace stated in identifier.system.",
      "min": 1,
      "definition": "Record the stable business identifier value assigned to the local allergy or intolerance record.",
      "isModifier": false,
      "short": "Allergy-record identifier value",
      "mapping": [ {
        "map": "CX.1 / EI.1",
        "identity": "v2"
      }, {
        "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)",
        "identity": "rim"
      }, {
        "map": "./Value",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "AllergyIntolerance.identifier.value",
      "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
      "example": [ {
        "label": "General",
        "valueString": "123456"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.value"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.identifier.period",
      "min": 0,
      "definition": "Time period during which identifier is/was valid for use.",
      "isModifier": false,
      "short": "Time period when id is/was valid for use",
      "mapping": [ {
        "map": "CX.7 + CX.8",
        "identity": "v2"
      }, {
        "map": "Role.effectiveTime or implied by context",
        "identity": "rim"
      }, {
        "map": "./StartDate and ./EndDate",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.identifier.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.identifier.assigner",
      "min": 0,
      "definition": "Organization that issued/manages the identifier.",
      "isModifier": false,
      "short": "Organization that issued id (may be just text)",
      "mapping": [ {
        "map": "CX.4 / (CX.4,CX.9,CX.10)",
        "identity": "v2"
      }, {
        "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper",
        "identity": "rim"
      }, {
        "map": "./IdentifierIssuingAuthority",
        "identity": "servd"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "max": "1",
      "id": "AllergyIntolerance.identifier.assigner",
      "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Identifier.assigner"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.clinicalStatus",
      "min": 0,
      "definition": "Record whether the patient is currently considered at risk or is no longer\nconsidered at risk. Only the FHIR clinical status codes active and inactive\nare permitted. Clinical status does not state whether the assertion has been\nclinically confirmed. It must be present unless verificationStatus is\nentered-in-error; in that case it must be omitted, as required by the base\nFHIR constraints.",
      "isModifier": true,
      "short": "Current clinical status of the allergy or intolerance",
      "mapping": [ {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": "Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"clinicalStatus\", moodCode=EVN].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-allergyintolerance-clinical-status-no"
      },
      "max": "1",
      "id": "AllergyIntolerance.clinicalStatus",
      "condition": [ "ait-1", "ait-2" ],
      "comment": "Refer to [discussion](extensibility.html#Special-Case) if clincalStatus is missing data.\nThe data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.clinicalStatus"
      },
      "isModifierReason": "This element is labeled as a modifier because the status contains the codes inactive and resolved that mark the AllergyIntolerance as no longer active.",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.verificationStatus",
      "min": 0,
      "definition": "Use unconfirmed for a retained assertion that has not been clinically\nverified, including uncertain patient-reported history. Use confirmed only\nwhen the assertion has been clinically verified. Use entered-in-error only\nwhen the resource itself was created in error. Omit verificationStatus when\nno meaningful verification assessment is available. The code refuted is not\npermitted; do not use inactive to represent refutation.",
      "isModifier": true,
      "short": "Certainty of the allergy or intolerance assertion",
      "mapping": [ {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": "Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"verificationStatus\", moodCode=EVN].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-allergyintolerance-verification-status-no"
      },
      "max": "1",
      "id": "AllergyIntolerance.verificationStatus",
      "condition": [ "ait-1", "ait-2" ],
      "comment": "The data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.verificationStatus"
      },
      "isModifierReason": "This element is labeled as a modifier because the status contains the codes refuted and entered-in-error that mark the AllergyIntolerance as not currently valid.",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.type",
      "min": 0,
      "definition": "The current DigiDOT profile does not distinguish structurally between allergy\nand intolerance. Information reported to DigiDOT may not provide a clinically\nverified physiological mechanism, and type is therefore not recorded.",
      "isModifier": false,
      "short": "Not used in the current DigiDOT allergy profile",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": "IAM-9",
        "identity": "v2"
      }, {
        "map": "code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AllergyIntoleranceType"
        } ],
        "description": "Identification of the underlying physiological mechanism for a Reaction Risk."
      },
      "alias": [ "Category", "Class" ],
      "max": "0",
      "id": "AllergyIntolerance.type",
      "comment": "type is prohibited in this profile. The profile does not classify the assertion as allergy or intolerance.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.category",
      "min": 0,
      "definition": "The current DigiDOT profile does not record the broad FHIR causative-agent category. The causative agent is represented by the structured coding in AllergyIntolerance.code.",
      "isModifier": false,
      "short": "Not used in the current DigiDOT allergy profile",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": "AL1-2",
        "identity": "v2"
      }, {
        "map": "value < IntoleranceValue (Agent)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AllergyIntoleranceCategory"
        } ],
        "description": "Category of an identified substance associated with allergies or intolerances."
      },
      "alias": [ "Category", "Type", "Reaction Type", "Class" ],
      "max": "0",
      "id": "AllergyIntolerance.category",
      "comment": "category is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "AllergyIntolerance.category"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.criticality",
      "min": 0,
      "definition": "A prospective assessment of the potential seriousness of harm from future\nexposure is outside the current DigiDOT scope. Do not record criticality in\nthis profile.",
      "isModifier": false,
      "short": "Not used in the current DigiDOT allergy profile",
      "mapping": [ {
        "map": "FiveWs.grade",
        "identity": "w5"
      }, {
        "map": "AL1-4",
        "identity": "v2"
      }, {
        "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AllergyIntoleranceCriticality"
        } ],
        "description": "Estimate of the potential clinical harm, or seriousness, of a reaction to an identified substance."
      },
      "alias": [ "Severity", "Seriousness", "Contra-indication", "Risk" ],
      "max": "0",
      "id": "AllergyIntolerance.criticality",
      "comment": "criticality is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.criticality"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code",
      "requirements": "A structured and versioned SNOMED CT causative-agent code supports exchange\nand allows consuming EHR systems to perform terminology-based allergy checking\nand subsumption testing. An optional ATC coding supports faithful exchange of\nan additional medication classification supplied by the source EHR.",
      "min": 1,
      "definition": "Record exactly one SNOMED CT substance or pharmaceutical/biologic product\nconcept that identifies the causative agent. This may represent a medicinal\nproduct, medicinal product form, clinical drug, product class, food, latex,\nmetal, biological material or another clinically relevant substance. An ATC\ncoding may additionally be preserved when the source EHR supplies it for a\nmedication causative agent. The SNOMED CT coding remains mandatory.",
      "isModifier": false,
      "short": "Versioned SNOMED CT causative agent",
      "mapping": [ {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      }, {
        "map": "AL1-3 / IAM-3",
        "identity": "v2"
      }, {
        "map": "substance/product:\r\r.participation[typeCode=CAGNT].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]\r\rnegated/excluded substance/product:\r\r.participation[typeCode=CAGNT, negationInd=true].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]\r\rpositive or negated/excluded condition/situation:\r\rObservation.code=ASSERTION; Observation.value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-allergen-no"
      },
      "alias": [ "Code" ],
      "max": "1",
      "id": "AllergyIntolerance.code",
      "comment": "The SNOMED CT slice uses system http://snomed.info/sct and identifies the\nSNOMED CT edition and release in Coding.version. The broad value set allows all\ndescendant concepts of Substance and Pharmaceutical / biologic product so\nthat each source EHR can apply a narrower terminology subset for data entry\nand decision support. Concepts representing no known allergy, an allergy or\nintolerance disorder, or an uncoded free-text allergen are not permitted.\n\nThe optional ATC slice uses system http://www.whocc.no/atc. Include it only\nwhen it is relevant to the medication assertion supplied by the source EHR.\nOmit ATC when a broad SNOMED CT concept could correspond to several ATC\nclassifications, and do not include several alternative ATC codes. DigiDOT does\nnot derive an ATC code from SNOMED CT and does not verify a mapping between the\ntwo codings. FEST coding is not stored in this profile. FEST-to-SNOMED CT\nmapping and related decision-support logic belong to the participating EHR.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.code"
      },
      "isSummary": true
    }, {
      "path": "AllergyIntolerance.code.id",
      "min": 0,
      "definition": "An element id on the causative-agent CodeableConcept is not used in this profile.",
      "isModifier": false,
      "short": "Not used on the causative-agent CodeableConcept",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "0",
      "id": "AllergyIntolerance.code.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.code.extension",
      "min": 0,
      "definition": "Extensions on the causative-agent CodeableConcept are not used in this profile.",
      "isModifier": false,
      "short": "No extensions on the causative-agent CodeableConcept",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "AllergyIntolerance.code.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 1,
      "definition": "Provide one versioned SNOMED CT coding as the primary structured\nrepresentation of the causative agent. One ATC coding may additionally be\npreserved for a medication causative agent. No other coding systems are\npermitted by the closed slicing.",
      "isModifier": false,
      "short": "Mandatory SNOMED CT and optional ATC coding",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Coding"
      } ],
      "mustSupport": true,
      "max": "2",
      "id": "AllergyIntolerance.code.coding",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 1,
      "definition": "This mandatory coding conforms to DigiDotCodingSctPreNo, which requires the\nSNOMED CT system, a numeric concept identifier and a versioned edition URI.\nThe code must be a descendant of Substance or Pharmaceutical / biologic\nproduct in the recorded SNOMED CT edition.",
      "isModifier": false,
      "short": "Versioned SNOMED CT causative agent",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding",
        "profile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no" ]
      } ],
      "mustSupport": true,
      "sliceName": "snomed",
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-allergen-no"
      },
      "max": "1",
      "id": "AllergyIntolerance.code.coding:snomed",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "AllergyIntolerance.code.coding.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:snomed.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.code.coding.extension",
      "min": 0,
      "definition": "Extensions on the mandatory SNOMED CT coding are not used in this profile.",
      "isModifier": false,
      "short": "No extensions on the SNOMED CT coding",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "AllergyIntolerance.code.coding:snomed.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.system",
      "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
      "min": 0,
      "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
      "isModifier": false,
      "short": "Identity of the terminology system",
      "mapping": [ {
        "map": "C*E.3",
        "identity": "v2"
      }, {
        "map": "./codeSystem",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:snomed.system",
      "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.version",
      "min": 0,
      "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
      "isModifier": false,
      "short": "Version of the system - if relevant",
      "mapping": [ {
        "map": "C*E.7",
        "identity": "v2"
      }, {
        "map": "./codeSystemVersion",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:snomed.version",
      "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.code",
      "requirements": "Need to refer to a particular code in the system.",
      "min": 0,
      "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
      "isModifier": false,
      "short": "Symbol in syntax defined by the system",
      "mapping": [ {
        "map": "C*E.1",
        "identity": "v2"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:snomed.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.display",
      "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
      "min": 0,
      "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
      "isModifier": false,
      "short": "Representation defined by the system",
      "mapping": [ {
        "map": "C*E.2 - but note this is not well followed",
        "identity": "v2"
      }, {
        "map": "CV.displayName",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:snomed.display",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.userSelected",
      "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
      "min": 0,
      "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
      "isModifier": false,
      "short": "If this coding was chosen directly by the user",
      "mapping": [ {
        "map": "Sometimes implied by being first",
        "identity": "v2"
      }, {
        "map": "CD.codingRationale",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:snomed.userSelected",
      "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.userSelected"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 0,
      "definition": "Preserve one WHO ATC code when it is part of the medication allergy or\nintolerance assertion supplied by the source EHR. The ATC coding is additional\nclassification information and never replaces the mandatory SNOMED CT coding.\nThe source EHR is responsible for ensuring that both codings are consistent.\nOmit ATC when the recorded SNOMED CT concept could correspond to several ATC\nclassifications. Do not include several possible ATC codes as alternatives.",
      "isModifier": false,
      "short": "Optional ATC classification supplied by the source EHR",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "mustSupport": true,
      "sliceName": "atc",
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-atc-no"
      },
      "max": "1",
      "id": "AllergyIntolerance.code.coding:atc",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "AllergyIntolerance.code.coding.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:atc.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.code.coding.extension",
      "min": 0,
      "definition": "Extensions on the optional ATC coding are not used in this profile.",
      "isModifier": false,
      "short": "No extensions on the ATC coding",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "AllergyIntolerance.code.coding:atc.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.system",
      "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
      "min": 1,
      "definition": "Use the fixed WHO ATC code-system URI http://www.whocc.no/atc.",
      "isModifier": false,
      "short": "WHO ATC code-system URI",
      "fixedUri": "http://www.whocc.no/atc",
      "mapping": [ {
        "map": "C*E.3",
        "identity": "v2"
      }, {
        "map": "./codeSystem",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:atc.system",
      "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.version",
      "min": 0,
      "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
      "isModifier": false,
      "short": "Version of the system - if relevant",
      "mapping": [ {
        "map": "C*E.7",
        "identity": "v2"
      }, {
        "map": "./codeSystemVersion",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:atc.version",
      "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.code",
      "requirements": "Need to refer to a particular code in the system.",
      "min": 1,
      "definition": "Record the single ATC code supplied by the source EHR when the optional ATC slice is present.",
      "isModifier": false,
      "short": "Source-supplied ATC code",
      "mapping": [ {
        "map": "C*E.1",
        "identity": "v2"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:atc.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.display",
      "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
      "min": 0,
      "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
      "isModifier": false,
      "short": "Representation defined by the system",
      "mapping": [ {
        "map": "C*E.2 - but note this is not well followed",
        "identity": "v2"
      }, {
        "map": "CV.displayName",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:atc.display",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.coding.userSelected",
      "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
      "min": 0,
      "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
      "isModifier": false,
      "short": "If this coding was chosen directly by the user",
      "mapping": [ {
        "map": "Sometimes implied by being first",
        "identity": "v2"
      }, {
        "map": "CD.codingRationale",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.code.coding:atc.userSelected",
      "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.userSelected"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.code.text",
      "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
      "min": 0,
      "definition": "The causative agent is represented by the structured SNOMED CT coding and,\nwhen present, an additional ATC coding. Do not use CodeableConcept.text as an\nalternative allergen representation.",
      "isModifier": false,
      "short": "Not used for the causative agent",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "0",
      "id": "AllergyIntolerance.code.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.patient",
      "min": 1,
      "definition": "Reference a Patient resource conforming to no-basis-Patient.",
      "isModifier": false,
      "short": "Patient with the allergy or intolerance",
      "mapping": [ {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "(PID-3)",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].role[classCode=PAT]",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient" ]
      } ],
      "mustSupport": true,
      "alias": [ "Patient" ],
      "max": "1",
      "id": "AllergyIntolerance.patient",
      "base": {
        "max": "1",
        "min": 1,
        "path": "AllergyIntolerance.patient"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.encounter",
      "min": 0,
      "definition": "Reference the DigiDOT Encounter during which the allergy or intolerance was\nasserted or reviewed when that encounter is known.",
      "isModifier": false,
      "short": "DigiDOT encounter in which the assertion was recorded",
      "mapping": [ {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "AllergyIntolerance.encounter",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.encounter"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.onset[x]",
      "min": 0,
      "definition": "The onset of the allergy or intolerance is not recorded in this narrow DigiDOT\nprofile. Do not use onset[x] for the date of a historical reaction or for the\ndate when the local record was created.",
      "isModifier": false,
      "short": "Not used in the current DigiDOT allergy profile",
      "mapping": [ {
        "map": "FiveWs.init",
        "identity": "w5"
      }, {
        "map": "effectiveTime.low",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      }, {
        "code": "Age"
      }, {
        "code": "Period"
      }, {
        "code": "Range"
      }, {
        "code": "string"
      } ],
      "max": "0",
      "id": "AllergyIntolerance.onset[x]",
      "comment": "onset[x] is prohibited in this profile. Use recordedDate for the date when the local DigiDOT record was first created.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.onset[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.recordedDate",
      "min": 1,
      "definition": "Record the date and time when this local allergy or intolerance record was\nfirst created in DigiDOT. This is not the onset of the allergy or intolerance\nand not the date of a reaction.",
      "isModifier": false,
      "short": "When this local allergy record was first recorded",
      "mapping": [ {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": "IAM-13",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=AUT].time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "AllergyIntolerance.recordedDate",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.recordedDate"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.recorder",
      "min": 1,
      "definition": "Reference the no-basis-Practitioner who created the local DigiDOT record and takes responsibility for its content.",
      "isModifier": false,
      "short": "Healthcare practitioner who recorded the local assertion",
      "mapping": [ {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" ]
      } ],
      "mustSupport": true,
      "alias": [ "Author" ],
      "max": "1",
      "id": "AllergyIntolerance.recorder",
      "comment": "Practitioner targets conform to no-basis-Practitioner. Use the standard FHIR R4\nReference datatype; literal and logical references are permitted.\nReference.reference, type, identifier and display retain their base\ncardinalities. A targetProfile constraint does not itself require a literal\nreference or select an identifier system.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.recorder"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.asserter",
      "min": 0,
      "definition": "Reference the patient, related person or healthcare practitioner who supplied or asserted the recorded allergy or intolerance information.",
      "isModifier": false,
      "short": "Patient, related person or practitioner who asserted the information",
      "mapping": [ {
        "map": "FiveWs.source",
        "identity": "w5"
      }, {
        "map": "IAM-14 (if patient) / IAM-18 (if practitioner)",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=INF].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient", "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner", "http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson" ]
      } ],
      "mustSupport": true,
      "alias": [ "Source", "Informant" ],
      "max": "1",
      "id": "AllergyIntolerance.asserter",
      "comment": "Patient, Practitioner and RelatedPerson targets conform to the corresponding\nno-basis profile. Use the standard FHIR R4 Reference datatype; literal and\nlogical references are permitted. Reference.reference, type, identifier and\ndisplay retain their base cardinalities. A targetProfile constraint does not\nitself require a literal reference or select an identifier system.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.asserter"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.lastOccurrence",
      "min": 0,
      "definition": "The reported allergy or intolerance may be based on a reaction that occurred\nin the past, but the date of that reaction is not recorded in lastOccurrence.\nApproximate reported timing may be retained as narrative context in note.",
      "isModifier": false,
      "short": "Not used in the current DigiDOT allergy profile",
      "mapping": [ {
        "map": "outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)].effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "0",
      "id": "AllergyIntolerance.lastOccurrence",
      "comment": "lastOccurrence is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.lastOccurrence"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.note",
      "min": 0,
      "definition": "Record clinically relevant supplementary information that cannot be\nrepresented in the structured elements. Do not use note as an alternative to\nthe coded causative agent, clinical status or verification status when\nassessed. Uncertain patient-reported historical information may be retained as\nnarrative context. Do not use note to record criticality or to assert a\nclinician-assessed manifestation of a historical reaction.",
      "isModifier": false,
      "short": "Supplementary information about the allergy or intolerance",
      "mapping": [ {
        "map": "subjectOf.observationEvent[code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "AllergyIntolerance.note",
      "comment": "Use note only for supplementary narrative about the allergy or intolerance\nassertion. It may include uncertain patient-reported historical context that\ncannot be represented in the structured elements retained by this profile.\nDo not use note to record criticality, treatment instructions or structured\ndetails of a reaction event. AllergyIntolerance.reaction is not permitted in\nthis profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "AllergyIntolerance.note"
      },
      "isSummary": false
    }, {
      "path": "AllergyIntolerance.note.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "AllergyIntolerance.note.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.note.extension",
      "min": 0,
      "definition": "Allergy and intolerance notes use the standard Annotation elements retained by\nthis profile. Extensions on Annotation are not used in the current DigiDOT\nscope.",
      "isModifier": false,
      "short": "No extensions on allergy notes",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "AllergyIntolerance.note.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.note.author[x]",
      "min": 0,
      "definition": "Identify the author with a reference to no-basis-Practitioner, or use authorString when the author cannot be represented by such a Practitioner reference.",
      "isModifier": false,
      "short": "Practitioner reference or textual author of the note",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.participant[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" ]
      }, {
        "code": "string"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.note.author[x]",
      "comment": "When author[x] is represented as a reference, it SHALL target a\nno-basis-Practitioner. Use the standard FHIR R4 Reference datatype; literal and\nlogical references are permitted. Reference.reference, type, identifier and\ndisplay retain their base cardinalities. A targetProfile constraint does not\nitself require a literal reference or select an identifier system. authorString\nmay be used when the author cannot be represented by a Practitioner reference.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.author[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.note.time",
      "min": 0,
      "definition": "Indicates when this particular annotation was made.",
      "isModifier": false,
      "short": "When the annotation was made",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.note.time",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.time"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.note.text",
      "min": 1,
      "definition": "The text of the annotation in markdown format.",
      "isModifier": false,
      "short": "The annotation  - text content (as markdown)",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.note.text",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Annotation.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.reaction",
      "min": 0,
      "definition": "The reported allergy or intolerance may originate from a previous reaction.\nDo not populate AllergyIntolerance.reaction with structured manifestations,\ndescriptions, onset, severity, exposure route, substances or event-specific\nnotes in this narrow profile. Relevant uncertain or historical information may\nbe retained as narrative context in AllergyIntolerance.note. The allergy or\nintolerance assertion and its coded causative agent remain structured in the\nresource.",
      "isModifier": false,
      "short": "Structured reaction details are not recorded",
      "mapping": [ {
        "map": "outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "0",
      "id": "AllergyIntolerance.reaction",
      "base": {
        "max": "*",
        "min": 0,
        "path": "AllergyIntolerance.reaction"
      },
      "isSummary": false
    }, {
      "path": "AllergyIntolerance.reaction.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "AllergyIntolerance.reaction.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.reaction.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "AllergyIntolerance.reaction.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "AllergyIntolerance.reaction.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "AllergyIntolerance.reaction.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.reaction.substance",
      "min": 0,
      "definition": "Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.  If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance falls within the semantic scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.reaction.substance.",
      "isModifier": false,
      "short": "Specific substance or pharmaceutical product considered to be responsible for event",
      "mapping": [ {
        "map": "outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/substance-code",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubstanceCode"
        } ],
        "description": "Codes defining the type of the substance (including pharmaceutical products)."
      },
      "max": "1",
      "id": "AllergyIntolerance.reaction.substance",
      "comment": "Coding of the specific substance (or pharmaceutical product) with a terminology capable of triggering decision support should be used wherever possible.  The 'code' element allows for the use of a specific substance or pharmaceutical product, or a group or class of substances. In the case of an allergy or intolerance to a class of substances, (for example, \"penicillins\"), the 'reaction.substance' element could be used to code the specific substance that was identified as having caused the reaction (for example, \"amoxycillin\"). Duplication of the value in the 'code' and 'reaction.substance' elements is acceptable when a specific substance has been recorded in 'code'.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.reaction.substance"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.reaction.manifestation",
      "min": 1,
      "definition": "Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.",
      "isModifier": false,
      "short": "Clinical symptoms/signs associated with the Event",
      "mapping": [ {
        "map": "AL1-5",
        "identity": "v2"
      }, {
        "map": "code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/clinical-findings",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Manifestation"
        } ],
        "description": "Clinical symptoms and/or signs that are observed or associated with an Adverse Reaction Event."
      },
      "alias": [ "Symptoms", "Signs" ],
      "max": "*",
      "id": "AllergyIntolerance.reaction.manifestation",
      "comment": "Manifestation can be expressed as a single word, phrase or brief description. For example: nausea, rash or no reaction. It is preferable that manifestation should be coded with a terminology, where possible. The values entered here may be used to display on an application screen as part of a list of adverse reactions, as recommended in the UK NHS CUI guidelines.  Terminologies commonly used include, but are not limited to, SNOMED CT or ICD10.",
      "base": {
        "max": "*",
        "min": 1,
        "path": "AllergyIntolerance.reaction.manifestation"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.reaction.description",
      "min": 0,
      "definition": "Text description about the reaction as a whole, including details of the manifestation if required.",
      "isModifier": false,
      "short": "Description of the event as a whole",
      "mapping": [ {
        "map": "text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "Narrative", "Text" ],
      "max": "1",
      "id": "AllergyIntolerance.reaction.description",
      "comment": "Use the description to provide any details of a particular event of the occurred reaction such as circumstances, reaction specifics, what happened before/after. Information, related to the event, but not describing a particular care should be captured in the comment field. For example: at the age of four, the patient was given penicillin for strep throat and subsequently developed severe hives.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.reaction.description"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.reaction.onset",
      "min": 0,
      "definition": "Record of the date and/or time of the onset of the Reaction.",
      "isModifier": false,
      "short": "Date(/time) when manifestations showed",
      "mapping": [ {
        "map": "AL1-6",
        "identity": "v2"
      }, {
        "map": "effectiveTime.low",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "AllergyIntolerance.reaction.onset",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.reaction.onset"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.reaction.severity",
      "min": 0,
      "definition": "Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.",
      "isModifier": false,
      "short": "mild | moderate | severe (of event as a whole)",
      "mapping": [ {
        "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AllergyIntoleranceSeverity"
        } ],
        "description": "Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations."
      },
      "max": "1",
      "id": "AllergyIntolerance.reaction.severity",
      "comment": "It is acknowledged that this assessment is very subjective. There may be some specific practice domains where objective scales have been applied. Objective scales can be included in this model as extensions.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.reaction.severity"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.reaction.exposureRoute",
      "min": 0,
      "definition": "Identification of the route by which the subject was exposed to the substance.",
      "isModifier": false,
      "short": "How the subject was exposed to the substance",
      "mapping": [ {
        "map": "outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/route-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "RouteOfAdministration"
        } ],
        "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject."
      },
      "max": "1",
      "id": "AllergyIntolerance.reaction.exposureRoute",
      "comment": "Coding of the route of exposure with a terminology should be used wherever possible.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "AllergyIntolerance.reaction.exposureRoute"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "AllergyIntolerance.reaction.note",
      "min": 0,
      "definition": "Additional text about the adverse reaction event not captured in other fields.",
      "isModifier": false,
      "short": "Text about event not captured in other fields",
      "mapping": [ {
        "map": "subjectOf.observationEvent[code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "max": "*",
      "id": "AllergyIntolerance.reaction.note",
      "comment": "Use this field to record information indirectly related to a particular event and not captured in the description. For example: Clinical records are no longer available, recorded based on information provided to the patient by her mother and her mother is deceased.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "AllergyIntolerance.reaction.note"
      },
      "isSummary": false
    } ]
  },
  "status": "draft",
  "id": "d50dca63-134f-4a20-a573-a9631e99c5eb",
  "kind": "resource",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no",
  "version": "0.6.1",
  "differential": {
    "element": [ {
      "id": "AllergyIntolerance",
      "path": "AllergyIntolerance",
      "short": "Locally recorded allergy or intolerance",
      "comment": "Except when the resource is marked entered-in-error, this profile represents\na positive assertion about an allergy or intolerance to a specific causative\nagent. It does not represent a general statement that the patient has no known\nallergies. The mandatory SNOMED CT coding is the primary structured\nrepresentation of the causative agent associated with the\nassertion. Its presence does not by itself establish that the allergy or\nintolerance is clinically confirmed. An optional ATC coding is an additional\nrepresentation and does not replace or modify the SNOMED CT meaning."
    }, {
      "id": "AllergyIntolerance.implicitRules",
      "max": "0",
      "path": "AllergyIntolerance.implicitRules",
      "short": "Not used in the current DigiDOT allergy profile",
      "comment": "implicitRules is prohibited in this profile.",
      "definition": "A DigiDOT allergy or intolerance must be interpretable from the published\nprofile, the referenced resources and the recorded terminology version. Do\nnot use implicitRules to introduce undocumented processing rules."
    }, {
      "id": "AllergyIntolerance.contained",
      "max": "0",
      "path": "AllergyIntolerance.contained",
      "short": "Not used in the current DigiDOT allergy profile",
      "comment": "contained is prohibited in this profile. Reference independently identifiable resources instead.",
      "definition": "Resources relevant to the DigiDOT information model must be independently\nidentifiable and linked by reference. Contained resources are not used in this\nprofile."
    }, {
      "id": "AllergyIntolerance.extension",
      "max": "0",
      "path": "AllergyIntolerance.extension",
      "short": "No resource-level extensions",
      "comment": "Resource-level extension is prohibited in this profile.",
      "definition": "No resource-level extension is defined for the current DigiDOT allergy and\nintolerance scope. New information requirements require an explicit and\ngoverned profile revision."
    }, {
      "id": "AllergyIntolerance.modifierExtension",
      "max": "0",
      "path": "AllergyIntolerance.modifierExtension",
      "short": "No resource-level modifier extensions",
      "comment": "Resource-level modifierExtension is prohibited in this profile.",
      "definition": "Modifier extensions can change the clinical meaning of an AllergyIntolerance\nresource and require every consumer to understand them. They are not permitted\nin the current DigiDOT profile.",
      "requirements": "The current DigiDOT information model does not permit modifier extensions because they can change the clinical interpretation of the resource."
    }, {
      "id": "AllergyIntolerance.identifier",
      "min": 1,
      "path": "AllergyIntolerance.identifier",
      "short": "Stable identifier for the local allergy record",
      "definition": "Record a stable business identifier assigned to this locally maintained\nallergy or intolerance. Use it for traceability and de-duplication across\nDigiDOT systems. Do not copy a Kjernejournal identifier and do not repeat the\nFHIR server resource id. Every identifier must include both its issuing system\nand its value.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.identifier.system",
      "min": 1,
      "path": "AllergyIntolerance.identifier.system",
      "short": "Identifier namespace",
      "definition": "Record the stable URI namespace that identifies the system responsible for assigning the allergy-record identifier.",
      "mustSupport": true,
      "requirements": "The system establishes the namespace within which the identifier value is unique."
    }, {
      "id": "AllergyIntolerance.identifier.value",
      "min": 1,
      "path": "AllergyIntolerance.identifier.value",
      "short": "Allergy-record identifier value",
      "definition": "Record the stable business identifier value assigned to the local allergy or intolerance record.",
      "mustSupport": true,
      "requirements": "The value identifies the allergy record within the namespace stated in identifier.system."
    }, {
      "id": "AllergyIntolerance.clinicalStatus",
      "path": "AllergyIntolerance.clinicalStatus",
      "short": "Current clinical status of the allergy or intolerance",
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-allergyintolerance-clinical-status-no"
      },
      "definition": "Record whether the patient is currently considered at risk or is no longer\nconsidered at risk. Only the FHIR clinical status codes active and inactive\nare permitted. Clinical status does not state whether the assertion has been\nclinically confirmed. It must be present unless verificationStatus is\nentered-in-error; in that case it must be omitted, as required by the base\nFHIR constraints.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.verificationStatus",
      "path": "AllergyIntolerance.verificationStatus",
      "short": "Certainty of the allergy or intolerance assertion",
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-allergyintolerance-verification-status-no"
      },
      "definition": "Use unconfirmed for a retained assertion that has not been clinically\nverified, including uncertain patient-reported history. Use confirmed only\nwhen the assertion has been clinically verified. Use entered-in-error only\nwhen the resource itself was created in error. Omit verificationStatus when\nno meaningful verification assessment is available. The code refuted is not\npermitted; do not use inactive to represent refutation.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.type",
      "max": "0",
      "path": "AllergyIntolerance.type",
      "short": "Not used in the current DigiDOT allergy profile",
      "comment": "type is prohibited in this profile. The profile does not classify the assertion as allergy or intolerance.",
      "definition": "The current DigiDOT profile does not distinguish structurally between allergy\nand intolerance. Information reported to DigiDOT may not provide a clinically\nverified physiological mechanism, and type is therefore not recorded."
    }, {
      "id": "AllergyIntolerance.category",
      "max": "0",
      "path": "AllergyIntolerance.category",
      "short": "Not used in the current DigiDOT allergy profile",
      "comment": "category is prohibited in this profile.",
      "definition": "The current DigiDOT profile does not record the broad FHIR causative-agent category. The causative agent is represented by the structured coding in AllergyIntolerance.code."
    }, {
      "id": "AllergyIntolerance.criticality",
      "max": "0",
      "path": "AllergyIntolerance.criticality",
      "short": "Not used in the current DigiDOT allergy profile",
      "comment": "criticality is prohibited in this profile.",
      "definition": "A prospective assessment of the potential seriousness of harm from future\nexposure is outside the current DigiDOT scope. Do not record criticality in\nthis profile."
    }, {
      "path": "AllergyIntolerance.code",
      "requirements": "A structured and versioned SNOMED CT causative-agent code supports exchange\nand allows consuming EHR systems to perform terminology-based allergy checking\nand subsumption testing. An optional ATC coding supports faithful exchange of\nan additional medication classification supplied by the source EHR.",
      "min": 1,
      "definition": "Record exactly one SNOMED CT substance or pharmaceutical/biologic product\nconcept that identifies the causative agent. This may represent a medicinal\nproduct, medicinal product form, clinical drug, product class, food, latex,\nmetal, biological material or another clinically relevant substance. An ATC\ncoding may additionally be preserved when the source EHR supplies it for a\nmedication causative agent. The SNOMED CT coding remains mandatory.",
      "short": "Versioned SNOMED CT causative agent",
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-allergen-no"
      },
      "id": "AllergyIntolerance.code",
      "comment": "The SNOMED CT slice uses system http://snomed.info/sct and identifies the\nSNOMED CT edition and release in Coding.version. The broad value set allows all\ndescendant concepts of Substance and Pharmaceutical / biologic product so\nthat each source EHR can apply a narrower terminology subset for data entry\nand decision support. Concepts representing no known allergy, an allergy or\nintolerance disorder, or an uncoded free-text allergen are not permitted.\n\nThe optional ATC slice uses system http://www.whocc.no/atc. Include it only\nwhen it is relevant to the medication assertion supplied by the source EHR.\nOmit ATC when a broad SNOMED CT concept could correspond to several ATC\nclassifications, and do not include several alternative ATC codes. DigiDOT does\nnot derive an ATC code from SNOMED CT and does not verify a mapping between the\ntwo codings. FEST coding is not stored in this profile. FEST-to-SNOMED CT\nmapping and related decision-support logic belong to the participating EHR."
    }, {
      "id": "AllergyIntolerance.code.id",
      "max": "0",
      "path": "AllergyIntolerance.code.id",
      "short": "Not used on the causative-agent CodeableConcept",
      "definition": "An element id on the causative-agent CodeableConcept is not used in this profile."
    }, {
      "id": "AllergyIntolerance.code.extension",
      "max": "0",
      "path": "AllergyIntolerance.code.extension",
      "short": "No extensions on the causative-agent CodeableConcept",
      "definition": "Extensions on the causative-agent CodeableConcept are not used in this profile."
    }, {
      "id": "AllergyIntolerance.code.coding",
      "max": "2",
      "min": 1,
      "path": "AllergyIntolerance.code.coding",
      "short": "Mandatory SNOMED CT and optional ATC coding",
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "definition": "Provide one versioned SNOMED CT coding as the primary structured\nrepresentation of the causative agent. One ATC coding may additionally be\npreserved for a medication causative agent. No other coding systems are\npermitted by the closed slicing.",
      "mustSupport": true
    }, {
      "path": "AllergyIntolerance.code.coding",
      "min": 1,
      "definition": "This mandatory coding conforms to DigiDotCodingSctPreNo, which requires the\nSNOMED CT system, a numeric concept identifier and a versioned edition URI.\nThe code must be a descendant of Substance or Pharmaceutical / biologic\nproduct in the recorded SNOMED CT edition.",
      "short": "Versioned SNOMED CT causative agent",
      "type": [ {
        "code": "Coding",
        "profile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no" ]
      } ],
      "mustSupport": true,
      "sliceName": "snomed",
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-allergen-no"
      },
      "max": "1",
      "id": "AllergyIntolerance.code.coding:snomed"
    }, {
      "id": "AllergyIntolerance.code.coding:snomed.extension",
      "max": "0",
      "path": "AllergyIntolerance.code.coding.extension",
      "short": "No extensions on the SNOMED CT coding",
      "definition": "Extensions on the mandatory SNOMED CT coding are not used in this profile."
    }, {
      "path": "AllergyIntolerance.code.coding",
      "min": 0,
      "definition": "Preserve one WHO ATC code when it is part of the medication allergy or\nintolerance assertion supplied by the source EHR. The ATC coding is additional\nclassification information and never replaces the mandatory SNOMED CT coding.\nThe source EHR is responsible for ensuring that both codings are consistent.\nOmit ATC when the recorded SNOMED CT concept could correspond to several ATC\nclassifications. Do not include several possible ATC codes as alternatives.",
      "short": "Optional ATC classification supplied by the source EHR",
      "mustSupport": true,
      "sliceName": "atc",
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-atc-no"
      },
      "max": "1",
      "id": "AllergyIntolerance.code.coding:atc"
    }, {
      "id": "AllergyIntolerance.code.coding:atc.extension",
      "max": "0",
      "path": "AllergyIntolerance.code.coding.extension",
      "short": "No extensions on the ATC coding",
      "definition": "Extensions on the optional ATC coding are not used in this profile."
    }, {
      "id": "AllergyIntolerance.code.coding:atc.system",
      "min": 1,
      "path": "AllergyIntolerance.code.coding.system",
      "short": "WHO ATC code-system URI",
      "fixedUri": "http://www.whocc.no/atc",
      "definition": "Use the fixed WHO ATC code-system URI http://www.whocc.no/atc."
    }, {
      "id": "AllergyIntolerance.code.coding:atc.code",
      "min": 1,
      "path": "AllergyIntolerance.code.coding.code",
      "short": "Source-supplied ATC code",
      "definition": "Record the single ATC code supplied by the source EHR when the optional ATC slice is present."
    }, {
      "id": "AllergyIntolerance.code.text",
      "max": "0",
      "path": "AllergyIntolerance.code.text",
      "short": "Not used for the causative agent",
      "definition": "The causative agent is represented by the structured SNOMED CT coding and,\nwhen present, an additional ATC coding. Do not use CodeableConcept.text as an\nalternative allergen representation."
    }, {
      "id": "AllergyIntolerance.patient",
      "path": "AllergyIntolerance.patient",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient" ]
      } ],
      "short": "Patient with the allergy or intolerance",
      "definition": "Reference a Patient resource conforming to no-basis-Patient.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.encounter",
      "path": "AllergyIntolerance.encounter",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no" ]
      } ],
      "short": "DigiDOT encounter in which the assertion was recorded",
      "definition": "Reference the DigiDOT Encounter during which the allergy or intolerance was\nasserted or reviewed when that encounter is known.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.onset[x]",
      "max": "0",
      "path": "AllergyIntolerance.onset[x]",
      "short": "Not used in the current DigiDOT allergy profile",
      "comment": "onset[x] is prohibited in this profile. Use recordedDate for the date when the local DigiDOT record was first created.",
      "definition": "The onset of the allergy or intolerance is not recorded in this narrow DigiDOT\nprofile. Do not use onset[x] for the date of a historical reaction or for the\ndate when the local record was created."
    }, {
      "id": "AllergyIntolerance.recordedDate",
      "min": 1,
      "path": "AllergyIntolerance.recordedDate",
      "short": "When this local allergy record was first recorded",
      "definition": "Record the date and time when this local allergy or intolerance record was\nfirst created in DigiDOT. This is not the onset of the allergy or intolerance\nand not the date of a reaction.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.recorder",
      "min": 1,
      "path": "AllergyIntolerance.recorder",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" ]
      } ],
      "short": "Healthcare practitioner who recorded the local assertion",
      "comment": "Practitioner targets conform to no-basis-Practitioner. Use the standard FHIR R4\nReference datatype; literal and logical references are permitted.\nReference.reference, type, identifier and display retain their base\ncardinalities. A targetProfile constraint does not itself require a literal\nreference or select an identifier system.",
      "definition": "Reference the no-basis-Practitioner who created the local DigiDOT record and takes responsibility for its content.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.asserter",
      "path": "AllergyIntolerance.asserter",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient", "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner", "http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson" ]
      } ],
      "short": "Patient, related person or practitioner who asserted the information",
      "comment": "Patient, Practitioner and RelatedPerson targets conform to the corresponding\nno-basis profile. Use the standard FHIR R4 Reference datatype; literal and\nlogical references are permitted. Reference.reference, type, identifier and\ndisplay retain their base cardinalities. A targetProfile constraint does not\nitself require a literal reference or select an identifier system.",
      "definition": "Reference the patient, related person or healthcare practitioner who supplied or asserted the recorded allergy or intolerance information.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.lastOccurrence",
      "max": "0",
      "path": "AllergyIntolerance.lastOccurrence",
      "short": "Not used in the current DigiDOT allergy profile",
      "comment": "lastOccurrence is prohibited in this profile.",
      "definition": "The reported allergy or intolerance may be based on a reaction that occurred\nin the past, but the date of that reaction is not recorded in lastOccurrence.\nApproximate reported timing may be retained as narrative context in note."
    }, {
      "id": "AllergyIntolerance.note",
      "path": "AllergyIntolerance.note",
      "short": "Supplementary information about the allergy or intolerance",
      "comment": "Use note only for supplementary narrative about the allergy or intolerance\nassertion. It may include uncertain patient-reported historical context that\ncannot be represented in the structured elements retained by this profile.\nDo not use note to record criticality, treatment instructions or structured\ndetails of a reaction event. AllergyIntolerance.reaction is not permitted in\nthis profile.",
      "definition": "Record clinically relevant supplementary information that cannot be\nrepresented in the structured elements. Do not use note as an alternative to\nthe coded causative agent, clinical status or verification status when\nassessed. Uncertain patient-reported historical information may be retained as\nnarrative context. Do not use note to record criticality or to assert a\nclinician-assessed manifestation of a historical reaction.",
      "mustSupport": true
    }, {
      "id": "AllergyIntolerance.note.extension",
      "max": "0",
      "path": "AllergyIntolerance.note.extension",
      "short": "No extensions on allergy notes",
      "definition": "Allergy and intolerance notes use the standard Annotation elements retained by\nthis profile. Extensions on Annotation are not used in the current DigiDOT\nscope."
    }, {
      "id": "AllergyIntolerance.note.author[x]",
      "path": "AllergyIntolerance.note.author[x]",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" ]
      }, {
        "code": "string"
      } ],
      "short": "Practitioner reference or textual author of the note",
      "comment": "When author[x] is represented as a reference, it SHALL target a\nno-basis-Practitioner. Use the standard FHIR R4 Reference datatype; literal and\nlogical references are permitted. Reference.reference, type, identifier and\ndisplay retain their base cardinalities. A targetProfile constraint does not\nitself require a literal reference or select an identifier system. authorString\nmay be used when the author cannot be represented by a Practitioner reference.",
      "definition": "Identify the author with a reference to no-basis-Practitioner, or use authorString when the author cannot be represented by such a Practitioner reference."
    }, {
      "id": "AllergyIntolerance.reaction",
      "max": "0",
      "path": "AllergyIntolerance.reaction",
      "short": "Structured reaction details are not recorded",
      "definition": "The reported allergy or intolerance may originate from a previous reaction.\nDo not populate AllergyIntolerance.reaction with structured manifestations,\ndescriptions, onset, severity, exposure route, substances or event-specific\nnotes in this narrow profile. Relevant uncertain or historical information may\nbe retained as narrative context in AllergyIntolerance.note. The allergy or\nintolerance assertion and its coded causative agent remain structured in the\nresource."
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance"
}