PackagesCanonicalsLogsProblems
    Packages
    PharmacyClaimProfile.test@1.0.1-beta
    http://hl7.org/fhir/StructureDefinition/DomainResource
{
  "description": "A resource that includes narrative, extensions, and contained resources.",
  "_filename": "DomainResource.json",
  "package_name": "PharmacyClaimProfile.test",
  "date": "2018-12-27T22:37:54+11:00",
  "derivation": "specialization",
  "meta": {
    "lastUpdated": "2018-12-27T22:37:54.724+11:00"
  },
  "publisher": "Health Level Seven International (FHIR Infrastructure)",
  "fhirVersion": "4.0.0",
  "name": "DomainResource",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": true,
  "type": "DomainResource",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "1.0.1-beta",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "normative"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
    "valueCode": "4.0.0"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 5
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "fhir"
  } ],
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "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)",
        "severity": "error",
        "expression": "contained.contained.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))",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.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 $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@va         lue=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonica         l) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(refer         ence = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(c         anonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "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()"
      }, {
        "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))",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      } ],
      "path": "DomainResource",
      "min": 0,
      "definition": "A resource that includes narrative, extensions, and contained resources.",
      "isModifier": false,
      "short": "A resource with narrative, extensions, and contained resources",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      } ],
      "max": "*",
      "id": "DomainResource",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource"
      },
      "isSummary": false
    }, {
      "path": "DomainResource.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": "id"
      } ],
      "max": "1",
      "id": "DomainResource.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
    }, {
      "path": "DomainResource.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": "DomainResource.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "DomainResource.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and        which must be understood when processing the content. Often, this is a reference to an        implementation guide that defines the special rules along with other profiles etc.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "DomainResource.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of        trading partners. This inherently limits the usefulness of the data in the long term.        However, the existing health eco-system is highly fractured, and not yet ready to define,        collect, and exchange data in a generally computable sense. Wherever possible, implementers        and/or specification writers should avoid using this element. Often, when used, the URL        is a reference to an implementation guide that defines these special rules as part of        it's narrative along with other profiles, value sets, etc.",
      "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
    }, {
      "path": "DomainResource.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": "DomainResource.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
    }, {
      "path": "DomainResource.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": "DomainResource.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": "DomainResource.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains        them - they cannot be identified independently, and nor can they have their own independent        transaction scope.",
      "isModifier": false,
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "DomainResource.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification        is lost, it is extremely difficult (and context dependent) to restore it again. Contained        resources may have profiles and tags In their meta elements, but SHALL NOT have security        labels.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "path": "DomainResource.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition        of the resource. 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": "DomainResource.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": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "path": "DomainResource.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.ht       ml#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition        of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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.  Modifier 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",
      "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": "DomainResource.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": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource        that contains them",
      "isSummary": false
    } ]
  },
  "status": "active",
  "id": "4ff5c64a-5059-4ce0-b07f-314c7a8ac7be",
  "kind": "resource",
  "url": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "version": "4.0.0",
  "differential": {
    "element": [ {
      "id": "DomainResource",
      "max": "*",
      "min": 0,
      "path": "DomainResource",
      "short": "A resource with narrative, extensions, and contained resources",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      } ],
      "constraint": [ {
        "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)",
        "severity": "error",
        "expression": "contained.contained.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))",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.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 $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@va         lue=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonica         l) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(refer         ence = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(c         anonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "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()"
      }, {
        "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))",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      } ],
      "definition": "A resource that includes narrative, extensions, and contained resources."
    }, {
      "path": "DomainResource.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.",
      "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": "DomainResource.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."
    }, {
      "path": "DomainResource.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains        them - they cannot be identified independently, and nor can they have their own independent        transaction scope.",
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "DomainResource.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification        is lost, it is extremely difficult (and context dependent) to restore it again. Contained        resources may have profiles and tags In their meta elements, but SHALL NOT have security        labels."
    }, {
      "path": "DomainResource.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition        of the resource. 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.",
      "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": "DomainResource.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."
    }, {
      "path": "DomainResource.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.ht       ml#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition        of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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.  Modifier 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",
      "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": "DomainResource.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.",
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource        that contains them"
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/fhir",
      "system": "url"
    } ]
  }, {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg/index.cfm",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource"
}