From ff196da66a800c744af272fc10b5ec2703cb6efd Mon Sep 17 00:00:00 2001 From: Christian Ohr <christian.ohr@x-tention.de> Date: Wed, 13 Dec 2023 09:12:33 +0100 Subject: [PATCH 1/3] #369: additions for ITI-65 and 66 for MHD 4.2.1 --- .../iti65/Iti65TransactionConfiguration.java | 2 +- .../ihe/fhir/iti65/Iti65Validator.java | 173 +- .../fhir/iti66/Iti66ListResourceProvider.java | 117 + .../fhir/iti66/Iti66ListSearchParameters.java | 114 + .../ipf/commons/ihe/fhir/mhd/Mhd421.java | 27 + .../commons/ihe/fhir/mhd/MhdConstants.java | 64 + .../ipf/commons/ihe/fhir/mhd/MhdProfile.java | 235 + .../commons/ihe/fhir/mhd/MhdValidator.java | 145 + .../ipf/commons/ihe/fhir/mhd/MhdVersion.java | 28 + .../model/AbstractProvideDocumentBundle.java | 28 + .../model/ComprehensiveDocumentReference.java | 83 + .../mhd/model/ComprehensiveFolderList.java | 30 + .../ComprehensiveProvideDocumentBundle.java | 67 + .../model/ComprehensiveSubmissionSetList.java | 30 + .../DocumentReferencePatchParameters.java | 31 + .../fhir/mhd/model/EntryUuidIdentifier.java | 45 + ...nsiveDocumentReferencesResponseBundle.java | 41 + .../FindDocumentListsResponseBundle.java | 45 + ...nimalDocumentReferencesResponseBundle.java | 41 + .../ihe/fhir/mhd/model/FolderList.java | 48 + .../model/GenerateMetadataInParameters.java | 32 + .../model/GenerateMetadataOutParameters.java | 32 + .../commons/ihe/fhir/mhd/model/MhdList.java | 93 + .../mhd/model/MinimalDocumentReference.java | 64 + .../ihe/fhir/mhd/model/MinimalFolderList.java | 30 + .../model/MinimalProvideDocumentBundle.java | 54 + .../mhd/model/MinimalSubmissionSetList.java | 30 + .../model/ProvideDocumentBundleResponse.java | 34 + .../SimplifiedPublishDocumentReference.java | 71 + .../commons/ihe/fhir/mhd/model/Source.java | 53 + .../ihe/fhir/mhd/model/SubmissionSetList.java | 148 + .../SubmissionSetUniqueIdIdentifier.java | 43 + ...ntainedComprehensiveDocumentReference.java | 31 + ...nedComprehensiveProvideDocumentBundle.java | 56 + ...ntainedComprehensiveSubmissionSetList.java | 30 + .../fhir/mhd/model/UniqueIdIdentifier.java | 31 + ...IHE_MHD_Comprehensive_DocumentManifest.xml | 0 .../IHE_MHD_Comprehensive_List.xml | 0 .../IHE_MHD_Minimal_DocumentManifest.xml | 0 .../{320 => v320}/IHE_MHD_Minimal_List.xml | 0 ...D_Provide_Comprehensive_DocumentBundle.xml | 0 ...rovide_Comprehensive_DocumentReference.xml | 0 ...IHE_MHD_Provide_Minimal_DocumentBundle.xml | 0 ..._MHD_Provide_Minimal_DocumentReference.xml | 0 ..._Query_Comprehensive_DocumentReference.xml | 0 ...HE_MHD_Query_Minimal_DocumentReference.xml | 0 .../{320 => v320}/MHD-DocumentManifest.xml | 0 .../{320 => v320}/MHD-DocumentReference.xml | 0 .../profiles/{320 => v320}/MHD-List.xml | 0 .../profiles/v421/CodeSystem-MHDlistTypes.xml | 53 + ...HE.MHD.Comprehensive.DocumentReference.xml | 3208 ++++++ ...efinition-IHE.MHD.Comprehensive.Folder.xml | 1614 +++ ...on-IHE.MHD.Comprehensive.ProvideBundle.xml | 9006 ++++++++++++++++ ...on-IHE.MHD.Comprehensive.SubmissionSet.xml | 1931 ++++ ...efinition-IHE.MHD.EntryUUID.Identifier.xml | 464 + ...E.MHD.FindDocumentListsResponseMessage.xml | 3757 +++++++ ...ReferencesComprehensiveResponseMessage.xml | 2677 +++++ ....FindDocumentReferencesResponseMessage.xml | 2677 +++++ ...IHE.MHD.GenerateMetadata.Parameters.In.xml | 1027 ++ ...HE.MHD.GenerateMetadata.Parameters.Out.xml | 869 ++ .../v421/StructureDefinition-IHE.MHD.List.xml | 1204 +++ ...tion-IHE.MHD.Minimal.DocumentReference.xml | 3527 +++++++ ...ctureDefinition-IHE.MHD.Minimal.Folder.xml | 1806 ++++ ...finition-IHE.MHD.Minimal.ProvideBundle.xml | 9208 +++++++++++++++++ ...finition-IHE.MHD.Minimal.SubmissionSet.xml | 2185 ++++ ...ureDefinition-IHE.MHD.Patch.Parameters.xml | 594 ++ ...-IHE.MHD.ProvideDocumentBundleResponse.xml | 1617 +++ ...HD.SimplifiedPublish.DocumentReference.xml | 2522 +++++ ...HE.MHD.SubmissionSetUniqueIdIdentifier.xml | 457 + ...tained.Comprehensive.DocumentReference.xml | 3227 ++++++ ...nContained.Comprehensive.ProvideBundle.xml | 9006 ++++++++++++++++ ...nContained.Comprehensive.SubmissionSet.xml | 1931 ++++ ...eDefinition-IHE.MHD.UniqueIdIdentifier.xml | 451 + .../StructureDefinition-ihe-authorOrg.xml | 238 + ...tructureDefinition-ihe-designationType.xml | 236 + ...uctureDefinition-ihe-intendedRecipient.xml | 250 + .../v421/StructureDefinition-ihe-sourceId.xml | 236 + .../v421/ValueSet-DocumentReferenceStats.xml | 53 + .../profiles/v421/ValueSet-MHDlistTypesVS.xml | 53 + .../v421/ValueSet-MHDprovideFolderActions.xml | 53 + .../ValueSet-MHDprovidePatientActions.xml | 56 + .../profiles/v421/ValueSet-formatcode.xml | 63 + .../ihe/fhir/mhd/MhdValidatorTest.java | 134 + .../fhir/r4/mhd/src/test/resources/test.json | 184 + .../fhir/iti65/v421/AbstractTestIti65.java | 159 + .../ihe/fhir/iti65/v421/TestIti65Error.java | 50 + .../iti65/v421/TestIti65OtherTransaction.java | 50 + .../ihe/fhir/iti65/v421/TestIti65Success.java | 111 + .../fhir/iti66/v421/AbstractTestIti66.java | 105 + .../iti66/v421/Iti66TestRouteBuilder.java | 70 + .../ihe/fhir/iti66/v421/TestIti66Error.java | 49 + .../iti66/v421/TestIti66MissingParameter.java | 42 + .../ihe/fhir/iti66/v421/TestIti66Success.java | 133 + .../v421/FindSubmissionSetsResponse.xml | 75 + .../src/test/resources/v421/iti-66-error.xml | 30 + .../r4/mhd/src/test/resources/v421/iti-66.xml | 30 + 96 files changed, 69688 insertions(+), 16 deletions(-) create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListResourceProvider.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListSearchParameters.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/Mhd421.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdConstants.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidator.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdVersion.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractProvideDocumentBundle.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveDocumentReference.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveFolderList.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveProvideDocumentBundle.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveSubmissionSetList.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/DocumentReferencePatchParameters.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/EntryUuidIdentifier.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindComprehensiveDocumentReferencesResponseBundle.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindDocumentListsResponseBundle.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindMinimalDocumentReferencesResponseBundle.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FolderList.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataInParameters.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataOutParameters.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MhdList.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalDocumentReference.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalFolderList.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalProvideDocumentBundle.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalSubmissionSetList.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ProvideDocumentBundleResponse.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SimplifiedPublishDocumentReference.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/Source.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetUniqueIdIdentifier.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveDocumentReference.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveProvideDocumentBundle.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveSubmissionSetList.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UniqueIdIdentifier.java rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Comprehensive_DocumentManifest.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Comprehensive_List.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Minimal_DocumentManifest.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Minimal_List.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Provide_Comprehensive_DocumentBundle.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Provide_Comprehensive_DocumentReference.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Provide_Minimal_DocumentBundle.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Provide_Minimal_DocumentReference.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Query_Comprehensive_DocumentReference.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/IHE_MHD_Query_Minimal_DocumentReference.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/MHD-DocumentManifest.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/MHD-DocumentReference.xml (100%) rename commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/{320 => v320}/MHD-List.xml (100%) create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/CodeSystem-MHDlistTypes.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.Folder.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.SubmissionSet.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.EntryUUID.Identifier.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.List.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.DocumentReference.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.Folder.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.ProvideBundle.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.SubmissionSet.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Patch.Parameters.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.SubmissionSetUniqueIdIdentifier.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UniqueIdIdentifier.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-authorOrg.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-designationType.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-intendedRecipient.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-sourceId.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-DocumentReferenceStats.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDlistTypesVS.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDprovideFolderActions.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDprovidePatientActions.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-formatcode.xml create mode 100644 commons/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidatorTest.java create mode 100644 commons/ihe/fhir/r4/mhd/src/test/resources/test.json create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/AbstractTestIti65.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65Error.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65OtherTransaction.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65Success.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/AbstractTestIti66.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/Iti66TestRouteBuilder.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66Error.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66MissingParameter.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66Success.java create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/FindSubmissionSetsResponse.xml create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/iti-66-error.xml create mode 100644 platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/iti-66.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti65/Iti65TransactionConfiguration.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti65/Iti65TransactionConfiguration.java index 97a0b5baa7..740e55e586 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti65/Iti65TransactionConfiguration.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti65/Iti65TransactionConfiguration.java @@ -22,7 +22,7 @@ import org.openehealth.ipf.commons.ihe.fhir.BundleProfileSelector; import static org.openehealth.ipf.commons.ihe.fhir.iti65.Iti65Constants.*; -import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfiles.*; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.*; /** * Standard Configuration for Iti65Component. diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti65/Iti65Validator.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti65/Iti65Validator.java index 035bf53b77..d99e6360d1 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti65/Iti65Validator.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti65/Iti65Validator.java @@ -22,11 +22,7 @@ import ca.uhn.fhir.context.support.ValidationSupportContext; import ca.uhn.fhir.rest.api.EncodingEnum; import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException; -import org.hl7.fhir.common.hapi.validation.support.CommonCodeSystemsTerminologyService; -import org.hl7.fhir.common.hapi.validation.support.InMemoryTerminologyServerValidationSupport; -import org.hl7.fhir.common.hapi.validation.support.PrePopulatedValidationSupport; -import org.hl7.fhir.common.hapi.validation.support.SnapshotGeneratingValidationSupport; -import org.hl7.fhir.common.hapi.validation.support.ValidationSupportChain; +import org.hl7.fhir.common.hapi.validation.support.*; import org.hl7.fhir.common.hapi.validation.validator.FhirInstanceValidator; import org.hl7.fhir.r4.model.Binary; import org.hl7.fhir.r4.model.Bundle; @@ -41,6 +37,7 @@ import org.hl7.fhir.r4.model.StructureDefinition; import org.hl7.fhir.r5.utils.validation.constants.BestPracticeWarningLevel; import org.openehealth.ipf.commons.ihe.fhir.FhirTransactionValidator; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; import org.openehealth.ipf.commons.ihe.fhir.support.FhirUtils; import org.openehealth.ipf.commons.ihe.xds.core.responses.ErrorCode; import org.slf4j.Logger; @@ -54,6 +51,9 @@ import java.util.Optional; import java.util.Scanner; import java.util.function.Function; +import java.util.stream.Collectors; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.*; /** * Validator for ITI-65 transactions. @@ -69,13 +69,14 @@ public class Iti65Validator extends FhirTransactionValidator.Support { private static final String IHE_PROFILE_PREFIX = "http://ihe.net/fhir/StructureDefinition/"; private final FhirContext fhirContext; - private IValidationSupport validationSupport; + private IValidationSupport validationSupportv320; public Iti65Validator(FhirContext fhirContext) { this.fhirContext = fhirContext; LOG.info("Initializing Validator for ITI-65 bundles"); - validationSupport = loadStructureDefinitions(new DefaultProfileValidationSupport(fhirContext), "Minimal"); - validationSupport = loadStructureDefinitions(validationSupport, "Comprehensive"); + validationSupportv320 = loadStructureDefinitionsv320(new DefaultProfileValidationSupport(fhirContext), "Minimal"); + validationSupportv320 = loadStructureDefinitionsv320(validationSupportv320, "Comprehensive"); + validationSupportv320 = new CachingValidationSupport(validationSupportv320); LOG.info("Initialized Validator for ITI-65 bundles"); } @@ -83,13 +84,16 @@ public Iti65Validator(FhirContext fhirContext) { public void validateRequest(Object payload, Map<String, Object> parameters) { var transactionBundle = (Bundle) payload; - - validateBundleConsistency(transactionBundle); + if (transactionBundle instanceof Mhd421) { + validateBundleConsistency421(transactionBundle); + } else { + validateBundleConsistency320(transactionBundle); + } var validator = fhirContext.newValidator(); validator.setValidateAgainstStandardSchema(false); validator.setValidateAgainstStandardSchematron(false); - var instanceValidator = new FhirInstanceValidator(validationSupport); + var instanceValidator = new FhirInstanceValidator(validationSupportv320); instanceValidator.setNoTerminologyChecks(false); instanceValidator.setErrorForUnknownProfiles(true); instanceValidator.setBestPracticeWarningLevel(BestPracticeWarningLevel.Hint); @@ -101,7 +105,7 @@ public void validateRequest(Object payload, Map<String, Object> parameters) { } } - public ValidationSupportChain loadStructureDefinitions(IValidationSupport baseValidationSupport, String kind) { + public ValidationSupportChain loadStructureDefinitionsv320(IValidationSupport baseValidationSupport, String kind) { var validationSupport = new PrePopulatedValidationSupport(fhirContext); var supportChain = new ValidationSupportChain( validationSupport, @@ -132,8 +136,9 @@ private Optional<StructureDefinition> findProfile( var profileText = scanner.useDelimiter("\\A").next(); var parser = EncodingEnum.detectEncodingNoDefault(profileText).newParser(fhirContext); var structureDefinition = parser.parseResource(StructureDefinition.class, profileText); - return Optional.of(structureDefinition.hasSnapshot() ? structureDefinition - : (StructureDefinition) new SnapshotGeneratingValidationSupport(fhirContext).generateSnapshot( + return Optional.of(structureDefinition.hasSnapshot() ? + structureDefinition : + (StructureDefinition) new SnapshotGeneratingValidationSupport(fhirContext).generateSnapshot( new ValidationSupportContext(snaphotGenerationSupport), structureDefinition, url, url, name)); } @@ -147,7 +152,7 @@ private Optional<StructureDefinition> findProfile( * * @param bundle transaction bundle */ - protected void validateBundleConsistency(Bundle bundle) { + protected void validateBundleConsistency320(Bundle bundle) { var entries = FhirUtils.getBundleEntries(bundle); @@ -269,6 +274,144 @@ protected void validateBundleConsistency(Bundle bundle) { } + /** + * Verifies that bundle has expected content and consistent patient references + * + * @param bundle transaction bundle + */ + protected void validateBundleConsistency421(Bundle bundle) { + + var entries = FhirUtils.getBundleEntries(bundle); + + // Verify that the bundle has all required resources + // This should be done by the StructureDefinition, but apparently HAPI has a problem with slices... + // TODO check + + var submissionSets = entries.getOrDefault(ResourceType.List, Collections.emptyList()).stream() + .map(Bundle.BundleEntryComponent::getResource) + .map(ListResource.class::cast) + .filter(this::isListSubmissionSet) + .collect(Collectors.toList()); + if (submissionSets.size() != 1) { + throw FhirUtils.unprocessableEntity( + OperationOutcome.IssueSeverity.ERROR, + OperationOutcome.IssueType.INVALID, + null, null, + "Request bundle must have exactly one SubmissionSet list" + ); + } + if (entries.getOrDefault(ResourceType.DocumentReference, Collections.emptyList()).isEmpty()) { + throw FhirUtils.unprocessableEntity( + OperationOutcome.IssueSeverity.ERROR, + OperationOutcome.IssueType.INVALID, + null, null, + "Request bundle must have at least one DocumentReference" + ); + } + + + var patientReferences = new HashSet<String>(); + var expectedBinaryFullUrls = new HashSet<String>(); + var expectedReferenceFullUrls = new HashSet<String>(); + entries.values().stream() + .flatMap(Collection::stream) + .map(Bundle.BundleEntryComponent::getResource) + .forEach(resource -> { + if (resource instanceof ListResource) { + var listResource = (ListResource) resource; + if (isListSubmissionSet(listResource)) { + for (var entry : listResource.getEntry()) { + try { + expectedReferenceFullUrls.add(entry.getItem().getReference()); + } catch (Exception ignored) { + } + } + } + patientReferences.add(getSubjectReference(resource, r -> listResource.getSubject())); + } else if (resource instanceof DocumentReference) { + var dr = (DocumentReference) resource; + for (var content : dr.getContent()) { + var url = content.getAttachment().getUrl(); + if (!url.startsWith("http")) { + expectedBinaryFullUrls.add(url); + } + } + patientReferences.add(getSubjectReference(resource, r -> ((DocumentReference) r).getSubject())); + } else if (!(resource instanceof Binary)) { + throw FhirUtils.unprocessableEntity( + OperationOutcome.IssueSeverity.ERROR, + OperationOutcome.IssueType.INVALID, + null, null, + "Unexpected bundle component %s", + resource.getClass().getSimpleName() + ); + } + }); + + if (patientReferences.size() != 1) { + throw FhirUtils.unprocessableEntity( + OperationOutcome.IssueSeverity.ERROR, + OperationOutcome.IssueType.INVALID, + ErrorCode.PATIENT_ID_DOES_NOT_MATCH.getOpcode(), + null, + "Inconsistent patient references %s", + patientReferences + ); + } + + entries.values().stream() + .flatMap(Collection::stream) + .forEach(entry -> { + if (ResourceType.DocumentReference == entry.getResource().getResourceType()) { + if (!expectedReferenceFullUrls.remove(entry.getFullUrl())) { + throw FhirUtils.unprocessableEntity( + OperationOutcome.IssueSeverity.ERROR, + OperationOutcome.IssueType.INVALID, + null, null, + "DocumentReference with URL %s is not referenced by any SubmissionSet list", + entry.getFullUrl() + ); + } + } else if (ResourceType.Binary == entry.getResource().getResourceType()) { + if (!expectedBinaryFullUrls.remove(entry.getFullUrl())) { + throw FhirUtils.unprocessableEntity( + OperationOutcome.IssueSeverity.ERROR, + OperationOutcome.IssueType.INVALID, + null, null, + "Binary with URL %s is not referenced by any DocumentReference", + entry.getFullUrl() + ); + } + } + }); + + if (!expectedBinaryFullUrls.isEmpty()) { + throw FhirUtils.unprocessableEntity( + OperationOutcome.IssueSeverity.ERROR, + OperationOutcome.IssueType.INVALID, + null, null, + "Binary with URLs %s referenced, but not present in this bundle", + expectedBinaryFullUrls + ); + } + + if (!expectedReferenceFullUrls.isEmpty()) { + throw FhirUtils.unprocessableEntity( + OperationOutcome.IssueSeverity.ERROR, + OperationOutcome.IssueType.INVALID, + null, null, + "DocumentReference with URLs %s referenced, but not present in this bundle", + expectedReferenceFullUrls + ); + } + + } + + private boolean isListSubmissionSet(ListResource listResource) { + return COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST.hasProfile(listResource) || + MINIMAL_SUBMISSIONSET_TYPE_LIST.hasProfile(listResource) || + UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST.hasProfile(listResource); + } private String getSubjectReference(Resource resource, Function<Resource, Reference> f) { var reference = f.apply(resource); diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListResourceProvider.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListResourceProvider.java new file mode 100644 index 0000000000..0fa396863d --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListResourceProvider.java @@ -0,0 +1,117 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.commons.ihe.fhir.iti66; + +import ca.uhn.fhir.model.api.Include; +import ca.uhn.fhir.rest.annotation.*; +import ca.uhn.fhir.rest.api.SortSpec; +import ca.uhn.fhir.rest.api.server.IBundleProvider; +import ca.uhn.fhir.rest.api.server.RequestDetails; +import ca.uhn.fhir.rest.param.*; +import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException; +import org.hl7.fhir.instance.model.api.IAnyResource; +import org.hl7.fhir.r4.model.*; +import org.openehealth.ipf.commons.ihe.fhir.AbstractPlainProvider; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Set; + +/** + * Resource Provider for MHD (ITI-66 List) + * + * @author Christian Ohr + * @since 4.8 + */ +public class Iti66ListResourceProvider extends Iti66ResourceProvider { + + // Supported as of MHD 4.2.1 + + private static final String SP_DESIGNATION_TYPE = "designationType"; + private static final String SP_SOURCE_ID = "sourceId"; + + @SuppressWarnings("unused") + @Search(type = ListResource.class) + public IBundleProvider listSearch( + @RequiredParam(name = ListResource.SP_PATIENT, chainWhitelist = {"", Patient.SP_IDENTIFIER}) ReferenceParam patient, + @OptionalParam(name = ListResource.SP_DATE) DateRangeParam date, + @OptionalParam(name = ListResource.SP_SOURCE, chainWhitelist = { Practitioner.SP_FAMILY, Practitioner.SP_GIVEN }) ReferenceAndListParam author, + @OptionalParam(name = ListResource.SP_IDENTIFIER) TokenParam identifier, + @OptionalParam(name = ListResource.SP_CODE) TokenOrListParam code, + @OptionalParam(name = ListResource.SP_STATUS) TokenOrListParam status, + @OptionalParam(name = SP_SOURCE_ID) TokenOrListParam sourceId, + @OptionalParam(name = SP_DESIGNATION_TYPE) TokenOrListParam designationType, + // Extension to ITI-66 + @OptionalParam(name = IAnyResource.SP_RES_ID) TokenParam resourceId, + @Sort SortSpec sortSpec, + @IncludeParam Set<Include> includeSpec, + RequestDetails requestDetails, + HttpServletRequest httpServletRequest, + HttpServletResponse httpServletResponse) { + + + var searchParameters = Iti66ListSearchParameters.builder() + .date(date) + .code(code) + .designationType(designationType) + .sourceId(sourceId) + .status(status) + .identifier(identifier) + ._id(resourceId) + .sortSpec(sortSpec) + .includeSpec(includeSpec) + .fhirContext(getFhirContext()) + .build(); + + searchParameters.setAuthor(author); + + var chain = patient.getChain(); + if (Patient.SP_IDENTIFIER.equals(chain)) { + searchParameters.setPatientIdentifier(patient.toTokenParam(getFhirContext())); + } else if (chain == null || chain.isEmpty()) { + searchParameters.setPatientReference(patient); + } + + // Run down the route + return requestBundleProvider(null, searchParameters, ResourceType.List.name(), + httpServletRequest, httpServletResponse, requestDetails); + } + + /** + * Handles List Retrieve. This is not an actual part of the ITI-66 specification, but in the + * context of restful FHIR IHE transaction it makes sense to be able to retrieve a ListResource by + * its resource ID. + * + * @param id resource ID + * @param httpServletRequest servlet request + * @param httpServletResponse servlet response + * @param requestDetails request details + * @return {@link ListResource} resource + */ + @SuppressWarnings("unused") + @Read(version = true, type = ListResource.class) + public ListResource listRetrieve( + @IdParam IdType id, + RequestDetails requestDetails, + HttpServletRequest httpServletRequest, + HttpServletResponse httpServletResponse) { + if (id == null) throw new InvalidRequestException("Must provide ID with READ request"); + // Run down the route + return requestResource(id, null, ListResource.class, httpServletRequest, httpServletResponse, requestDetails); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListSearchParameters.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListSearchParameters.java new file mode 100644 index 0000000000..d87e68be20 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListSearchParameters.java @@ -0,0 +1,114 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.commons.ihe.fhir.iti66; + +import ca.uhn.fhir.context.FhirContext; +import ca.uhn.fhir.model.api.Include; +import ca.uhn.fhir.rest.api.SortSpec; +import ca.uhn.fhir.rest.param.*; +import lombok.*; +import org.hl7.fhir.r4.model.DocumentManifest; +import org.hl7.fhir.r4.model.Practitioner; +import org.hl7.fhir.r4.model.PractitionerRole; +import org.openehealth.ipf.commons.ihe.fhir.FhirSearchAndSortParameters; + +import java.util.*; + +import static java.util.Comparator.comparing; +import static java.util.Comparator.nullsLast; + +/** + * @since 3.6 + */ +@Builder +@ToString +@AllArgsConstructor +public class Iti66ListSearchParameters extends FhirSearchAndSortParameters<DocumentManifest> { + + @Getter @Setter private DateRangeParam date; + @Getter @Setter private StringParam authorFamilyName; + @Getter @Setter private StringParam authorGivenName; + @Getter @Setter private TokenOrListParam code; + @Getter @Setter private TokenOrListParam designationType; + @Getter @Setter private TokenOrListParam sourceId; + @Getter @Setter private TokenOrListParam status; + @Getter @Setter private TokenParam identifier; + @Getter @Setter private ReferenceParam patientReference; + @Getter @Setter private TokenParam patientIdentifier; + @Getter @Setter private TokenParam _id; + + @Getter @Setter private SortSpec sortSpec; + @Getter @Setter private Set<Include> includeSpec; + + @Getter + private final FhirContext fhirContext; + + @Override + public List<TokenParam> getPatientIdParam() { + if (_id != null) + return Collections.singletonList(_id); + if (patientReference != null) + return Collections.singletonList(patientReference.toTokenParam(fhirContext)); + + return Collections.singletonList(patientIdentifier); + } + + public Iti66ListSearchParameters setAuthor(ReferenceAndListParam author) { + if (author != null) { + author.getValuesAsQueryTokens().forEach(param -> { + var ref = param.getValuesAsQueryTokens().get(0); + var authorChain = ref.getChain(); + if (Practitioner.SP_FAMILY.equals(authorChain)) { + setAuthorFamilyName(ref.toStringParam(getFhirContext())); + } else if (Practitioner.SP_GIVEN.equals(authorChain)) { + setAuthorGivenName(ref.toStringParam(getFhirContext())); + } + }); + } + return this; + } + + @Override + public Optional<Comparator<DocumentManifest>> comparatorFor(String paramName) { + if (DocumentManifest.SP_CREATED.equals(paramName)) { + return Optional.of(CP_CREATED); + } else if (DocumentManifest.SP_AUTHOR.equals(paramName)) { + return Optional.of(CP_AUTHOR); + } + return Optional.empty(); + } + + private static final Comparator<DocumentManifest> CP_CREATED = nullsLast(comparing(DocumentManifest::getCreated)); + + private static final Comparator<DocumentManifest> CP_AUTHOR = nullsLast(comparing(documentManifest -> { + if (!documentManifest.hasAuthor()) return null; + var author = documentManifest.getAuthorFirstRep(); + if (author.getResource() instanceof PractitionerRole) { + var practitionerRole = (PractitionerRole) author.getResource(); + if (!practitionerRole.hasPractitioner()) return null; + author = practitionerRole.getPractitioner(); + } + if (author.getResource() == null) return null; + if (author.getResource() instanceof Practitioner) { + var practitioner = (Practitioner) author.getResource(); + if (!practitioner.hasName()) return null; + var name = practitioner.getNameFirstRep(); + return name.getFamilyElement().getValueNotNull() + name.getGivenAsSingleString(); + } + return null; + })); +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/Mhd421.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/Mhd421.java new file mode 100644 index 0000000000..ea1dd793dc --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/Mhd421.java @@ -0,0 +1,27 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd; + +/** + * Marker interface for MHD 4.2.1 classes + */ +public interface Mhd421 extends MhdVersion { + + @Override + default Version supportsVersion() { + return Version.v421; + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdConstants.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdConstants.java new file mode 100644 index 0000000000..e2cede2b82 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdConstants.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd; + +interface MhdConstants { + + // Bundle Profiles V4 + + String ITI65_MINIMAL_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle"; + String ITI65_COMPREHENSIVE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle"; + String ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.ProvideBundle"; + String ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideDocumentBundleResponse"; + String ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentListsResponseMessage"; + String ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesResponseMessage"; + String ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage"; + + // DocumentManifest/List profiles + + String MHD_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.List"; + String COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"; + String UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.SubmissionSet"; + String MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"; + + // List Profile + + String MINIMAL_FOLDER_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"; + String COMPREHENSIVE_FOLDER_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.Folder"; + + // DocumentReference profiles + + String COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"; + String UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.DocumentReference"; + String MINIMAL_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"; + String SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SimplifiedPublish.DocumentReference"; + + // Parameters + + String DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters"; + String GENERATE_METADATA_PARAMETERS_IN_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Parameters.In"; + String GENERATE_METADATA_PARAMETERS_OUT_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Parameters.Out"; + + // Datatypes + + String DESIGNATION_TYPE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"; + String AUTHOR_ORG_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"; + String INTENDED_RECIPIENT_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"; + String SOURCE_ID_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"; + String SUBMISSIONSET_UNIQUE_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"; + String UNIQUE_ID_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"; + String ENTRY_UUID_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"; +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java new file mode 100644 index 0000000000..1f154a9b5c --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java @@ -0,0 +1,235 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd; + +import ca.uhn.fhir.context.FhirContext; +import lombok.Getter; +import org.hl7.fhir.instance.model.api.IBaseResource; +import org.hl7.fhir.instance.model.api.IPrimitiveType; +import org.hl7.fhir.r4.model.CanonicalType; +import org.hl7.fhir.r4.model.Resource; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.*; + +import java.util.Arrays; +import java.util.List; +import java.util.Optional; + +public enum MhdProfile implements MhdConstants, Mhd421 { + + // Bundle Profiles V421 + + ITI65_MINIMAL_BUNDLE( + ITI65_MINIMAL_BUNDLE_PROFILE, + MinimalProvideDocumentBundle.class, + "IHE.MHD.Minimal.ProvideBundle"), + + ITI65_COMPREHENSIVE_BUNDLE( + ITI65_COMPREHENSIVE_BUNDLE_PROFILE, + ComprehensiveProvideDocumentBundle.class, + "IHE.MHD.Comprehensive.ProvideBundle"), + + ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE( + ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE_PROFILE, + UncontainedComprehensiveProvideDocumentBundle.class, + "IHE.MHD.UnContained.Comprehensive.ProvideBundle"), + + ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE( + ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE, + ProvideDocumentBundleResponse.class, + "IHE.MHD.ProvideDocumentBundleResponse"), + + ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE( + ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE_PROFILE, + FindDocumentListsResponseBundle.class, + "IHE.MHD.FindDocumentListsResponseMessage"), + + ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE( + ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE_PROFILE, + FindMinimalDocumentReferencesResponseBundle.class, + "IHE.MHD.FindDocumentReferencesResponseMessage" + ), + + ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE( + ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE_PROFILE, + FindComprehensiveDocumentReferencesResponseBundle.class, + "IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage"), + + // List profiles v421 + + MHD_LIST( + MHD_LIST_PROFILE, + MhdList.class, + "IHE.MHD.List"), + + COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST( + COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE, + ComprehensiveSubmissionSetList.class, + "IHE.MHD.Comprehensive.SubmissionSet"), + + UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST( + UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE, + UncontainedComprehensiveProvideDocumentBundle.class, + "IHE.MHD.UnContained.Comprehensive.SubmissionSet"), + + MINIMAL_SUBMISSIONSET_TYPE_LIST( + MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE, + MinimalSubmissionSetList.class, + "IHE.MHD.Minimal.SubmissionSet"), + + MINIMAL_FOLDER_TYPE_LIST( + MINIMAL_FOLDER_TYPE_LIST_PROFILE, + MinimalFolderList.class, + "IHE.MHD.Minimal.Folder"), + + COMPREHENSIVE_FOLDER_TYPE_LIST( + COMPREHENSIVE_FOLDER_TYPE_LIST_PROFILE, + ComprehensiveFolderList.class, + "IHE.MHD.Comprehensive.Folder"), + + // DocumentReference profiles v421 + + COMPREHENSIVE_DOCUMENT_REFERENCE( + COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE, + ComprehensiveDocumentReference.class, + "IHE.MHD.Comprehensive.DocumentReference"), + + UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE( + UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE, + UncontainedComprehensiveDocumentReference.class, + "IHE.MHD.UnContained.Comprehensive.DocumentReference"), + + MINIMAL_DOCUMENT_REFERENCE( + MINIMAL_DOCUMENT_REFERENCE_PROFILE, + MinimalDocumentReference.class, + "IHE.MHD.Minimal.DocumentReference"), + + SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE( + SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE_PROFILE, + SimplifiedPublishDocumentReference.class, + "IHE.MHD.SimplifiedPublish.DocumentReference"), + + // Parameters + + DOCUMENT_REFERENCE_PATCH_PARAMETERS( + DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE, + DocumentReferencePatchParameters.class, + "IHE.MHD.Patch.Parameters"), + + GENERATE_METADATA_PARAMETERS_IN( + GENERATE_METADATA_PARAMETERS_IN_PROFILE, + GenerateMetadataInParameters.class, + "IHE.MHD.GenerateMetadata.Parameters.In"), + + GENERATE_METADATA_PARAMETERS_OUT( + GENERATE_METADATA_PARAMETERS_OUT_PROFILE, + GenerateMetadataOutParameters.class, + "IHE.MHD.GenerateMetadata.Parameters.Out"), + + // Datatypes etc. + + DESIGNATION_TYPE( + DESIGNATION_TYPE_PROFILE, + null, + "ihe-designationType"), + + AUTHOR_ORG( + AUTHOR_ORG_PROFILE, + null, + "ihe-authorOrg"), + + INTENDED_RECIPIENT( + INTENDED_RECIPIENT_PROFILE, + null, + "ihe-intendedRecipient"), + + SOURCE_ID( + SOURCE_ID_PROFILE, + null, + "ihe-sourceId"), + + SUBMISSIONSET_UNIQUE_IDENTIFIER( + SUBMISSIONSET_UNIQUE_IDENTIFIER_PROFILE, + null, + "IHE.MHD.SubmissionSetUniqueIdIdentifier"), + + UNIQUE_ID_IDENTIFIER( + UNIQUE_ID_IDENTIFIER_PROFILE, + null, + "IHE.MHD.UniqueIdIdentifier"), + + ENTRY_UUID_IDENTIFIER( + ENTRY_UUID_IDENTIFIER_PROFILE, + null, + "IHE.MHD.EntryUUID.Identifier"); + + + @Getter + private final String url; + + private final Class<? extends IBaseResource> resourceClass; + + @Getter + private final String structureDefinitionName; + + + MhdProfile(String url, Class<? extends IBaseResource> resourceClass, String structureDefinitionName) { + this.url = url; + this.resourceClass = resourceClass; + this.structureDefinitionName = structureDefinitionName; + } + + /** + * Set the Meta/Profile of the resource + * + * @param resource FHIR resource + */ + public void setProfile(Resource resource) { + resource.getMeta().setProfile(List.of(new CanonicalType(url))); + } + + public boolean hasProfile(Resource resource) { + return resource.getMeta().hasProfile(url); + } + + public String getStructureDefinitionResourceName() { + return "StructureDefinition-" + structureDefinitionName + ".xml"; + } + + /** + * Registers all the profiles and implementing classes in the {@link FhirContext} + * + * @param fhirContext FhirContext + */ + public static void registerDefaultTypes(FhirContext fhirContext) { + Arrays.stream(MhdProfile.values()) + .filter(profile -> profile.resourceClass != null) + .forEach(profile -> fhirContext.setDefaultTypeForProfile(profile.url, profile.resourceClass)); + } + + public static Optional<MhdProfile> profileForResource(IBaseResource resource) { + return resource.getMeta().getProfile().stream() + .map(IPrimitiveType::getValue) + .findFirst() + .flatMap(MhdProfile::profileForUrl); + } + + public static Optional<MhdProfile> profileForUrl(String url) { + return Arrays.stream(MhdProfile.values()) + .filter(p -> p.url.equalsIgnoreCase(url)) + .findFirst(); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidator.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidator.java new file mode 100644 index 0000000000..5277e1ef5e --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidator.java @@ -0,0 +1,145 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.commons.ihe.fhir.mhd; + +import ca.uhn.fhir.context.FhirContext; +import ca.uhn.fhir.context.support.DefaultProfileValidationSupport; +import ca.uhn.fhir.context.support.IValidationSupport; +import ca.uhn.fhir.context.support.ValidationSupportContext; +import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException; +import ca.uhn.fhir.validation.FhirValidator; +import org.hl7.fhir.common.hapi.validation.support.*; +import org.hl7.fhir.common.hapi.validation.validator.FhirInstanceValidator; +import org.hl7.fhir.instance.model.api.IBaseResource; +import org.hl7.fhir.r4.model.CodeSystem; +import org.hl7.fhir.r4.model.StructureDefinition; +import org.hl7.fhir.r4.model.ValueSet; +import org.hl7.fhir.r5.utils.validation.constants.BestPracticeWarningLevel; +import org.openehealth.ipf.commons.ihe.fhir.FhirTransactionValidator; +import org.openehealth.ipf.commons.ihe.fhir.support.FhirUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * Validator for MHD transactions. + * + * @author Christian Ohr + * @since 4.8 + */ +public class MhdValidator extends FhirTransactionValidator.Support { + + private static final Logger log = LoggerFactory.getLogger(MhdValidator.class); + + private final FhirValidator validator; + + public MhdValidator(FhirContext fhirContext) { + log.info("Initializing Validator for MHD"); + var supportChain = new ValidationSupportChain(); + var rootValidator = new DefaultProfileValidationSupport(fhirContext); + supportChain.addValidationSupport(rootValidator); + supportChain.addValidationSupport(new CommonCodeSystemsTerminologyService(fhirContext)); + supportChain.addValidationSupport(new InMemoryTerminologyServerValidationSupport(fhirContext)); + + var prePopulatedSupport = new PrePopulatedValidationSupport(fhirContext); + loadStructureDefinitions(rootValidator).forEach(prePopulatedSupport::addStructureDefinition); + loadValueSets(fhirContext).forEach(prePopulatedSupport::addValueSet); + loadCodeSystems(fhirContext).forEach(prePopulatedSupport::addCodeSystem); + supportChain.addValidationSupport(prePopulatedSupport); + var instanceValidator = new FhirInstanceValidator(new CachingValidationSupport(supportChain)); + instanceValidator.setNoTerminologyChecks(false); + instanceValidator.setErrorForUnknownProfiles(true); + instanceValidator.setBestPracticeWarningLevel(BestPracticeWarningLevel.Hint); + instanceValidator.setAnyExtensionsAllowed(true); + + validator = fhirContext.newValidator() + .setValidateAgainstStandardSchema(false) + .setValidateAgainstStandardSchematron(false) + .setConcurrentBundleValidation(true) + .registerValidatorModule(instanceValidator); + + log.info("Initialized Validator for MHD bundles"); + } + + @Override + public void validateRequest(Object payload, Map<String, Object> parameters) { + var resource = (IBaseResource) payload; + var validationResult = validator.validateWithResult(resource); + if (!validationResult.isSuccessful()) { + var operationOutcome = validationResult.toOperationOutcome(); + throw FhirUtils.exception(UnprocessableEntityException::new, operationOutcome, "Validation Failed"); + } + } + + private Collection<StructureDefinition> loadStructureDefinitions(IValidationSupport rootValidator) { + return Arrays.stream(MhdProfile.values()) + .map(profile -> loadStructureDefinition( + profile.getStructureDefinitionResourceName(), + rootValidator, + profile.getUrl(), + profile.getStructureDefinitionName())) + .collect(Collectors.toList()); + } + + private StructureDefinition loadStructureDefinition(String fileName, + IValidationSupport rootValidation, + String url, + String structureDefinitionName) { + var structureDefinition = loadResource(fileName, StructureDefinition.class, rootValidation.getFhirContext()); + return structureDefinition.hasSnapshot() ? + structureDefinition : + (StructureDefinition) new SnapshotGeneratingValidationSupport(rootValidation.getFhirContext()).generateSnapshot( + new ValidationSupportContext(rootValidation), + structureDefinition, + url, + url, + structureDefinitionName); + } + + private Collection<ValueSet> loadValueSets(FhirContext fhirContext) { + var valueSets = new ArrayList<ValueSet>(); + valueSets.add(loadResource("ValueSet-DocumentReferenceStats.xml", ValueSet.class, fhirContext)); + valueSets.add(loadResource("ValueSet-formatcode.xml", ValueSet.class, fhirContext)); + valueSets.add(loadResource("ValueSet-MHDlistTypesVS.xml", ValueSet.class, fhirContext)); + valueSets.add(loadResource("ValueSet-MHDprovideFolderActions.xml", ValueSet.class, fhirContext)); + valueSets.add(loadResource("ValueSet-MHDprovidePatientActions.xml", ValueSet.class, fhirContext)); + return valueSets; + } + + private Collection<CodeSystem> loadCodeSystems(FhirContext fhirContext) { + var codeSystems = new ArrayList<CodeSystem>(); + codeSystems.add(loadResource("CodeSystem-MHDlistTypes.xml", CodeSystem.class, fhirContext)); + return codeSystems; + } + + private <T extends IBaseResource> T loadResource(String fileName, Class<T> resourceClass, FhirContext fhirContext) { + var prefix = "META-INF/profiles/v421/"; + var path = prefix + fileName; + try (var is = Thread.currentThread().getContextClassLoader().getResourceAsStream(path)) { + var parser = fhirContext.newXmlParser(); + return parser.parseResource(resourceClass, is); + } catch (IOException | NullPointerException e) { + throw new RuntimeException(e); + } + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdVersion.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdVersion.java new file mode 100644 index 0000000000..d351843da3 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdVersion.java @@ -0,0 +1,28 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd; + +/** + * Interface for deriving MHD version + */ +public interface MhdVersion { + + Version supportsVersion(); + + enum Version { + v320, v421 + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractProvideDocumentBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractProvideDocumentBundle.java new file mode 100644 index 0000000000..da0712cf44 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractProvideDocumentBundle.java @@ -0,0 +1,28 @@ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import org.hl7.fhir.r4.model.Binary; +import org.hl7.fhir.r4.model.Bundle; +import org.hl7.fhir.r4.model.Resource; + +public class AbstractProvideDocumentBundle<T extends AbstractProvideDocumentBundle<T>> extends Bundle { + + public T addEntry(String fullUrl, Resource resource) { + addEntry() + .setFullUrl(fullUrl) + .setRequest( + new Bundle.BundleEntryRequestComponent() + .setMethod(HTTPVerb.POST) + .setUrl(resource.getResourceType().name())) + .setResource(resource); + return (T)this; + } + + public T addFolder(String fullUrl, FolderList<?> folderList) { + return addEntry(fullUrl, folderList); + } + + public T addBinary(String fullUrl, Binary binary) { + return addEntry(fullUrl, binary); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveDocumentReference.java new file mode 100644 index 0000000000..f6bb5270c9 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveDocumentReference.java @@ -0,0 +1,83 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.*; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.COMPREHENSIVE_DOCUMENT_REFERENCE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE; + + +@ResourceDef(name = "DocumentReference", id = "mhdComprehensiveDocumentReference", profile = COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE) +public class ComprehensiveDocumentReference extends UncontainedComprehensiveDocumentReference<ComprehensiveDocumentReference> { + + public ComprehensiveDocumentReference() { + super(); + COMPREHENSIVE_DOCUMENT_REFERENCE.setProfile(this); + } + + public ComprehensiveDocumentReference addAuthor(Practitioner practioner) { + super.addAuthor(new Reference(practioner)); + return this; + } + + public ComprehensiveDocumentReference addAuthor(Patient patient) { + super.addAuthor(new Reference(patient)); + return this; + } + + public ComprehensiveDocumentReference addAuthor(PractitionerRole practitionerRole) { + super.addAuthor(new Reference(practitionerRole)); + return this; + } + + public ComprehensiveDocumentReference addAuthor(Organization organization) { + super.addAuthor(new Reference(organization)); + return this; + } + + public ComprehensiveDocumentReference addAuthor(Device device) { + super.addAuthor(new Reference(device)); + return this; + } + + public ComprehensiveDocumentReference addAuthor(RelatedPerson relatedPerson) { + super.addAuthor(new Reference(relatedPerson)); + return this; + } + + public ComprehensiveDocumentReference setAuthenticator(Practitioner practitioner) { + super.setAuthenticator(new Reference(practitioner)); + return this; + } + + public ComprehensiveDocumentReference setAuthenticator(PractitionerRole practitionerRole) { + super.setAuthenticator(new Reference(practitionerRole)); + return this; + } + + public ComprehensiveDocumentReference setAuthenticator(Organization organization) { + super.setAuthenticator(new Reference(organization)); + return this; + } + + public ComprehensiveDocumentReference setSourcePatientInfo(Patient patient) { + getContext().setSourcePatientInfo(new Reference(patient)); + return this; + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveFolderList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveFolderList.java new file mode 100644 index 0000000000..891ee59d6c --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveFolderList.java @@ -0,0 +1,30 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.COMPREHENSIVE_FOLDER_TYPE_LIST; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.COMPREHENSIVE_FOLDER_TYPE_LIST_PROFILE; + +@ResourceDef(name = "List", id = "mhdComprehensiveFolder", profile = COMPREHENSIVE_FOLDER_TYPE_LIST_PROFILE) +public class ComprehensiveFolderList extends FolderList<ComprehensiveFolderList> { + + public ComprehensiveFolderList() { + super(); + COMPREHENSIVE_FOLDER_TYPE_LIST.setProfile(this); + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveProvideDocumentBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveProvideDocumentBundle.java new file mode 100644 index 0000000000..d785f3d555 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveProvideDocumentBundle.java @@ -0,0 +1,67 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Binary; +import org.hl7.fhir.r4.model.Bundle; +import org.hl7.fhir.r4.model.Resource; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; +import org.openehealth.ipf.commons.ihe.fhir.support.FhirUtils; + +import java.util.List; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_COMPREHENSIVE_BUNDLE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_COMPREHENSIVE_BUNDLE_PROFILE; + +@ResourceDef(name = "Bundle", id = "mhdComprehensiveProvideDocumentBundle", profile = ITI65_COMPREHENSIVE_BUNDLE_PROFILE) +public class ComprehensiveProvideDocumentBundle extends AbstractProvideDocumentBundle<ComprehensiveProvideDocumentBundle> implements Mhd421 { + + public ComprehensiveProvideDocumentBundle() { + super(); + setType(BundleType.TRANSACTION); + ITI65_COMPREHENSIVE_BUNDLE.setProfile(this); + } + + public ComprehensiveProvideDocumentBundle addSubmissionSetList(String fullUrl, ComprehensiveSubmissionSetList submissionSetList) { + if (FhirUtils.getOptionalResource(this, ComprehensiveSubmissionSetList.class).isPresent()) { + throw new RuntimeException("Already added SubmissionSet List"); + } + return addEntry(fullUrl, submissionSetList); + } + + public ComprehensiveProvideDocumentBundle addDocumentReference(String fullUrl, ComprehensiveDocumentReference documentReference) { + return addEntry(fullUrl, documentReference); + } + + public ComprehensiveSubmissionSetList getSubmissionSet() { + return FhirUtils.getResource(this, ComprehensiveSubmissionSetList.class); + } + + public List<ComprehensiveDocumentReference> getDocumentReferences() { + return FhirUtils.getResources(this, ComprehensiveDocumentReference.class); + } + + public List<Binary> getBinaries() { + return FhirUtils.getResources(this, Binary.class); + } + + public List<FolderList> getFolders() { + return FhirUtils.getResources(this, FolderList.class); + } + + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveSubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveSubmissionSetList.java new file mode 100644 index 0000000000..9810e28f65 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveSubmissionSetList.java @@ -0,0 +1,30 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE; + +@ResourceDef(name = "List", id = "mhdComprehensiveSubmissionSet", profile = COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE) +public class ComprehensiveSubmissionSetList extends UncontainedComprehensiveSubmissionSetList<ComprehensiveSubmissionSetList> { + + public ComprehensiveSubmissionSetList() { + super(); + COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST.setProfile(this); + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/DocumentReferencePatchParameters.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/DocumentReferencePatchParameters.java new file mode 100644 index 0000000000..4fe0ae484e --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/DocumentReferencePatchParameters.java @@ -0,0 +1,31 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Parameters; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.DOCUMENT_REFERENCE_PATCH_PARAMETERS; +@ResourceDef(name = "Parameters", id = "mhdDocumentReferencePatchParameters", profile = DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE) +public class DocumentReferencePatchParameters extends Parameters { + + public DocumentReferencePatchParameters() { + super(); + DOCUMENT_REFERENCE_PATCH_PARAMETERS.setProfile(this); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/EntryUuidIdentifier.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/EntryUuidIdentifier.java new file mode 100644 index 0000000000..a4e830bd38 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/EntryUuidIdentifier.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.DatatypeDef; +import org.hl7.fhir.r4.model.Identifier; +import org.openehealth.ipf.commons.core.URN; +import org.openehealth.ipf.commons.ihe.fhir.Constants; + +import java.util.UUID; + +// https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier + +@DatatypeDef(name = "EntryUuidIdentifier", profileOf = Identifier.class) +public class EntryUuidIdentifier extends Identifier { + + public EntryUuidIdentifier() { + super(); + setUse(IdentifierUse.OFFICIAL); + setSystem(Constants.URN_IETF_RFC_3986); + } + + public EntryUuidIdentifier(UUID uuid) { + this(); + setValue(uuid); + } + + public EntryUuidIdentifier setValue(UUID uuid) { + setValue(new URN(uuid).toString()); + return this; + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindComprehensiveDocumentReferencesResponseBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindComprehensiveDocumentReferencesResponseBundle.java new file mode 100644 index 0000000000..3460fcb36d --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindComprehensiveDocumentReferencesResponseBundle.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Bundle; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; + +import java.util.List; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE_PROFILE; +import static org.openehealth.ipf.commons.ihe.fhir.support.FhirUtils.getResources; + +@ResourceDef(name = "Bundle", id = "mhdComprehensiveDocumentReferenceResponseBundle", profile = ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE_PROFILE) +public class FindComprehensiveDocumentReferencesResponseBundle extends Bundle implements Mhd421 { + + public FindComprehensiveDocumentReferencesResponseBundle() { + super(); + setType(BundleType.SEARCHSET); + ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE.setProfile(this); + } + + public List<ComprehensiveDocumentReference> getComprehensiveDocumentReferences() { + return getResources(this, ComprehensiveDocumentReference.class); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindDocumentListsResponseBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindDocumentListsResponseBundle.java new file mode 100644 index 0000000000..a53ac18931 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindDocumentListsResponseBundle.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Bundle; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; + +import java.util.List; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE_PROFILE; +import static org.openehealth.ipf.commons.ihe.fhir.support.FhirUtils.getResources; + +@ResourceDef(name = "Bundle", id = "mhdSubmissionSetListResponseBundle", profile = ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE_PROFILE) +public class FindDocumentListsResponseBundle extends Bundle implements Mhd421 { + + public FindDocumentListsResponseBundle() { + super(); + setType(BundleType.SEARCHSET); + ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE.setProfile(this); + } + + public List<SubmissionSetList> getSubmissionSets() { + return getResources(this, SubmissionSetList.class); + } + + public List<FolderList> getFolders() { + return getResources(this, FolderList.class); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindMinimalDocumentReferencesResponseBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindMinimalDocumentReferencesResponseBundle.java new file mode 100644 index 0000000000..a2c815d3aa --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindMinimalDocumentReferencesResponseBundle.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Bundle; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; + +import java.util.List; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE_PROFILE; +import static org.openehealth.ipf.commons.ihe.fhir.support.FhirUtils.getResources; + +@ResourceDef(name = "Bundle", id = "mhdMinimalDocumentReferenceResponseBundle", profile = ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE_PROFILE) +public class FindMinimalDocumentReferencesResponseBundle extends Bundle implements Mhd421 { + + public FindMinimalDocumentReferencesResponseBundle() { + super(); + setType(BundleType.SEARCHSET); + ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE.setProfile(this); + } + + public List<MinimalDocumentReference> getMinimalDocumentReferences() { + return getResources(this, MinimalDocumentReference.class); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FolderList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FolderList.java new file mode 100644 index 0000000000..c5c821e553 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FolderList.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import org.hl7.fhir.r4.model.CodeableConcept; +import org.hl7.fhir.r4.model.Coding; +import org.ietf.jgss.Oid; + +public class FolderList<T extends FolderList<T>> extends MhdList<T> { + + public FolderList() { + super(); + setCode(new CodeableConcept().addCoding(FOLDER_LIST_CODING)); + } + + /** + * Adds an identifier to be a EntryUuid as required by the profile + * @param system system + * @param value value + * @return this object + */ + @SuppressWarnings("unchecked") + public T setUniqueIdIdentifier(String system, String value) { + getIdentifier().add(new UniqueIdIdentifier() + .setSystem(system) + .setValue(value)); + return (T)this; + } + + private static final Coding FOLDER_LIST_CODING = new Coding( + "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", + "folder", + "folder" + ); +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataInParameters.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataInParameters.java new file mode 100644 index 0000000000..a0204e3e18 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataInParameters.java @@ -0,0 +1,32 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Parameters; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.GENERATE_METADATA_PARAMETERS_IN; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.GENERATE_METADATA_PARAMETERS_IN_PROFILE; + +@ResourceDef(name = "Parameters", id = "mhdDocumentReferencePatchParameters", profile = GENERATE_METADATA_PARAMETERS_IN_PROFILE) +public class GenerateMetadataInParameters extends Parameters { + + public GenerateMetadataInParameters() { + super(); + GENERATE_METADATA_PARAMETERS_IN.setProfile(this); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataOutParameters.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataOutParameters.java new file mode 100644 index 0000000000..f225716969 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataOutParameters.java @@ -0,0 +1,32 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Parameters; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.GENERATE_METADATA_PARAMETERS_OUT; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.GENERATE_METADATA_PARAMETERS_OUT_PROFILE; + +@ResourceDef(name = "Parameters", id = "mhdGenerateMetadataOutParameters", profile = GENERATE_METADATA_PARAMETERS_OUT_PROFILE) +public class GenerateMetadataOutParameters extends Parameters { + + public GenerateMetadataOutParameters() { + super(); + GENERATE_METADATA_PARAMETERS_OUT.setProfile(this); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MhdList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MhdList.java new file mode 100644 index 0000000000..3f25b986e8 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MhdList.java @@ -0,0 +1,93 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.Child; +import ca.uhn.fhir.model.api.annotation.Description; +import ca.uhn.fhir.model.api.annotation.Extension; +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import ca.uhn.fhir.util.ElementUtil; +import org.hl7.fhir.r4.model.CodeableConcept; +import org.hl7.fhir.r4.model.Identifier; +import org.hl7.fhir.r4.model.ListResource; +import org.ietf.jgss.Oid; +import org.openehealth.ipf.commons.core.URN; +import org.openehealth.ipf.commons.ihe.fhir.Constants; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; + +import java.util.Date; +import java.util.UUID; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MHD_LIST_PROFILE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MHD_LIST; + +@ResourceDef(name = "List", id = "mhdList", profile = MHD_LIST_PROFILE) +public class MhdList<T extends MhdList<T>> extends ListResource implements Mhd421 { + + public MhdList() { + super(); + setDate(new Date()); + setStatus(ListStatus.CURRENT); + setMode(ListMode.WORKING); + MHD_LIST.setProfile(this); + } + + /** + * Defines what this List is for (system = <a href="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes">...</a>) + * <ul> + * <li>folder : Folder as a FHIR List</li> + * <li>submissionset : SubmissionSet as a FHIR List</li> + * </ul> + */ + @Child(name = "designationType") + @Extension(url = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType", definedLocally = false) + @Description(shortDefinition = "Clinical code of the List") + private CodeableConcept designationType; + + @Override + public boolean isEmpty() { + return super.isEmpty() && ElementUtil.isEmpty(designationType); + } + + public CodeableConcept getDesignationType() { + if (designationType == null) { + designationType = new CodeableConcept(); + } + return designationType; + } + + public T setDesignationType(CodeableConcept designationType) { + this.designationType = designationType; + return (T)this; + } + + public boolean hasDesignationType() { + return this.designationType != null && !this.designationType.isEmpty(); + } + + + /** + * Adds an identifier to be a EntryUuid as required by the profile + * @param uuid uuid + * @return this object + */ + @SuppressWarnings("unchecked") + public T setEntryUuidIdentifier(UUID uuid) { + getIdentifier().add(new EntryUuidIdentifier(uuid)); + return (T)this; + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalDocumentReference.java new file mode 100644 index 0000000000..eabfb4941a --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalDocumentReference.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.DocumentReference; +import org.hl7.fhir.r4.model.Enumerations; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; + +import java.util.Date; +import java.util.UUID; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_DOCUMENT_REFERENCE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_DOCUMENT_REFERENCE_PROFILE; + +@ResourceDef(name = "DocumentReference", id = "mhdMinimalDocumentReference", profile = MINIMAL_DOCUMENT_REFERENCE_PROFILE) +public class MinimalDocumentReference<T extends MinimalDocumentReference<T>> extends DocumentReference implements Mhd421 { + + public MinimalDocumentReference() { + super(); + MINIMAL_DOCUMENT_REFERENCE.setProfile(this); + setDate(new Date()); + setStatus(Enumerations.DocumentReferenceStatus.CURRENT); + } + + /** + * Sets the MasterIdentifier to be a Unique Id as required by the profile + * + * @param system system value + * @param value identifier value + * @return this object + */ + @SuppressWarnings("unchecked") + public T setUniqueIdIdentifier(String system, String value) { + setMasterIdentifier(new UniqueIdIdentifier() + .setSystem(system) + .setValue(value)); + return (T)this; + } + + /** + * Adds an identifier to be a EntryUuid as required by the profile + * @param uuid UUID + * @return this object + */ + @SuppressWarnings("unchecked") + public T setEntryUuidIdentifier(UUID uuid) { + getIdentifier().add(new EntryUuidIdentifier(uuid)); + return (T)this; + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalFolderList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalFolderList.java new file mode 100644 index 0000000000..608dc794bf --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalFolderList.java @@ -0,0 +1,30 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_FOLDER_TYPE_LIST; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_FOLDER_TYPE_LIST_PROFILE; + +@ResourceDef(name = "List", id = "mhdMinimalFolder", profile = MINIMAL_FOLDER_TYPE_LIST_PROFILE) +public class MinimalFolderList extends FolderList<MinimalFolderList> { + + public MinimalFolderList() { + super(); + MINIMAL_FOLDER_TYPE_LIST.setProfile(this); + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalProvideDocumentBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalProvideDocumentBundle.java new file mode 100644 index 0000000000..c1cec6536f --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalProvideDocumentBundle.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Binary; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; +import org.openehealth.ipf.commons.ihe.fhir.support.FhirUtils; + +import java.util.List; +import java.util.Optional; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_MINIMAL_BUNDLE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_MINIMAL_BUNDLE_PROFILE; + + +@ResourceDef(name = "Bundle", id = "mhdMinimalBundle", profile = ITI65_MINIMAL_BUNDLE_PROFILE) +public class MinimalProvideDocumentBundle extends AbstractProvideDocumentBundle<MinimalProvideDocumentBundle> implements Mhd421 { + + public MinimalProvideDocumentBundle() { + super(); + setType(BundleType.TRANSACTION); + ITI65_MINIMAL_BUNDLE.setProfile(this); + } + + public MinimalSubmissionSetList getSubmissionSet() { + return FhirUtils.getResource(this, MinimalSubmissionSetList.class); + } + + public List<? extends MinimalDocumentReference> getDocumentReferences() { + return FhirUtils.getResources(this, MinimalDocumentReference.class); + } + + public Optional<Binary> getBinary() { + return FhirUtils.getOptionalResource(this, Binary.class); + } + + public List<FolderList> getFolders() { + return FhirUtils.getResources(this, FolderList.class); + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalSubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalSubmissionSetList.java new file mode 100644 index 0000000000..2f13447fb0 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalSubmissionSetList.java @@ -0,0 +1,30 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_SUBMISSIONSET_TYPE_LIST; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE; + +@ResourceDef(name = "List", id = "mhdMinimalSubmissionSet", profile = MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE) +public class MinimalSubmissionSetList extends SubmissionSetList<MinimalSubmissionSetList> { + + public MinimalSubmissionSetList() { + super(); + MINIMAL_SUBMISSIONSET_TYPE_LIST.setProfile(this); + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ProvideDocumentBundleResponse.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ProvideDocumentBundleResponse.java new file mode 100644 index 0000000000..8729bf4ab5 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ProvideDocumentBundleResponse.java @@ -0,0 +1,34 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Bundle; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE; + +@ResourceDef(name = "Bundle", id = "mhdMinimalBundle", profile = ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE) +public class ProvideDocumentBundleResponse extends Bundle implements Mhd421 { + + public ProvideDocumentBundleResponse() { + super(); + setType(BundleType.TRANSACTIONRESPONSE); + ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE.setProfile(this); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SimplifiedPublishDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SimplifiedPublishDocumentReference.java new file mode 100644 index 0000000000..071696387a --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SimplifiedPublishDocumentReference.java @@ -0,0 +1,71 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Attachment; +import org.hl7.fhir.r4.model.DocumentReference; +import org.hl7.fhir.r4.model.Enumerations; +import org.hl7.fhir.r4.model.Identifier; + +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.Base64; +import java.util.Date; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE_PROFILE; + +@ResourceDef(name = "DocumentReference", id = "mhdSimplifiedPublishDocumentReference", profile = SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE_PROFILE) +public class SimplifiedPublishDocumentReference extends DocumentReference { + + public SimplifiedPublishDocumentReference() { + super(); + SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE.setProfile(this); + setDate(new Date()); + setStatus(Enumerations.DocumentReferenceStatus.CURRENT); + } + + /** + * Sets the MasterIdentifier to be a Unique Id as required by the profile + * + * @param system system value + * @param value identifier value + * @return this object + */ + public SimplifiedPublishDocumentReference setUniqueIdIdentifier(String system, String value) { + setMasterIdentifier(new Identifier() + .setUse(Identifier.IdentifierUse.USUAL) + .setSystem(system) + .setValue(value)); + return this; + } + + public SimplifiedPublishDocumentReference setContent(String contentType, byte[] content) { + try { + addContent().setAttachment(new Attachment() + .setContentType(contentType) + .setData(Base64.getEncoder().encode(content)) + .setSize(content.length) + .setHash(MessageDigest.getInstance("SHA-1").digest(content))); + return this; + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException(e); // should not occur + } + } + + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/Source.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/Source.java new file mode 100644 index 0000000000..2435b41dc9 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/Source.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.Child; +import ca.uhn.fhir.model.api.annotation.DatatypeDef; +import ca.uhn.fhir.model.api.annotation.Extension; +import ca.uhn.fhir.util.ElementUtil; +import lombok.Getter; +import org.hl7.fhir.r4.model.Reference; + +@Getter +@DatatypeDef(name = "Source", profileOf = Reference.class) +public class Source extends Reference { + + @Child(name = "authorOrg") + @Extension(url = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg", definedLocally = false) + private Reference authorOrg; + + @Override + public boolean isEmpty() { + return super.isEmpty() && ElementUtil.isEmpty(authorOrg, reference); + } + + public Source setAuthorOrg(Reference authorOrg) { + this.authorOrg = authorOrg; + return this; + } + + @Override + public Source setReference(String value) { + super.setReference(value); + return this; + } + + public boolean hasAuthorOrg() { + return authorOrg != null && !authorOrg.isEmpty(); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java new file mode 100644 index 0000000000..6ca4b4c97c --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java @@ -0,0 +1,148 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.Child; +import ca.uhn.fhir.model.api.annotation.Description; +import ca.uhn.fhir.model.api.annotation.Extension; +import ca.uhn.fhir.util.ElementUtil; +import org.hl7.fhir.r4.model.CodeableConcept; +import org.hl7.fhir.r4.model.Coding; +import org.hl7.fhir.r4.model.Identifier; +import org.hl7.fhir.r4.model.Reference; +import org.ietf.jgss.Oid; +import org.openehealth.ipf.commons.core.URN; + +import java.util.ArrayList; +import java.util.List; + +public class SubmissionSetList<T extends SubmissionSetList<T>> extends MhdList<T> { + + public SubmissionSetList() { + super(); + setCode(new CodeableConcept().addCoding(SUBMISSIONSET_LIST_CODING)); + } + + @Child(name = "sourceId") + @Extension(url = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId", definedLocally = false) + @Description(shortDefinition = "Publisher organization identity of the SubmissionSet") + private Identifier sourceId; + + @Child(name = "intendedRecipient", max = Child.MAX_UNLIMITED) + @Extension(url = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient", definedLocally = false) + @Description(shortDefinition = "Intended recipient of the SubmissionSet") + private List<Reference> intendedRecipient; + + @Override + public boolean isEmpty() { + return super.isEmpty() && ElementUtil.isEmpty(sourceId, intendedRecipient); + } + + public Identifier getSourceId() { + if (sourceId == null) { + sourceId = new Identifier(); + } + return sourceId; + } + + @SuppressWarnings("unchecked") + public T setSourceId(Identifier sourceId) { + this.sourceId = sourceId; + return (T)this; + } + + public T setSourceId(Oid oid) { + this.sourceId = new Identifier().setValue(new URN(oid).toString()); + return (T)this; + } + + /** + * Adds an identifier to be a UniqueId as required by the profile + * @param oid oid + * @return this object + */ + @SuppressWarnings("unchecked") + public T setSubmissionSetUniqueIdIdentifier(Oid oid) { + getIdentifier().add(new SubmissionSetUniqueIdIdentifier(oid)); + return (T)this; + } + + public boolean hasSourceId() { + return this.sourceId != null && !this.sourceId.isEmpty(); + } + + public List<Reference> getCitizenship() { + if (intendedRecipient == null) { + intendedRecipient = new ArrayList<>(); + } + return intendedRecipient; + } + + public Reference getIntendedRecipientFirstRep() { + return this.getCitizenship().get(0); + } + + @SuppressWarnings("unchecked") + public T setIntendedRecipient(List<Reference> intendedRecipient) { + this.intendedRecipient = intendedRecipient; + return (T)this; + } + + public Reference addIntendedRecipient() { + var r = new Reference(); + if (this.intendedRecipient == null) + this.intendedRecipient = new ArrayList<>(); + this.intendedRecipient.add(r); + return r; + } + + @SuppressWarnings("unchecked") + public T addIntendedRecipient(Reference r) { + if (r == null) + return (T)this; + if (this.intendedRecipient == null) + this.intendedRecipient = new ArrayList<>(); + this.intendedRecipient.add(r); + return (T)this; + } + + @SuppressWarnings("unchecked") + public T setSource(Source value) { + super.setSource(value); + return (T)this; + } + + @SuppressWarnings("unchecked") + public T linkDocumentReference(String fullUrl) { + addEntry().setItem(new Reference(fullUrl)); + return (T)this; + } + + public boolean hasIntendedRecipient() { + if (this.intendedRecipient == null) + return false; + for (var item : this.intendedRecipient) + if (!item.isEmpty()) + return true; + return false; + } + + private static final Coding SUBMISSIONSET_LIST_CODING = new Coding( + "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", + "submissionset", + "submissionset" + ); +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetUniqueIdIdentifier.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetUniqueIdIdentifier.java new file mode 100644 index 0000000000..dcbf2a4729 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetUniqueIdIdentifier.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.DatatypeDef; +import org.hl7.fhir.r4.model.Identifier; +import org.ietf.jgss.Oid; +import org.openehealth.ipf.commons.core.URN; +import org.openehealth.ipf.commons.ihe.fhir.Constants; + +// https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier + +@DatatypeDef(name = "SubmissionSetUniqueIdIdentifier", profileOf = Identifier.class) +public class SubmissionSetUniqueIdIdentifier extends UniqueIdIdentifier { + + public SubmissionSetUniqueIdIdentifier() { + super(); + setSystem(Constants.URN_IETF_RFC_3986); + } + + public SubmissionSetUniqueIdIdentifier(Oid oid) { + this(); + setValue(oid); + } + + public SubmissionSetUniqueIdIdentifier setValue(Oid oid) { + setValue(new URN(oid).toString()); + return this; + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveDocumentReference.java new file mode 100644 index 0000000000..006b9276e7 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveDocumentReference.java @@ -0,0 +1,31 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE; + +@ResourceDef(name = "DocumentReference", id = "mhdUncontainedComprehensiveDocumentReference", profile = UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE) +public class UncontainedComprehensiveDocumentReference<T extends UncontainedComprehensiveDocumentReference<T>> extends MinimalDocumentReference<T> { + + public UncontainedComprehensiveDocumentReference() { + super(); + UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE.setProfile(this); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveProvideDocumentBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveProvideDocumentBundle.java new file mode 100644 index 0000000000..aebc8e528f --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveProvideDocumentBundle.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.Binary; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; +import org.openehealth.ipf.commons.ihe.fhir.support.FhirUtils; + +import java.util.List; +import java.util.Optional; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE_PROFILE; + +@ResourceDef(name = "Bundle", id = "mhdUncontainedComprehensiveBundle", profile = ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE_PROFILE) +public class UncontainedComprehensiveProvideDocumentBundle + extends AbstractProvideDocumentBundle<UncontainedComprehensiveProvideDocumentBundle> + implements Mhd421 { + + public UncontainedComprehensiveProvideDocumentBundle() { + super(); + setType(BundleType.TRANSACTION); + ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE.setProfile(this); + } + + public UncontainedComprehensiveSubmissionSetList getSubmissionSet() { + return FhirUtils.getResource(this, UncontainedComprehensiveSubmissionSetList.class); + } + + public List<UncontainedComprehensiveDocumentReference> getDocumentReferences() { + return FhirUtils.getResources(this, UncontainedComprehensiveDocumentReference.class); + } + + public Optional<Binary> getBinary() { + return FhirUtils.getOptionalResource(this, Binary.class); + } + + public List<FolderList> getFolders() { + return FhirUtils.getResources(this, FolderList.class); + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveSubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveSubmissionSetList.java new file mode 100644 index 0000000000..14faa37ec0 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveSubmissionSetList.java @@ -0,0 +1,30 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.ResourceDef; + +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE; + +@ResourceDef(name = "List", id = "mhdUncontainedComprehensiveSubmissionSet", profile = UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE) +public class UncontainedComprehensiveSubmissionSetList<T extends UncontainedComprehensiveSubmissionSetList<T>> extends SubmissionSetList<T> { + + public UncontainedComprehensiveSubmissionSetList() { + super(); + UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST.setProfile(this); + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UniqueIdIdentifier.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UniqueIdIdentifier.java new file mode 100644 index 0000000000..03c6455a4e --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UniqueIdIdentifier.java @@ -0,0 +1,31 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import ca.uhn.fhir.model.api.annotation.DatatypeDef; +import lombok.Getter; +import org.hl7.fhir.r4.model.Identifier; + +// https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier + +@DatatypeDef(name = "UniqueIdIdentifier", profileOf = Identifier.class) +public class UniqueIdIdentifier extends Identifier { + + public UniqueIdIdentifier() { + super(); + setUse(IdentifierUse.USUAL); + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Comprehensive_DocumentManifest.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Comprehensive_DocumentManifest.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Comprehensive_DocumentManifest.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Comprehensive_DocumentManifest.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Comprehensive_List.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Comprehensive_List.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Comprehensive_List.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Comprehensive_List.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Minimal_DocumentManifest.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Minimal_DocumentManifest.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Minimal_DocumentManifest.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Minimal_DocumentManifest.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Minimal_List.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Minimal_List.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Minimal_List.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Minimal_List.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Provide_Comprehensive_DocumentBundle.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Provide_Comprehensive_DocumentBundle.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Provide_Comprehensive_DocumentBundle.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Provide_Comprehensive_DocumentBundle.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Provide_Comprehensive_DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Provide_Comprehensive_DocumentReference.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Provide_Comprehensive_DocumentReference.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Provide_Comprehensive_DocumentReference.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Provide_Minimal_DocumentBundle.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Provide_Minimal_DocumentBundle.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Provide_Minimal_DocumentBundle.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Provide_Minimal_DocumentBundle.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Provide_Minimal_DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Provide_Minimal_DocumentReference.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Provide_Minimal_DocumentReference.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Provide_Minimal_DocumentReference.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Query_Comprehensive_DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Query_Comprehensive_DocumentReference.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Query_Comprehensive_DocumentReference.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Query_Comprehensive_DocumentReference.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Query_Minimal_DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Query_Minimal_DocumentReference.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/IHE_MHD_Query_Minimal_DocumentReference.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/IHE_MHD_Query_Minimal_DocumentReference.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/MHD-DocumentManifest.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/MHD-DocumentManifest.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/MHD-DocumentManifest.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/MHD-DocumentManifest.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/MHD-DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/MHD-DocumentReference.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/MHD-DocumentReference.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/MHD-DocumentReference.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/MHD-List.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/MHD-List.xml similarity index 100% rename from commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/320/MHD-List.xml rename to commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v320/MHD-List.xml diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/CodeSystem-MHDlistTypes.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/CodeSystem-MHDlistTypes.xml new file mode 100644 index 0000000000..e577e02bf0 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/CodeSystem-MHDlistTypes.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<CodeSystem xmlns="http://hl7.org/fhir"> + <id value="MHDlistTypes"/> + <text> + <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p>This code system <code>https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes</code> defines the following codes:</p><table class="codes"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td></tr><tr><td style="white-space:nowrap">folder<a name="MHDlistTypes-folder"> </a></td><td>Folder as a FHIR List</td></tr><tr><td style="white-space:nowrap">submissionset<a name="MHDlistTypes-submissionset"> </a></td><td>SubmissionSet as a FHIR List</td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <version value="4.2.1"/> + <name value="MHDlistTypes"/> + <title value="MHD List Types"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="To use the List resource for two different use-cases we define a code-system with the types of List needed in MHD"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <caseSensitive value="true"/> + <content value="complete"/> + <count value="2"/> + <concept> + <code value="folder"/> + <display value="Folder as a FHIR List"/> + </concept> + <concept> + <code value="submissionset"/> + <display value="SubmissionSet as a FHIR List"/> + </concept> +</CodeSystem> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.xml new file mode 100644 index 0000000000..0c96acc469 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.xml @@ -0,0 +1,3208 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Comprehensive.DocumentReference"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.DocumentReference-definitions.html#DocumentReference">DocumentReference</a><a name="DocumentReference"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference.html">UnContainedComprehensiveDocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.DocumentReference-definitions.html#DocumentReference.author">author</a><a name="DocumentReference.author"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a href="http://hl7.org/fhir/R4/practitionerrole.html">PractitionerRole</a> | <a href="http://hl7.org/fhir/R4/organization.html">Organization</a> | <a href="http://hl7.org/fhir/R4/device.html">Device</a> | <a href="http://hl7.org/fhir/R4/patient.html">Patient</a> | <a href="http://hl7.org/fhir/R4/relatedperson.html">RelatedPerson</a>)<a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html"> {</a><a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html" title="The reference is a local reference to a contained resource.">c</a><a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html">}</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who and/or what authored the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.DocumentReference-definitions.html#DocumentReference.authenticator">authenticator</a><a name="DocumentReference.authenticator"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a href="http://hl7.org/fhir/R4/practitionerrole.html">PractitionerRole</a> | <a href="http://hl7.org/fhir/R4/organization.html">Organization</a>)<a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html"> {</a><a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html" title="The reference is a local reference to a contained resource.">c</a><a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html">}</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who/what authenticated the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.DocumentReference-definitions.html#DocumentReference.context">context</a><a name="DocumentReference.context"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.DocumentReference-definitions.html#DocumentReference.context.sourcePatientInfo">sourcePatientInfo</a><a name="DocumentReference.context.sourcePatientInfo"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/patient.html">Patient</a>)<a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html"> {</a><a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html" title="The reference is a local reference to a contained resource.">c</a><a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html">}</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Patient demographics from source</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"/> + <version value="4.2.1"/> + <name value="ComprehensiveDocumentReference"/> + <title value="MHD DocumentReference Comprehensive"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the DocumentReference resource for MHD Comprehensive Option with Contained (not UnContained), compatible with XDS-on-FHIR and XCA use.
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR DocumentReference implementation of the 
- ebRIM implementation at [3:4.2.3.2 Document Entry](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.2).
- with use-cases and constraints found in [3:4.3 Additional Document Sharing Requirements](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="workflow"/> + <uri value="http://hl7.org/fhir/workflow"/> + <name value="Workflow Pattern"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <uri value="http://hl7.org/fhir/composition"/> + <name value="FHIR Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="xds"/> + <uri value="http://ihe.net/xds"/> + <name value="XDS metadata equivalent"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <uri value="XDS"/> + <name value="XDS and MHD Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="DocumentReference"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.DocumentReference"/> + <derivation value="constraint"/> + <snapshot> + <element id="DocumentReference"> + <path value="DocumentReference"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="DocumentReference.id"> + <path value="DocumentReference.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta"> + <path value="DocumentReference.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.id"> + <path value="DocumentReference.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.meta.extension"> + <path value="DocumentReference.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.meta.versionId"> + <path value="DocumentReference.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.lastUpdated"> + <path value="DocumentReference.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.source"> + <path value="DocumentReference.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.profile"> + <path value="DocumentReference.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.limitedMetadata"/> + </mapping> + </element> + <element id="DocumentReference.meta.security"> + <path value="DocumentReference.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="DocumentReference.meta.tag"> + <path value="DocumentReference.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="DocumentReference.implicitRules"> + <path value="DocumentReference.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="DocumentReference.language"> + <path value="DocumentReference.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="DocumentReference.text"> + <path value="DocumentReference.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="DocumentReference.contained"> + <path value="DocumentReference.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.extension"> + <path value="DocumentReference.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.modifierExtension"> + <path value="DocumentReference.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="DocumentReference.masterIdentifier"> + <path value="DocumentReference.masterIdentifier"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <comment value="CDA Document Id extension and root."/> + <requirements value="The structure and format of this Id shall be consistent with the specification corresponding to the formatCode attribute. (e.g. for a DICOM standard document a 64-character numeric UID, for an HL7 CDA format a serialization of the CDA Document Id extension and root in the form "oid^extension", where OID is a 64 digits max, and the Id is a 16 UTF-8 char max. If the OID is coded without the extension then the '^' character shall not be included.)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.masterIdentifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.uniqueId"/> + </mapping> + </element> + <element id="DocumentReference.identifier"> + <path value="DocumentReference.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Other identifiers for the document"/> + <definition value="Other identifiers associated with the document, including version independent identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.identifier"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-16?"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id / .setId"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.entryUUID"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.entryUUID"/> + </mapping> + </element> + <element id="DocumentReference.identifier:entryUUID"> + <path value="DocumentReference.identifier"/> + <sliceName value="entryUUID"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="DocumentReference.status"> + <path value="DocumentReference.status"/> + <short value="current | superseded | entered-in-error"/> + <definition value="The status of this document reference."/> + <comment value="This is the status of the DocumentReference object, which might be independent from the docStatus element.

This element is labeled as a modifier because the status contains the codes that mark the document or reference as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/DocumentReferenceStats"/> + </binding> + <mapping> + <identity value="workflow"/> + <map value="Event.status"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-19"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="interim: .completionCode="IN" & ./statusCode[isNormalDatatype()]="active"; final: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and not(./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct()]); amended: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and ./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct() and statusCode="completed"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]="obsolete""/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.availabilityStatus"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.availabilityStatus"/> + </mapping> + </element> + <element id="DocumentReference.docStatus"> + <path value="DocumentReference.docStatus"/> + <short value="preliminary | final | amended | entered-in-error"/> + <definition value="The status of the underlying document."/> + <comment value="The document that is pointed to might be in various lifecycle states."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DocumentReference.docStatus"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ReferredDocumentStatus"/> + </extension> + <strength value="required"/> + <description value="Status of the underlying document."/> + <valueSet value="http://hl7.org/fhir/ValueSet/composition-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.status"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-17"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".statusCode"/> + </mapping> + </element> + <element id="DocumentReference.type"> + <path value="DocumentReference.type"/> + <short value="Kind of document (LOINC if possible)"/> + <definition value="Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced."/> + <comment value="Key metadata element describing the document that describes he exact type of document. Helps humans to assess whether the document is of interest when viewing a list of documents."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80Type"/> + </extension> + <strength value="preferred"/> + <description value="Precise type of clinical document."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-doc-typecodes"/> + </binding> + <mapping> + <identity value="workflow"/> + <map value="Event.code"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.type"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-2"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.type"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/code/@code 

The typeCode should be mapped from the ClinicalDocument/code element to a set of document type codes configured in the affinity domain. One suggested coding system to use for typeCode is LOINC, in which case the mapping step can be omitted."/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.typeCode"/> + </mapping> + </element> + <element id="DocumentReference.category"> + <path value="DocumentReference.category"/> + <short value="Categorization of document"/> + <definition value="A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type."/> + <comment value="Key metadata element describing the the category or classification of the document. This is a broader perspective that groups similar documents based on how they would be used. This is a primary key used in searching."/> + <alias value="claxs"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.category"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80Class"/> + </extension> + <strength value="example"/> + <description value="High-level kind of a clinical document at a macro level."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-classcodes"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.class"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="Derived from a mapping of /ClinicalDocument/code/@code to an Affinity Domain specified coded value to use and coding system. Affinity Domains are encouraged to use the appropriate value for Type of Service, based on the LOINC Type of Service (see Page 53 of the LOINC User's Manual). Must be consistent with /ClinicalDocument/code/@code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.classCode"/> + </mapping> + </element> + <element id="DocumentReference.subject"> + <path value="DocumentReference.subject"/> + <short value="Who/what is the subject of the document"/> + <definition value="Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.subject"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.subject"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="PID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="SBJ"].role[typeCode="PAT"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.patientId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/recordTarget/"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.patientId"/> + </mapping> + </element> + <element id="DocumentReference.date"> + <path value="DocumentReference.date"/> + <short value="When this document reference was created"/> + <definition value="When the document reference was created."/> + <comment value="Referencing/indexing time is used for tracking, organizing versions and searching."/> + <alias value="indexed"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.occurrence[x]"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.date"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime[type="TS"]"/> + </mapping> + </element> + <element id="DocumentReference.author"> + <path value="DocumentReference.author"/> + <short value="Who and/or what authored the document"/> + <definition value="Identifies who is responsible for adding the information to the document."/> + <comment value="Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.author"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> + <aggregation value="contained"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.author"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-9 (No standard way to indicate a Device in HL7 v2 MDM message)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="AUT"].role[classCode="ASSIGNED"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.author"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/author"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.author"/> + </mapping> + </element> + <element id="DocumentReference.authenticator"> + <path value="DocumentReference.authenticator"/> + <short value="Who/what authenticated the document"/> + <definition value="Which person or organization authenticates that this document is valid."/> + <comment value="Represents a participant within the author institution who has legally authenticated or attested the document. Legal authentication implies that a document has been signed manually or electronically by the legal Authenticator."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.authenticator"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <aggregation value="contained"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.witness"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.attester"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-10"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.legalAuthenticator"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/legalAuthenticator"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.legalAuthenticator"/> + </mapping> + </element> + <element id="DocumentReference.custodian"> + <path value="DocumentReference.custodian"/> + <short value="Organization which maintains the document"/> + <definition value="Identifies the organization or group who is responsible for ongoing maintenance of and access to the document."/> + <comment value="Identifies the logical organization (software system, vendor, or department) to go to find the current version, where to report issues, etc. This is different from the physical location (URL, disk drive, or server) of the document, which is the technical location of the document, which host may be delegated to the management of some other organization."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.custodian"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.custodian"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"]"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="not mapped"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo"> + <path value="DocumentReference.relatesTo"/> + <short value="Relationships to other documents"/> + <definition value="Relationships that this document has with other document references that already exist."/> + <comment value="This element is labeled as a modifier because documents that append to other documents are incomplete on their own."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.relatesTo"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="iti-mhd-repl"/> + <severity value="error"/> + <human value="a DocumetReference replacements needs to relate to a superseded DocumentReference"/> + <expression value="code='replaces' implies target.exists()"/> + <source value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.id"> + <path value="DocumentReference.relatesTo.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.extension"> + <path value="DocumentReference.relatesTo.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.modifierExtension"> + <path value="DocumentReference.relatesTo.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.code"> + <path value="DocumentReference.relatesTo.code"/> + <short value="replaces | transforms | signs | appends"/> + <definition value="The type of relationship that this document has with anther document."/> + <comment value="If this document appends another document, then the document cannot be fully understood without also accessing the referenced document."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.relatesTo.code"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentRelationshipType"/> + </extension> + <strength value="required"/> + <description value="The type of relationship between documents."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo.code"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship.typeCode"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations type"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations.type"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.target"> + <path value="DocumentReference.relatesTo.target"/> + <short value="Target of the relationship"/> + <definition value="The target document of this relationship."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.relatesTo.target"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo.target"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".target[classCode="DOC", moodCode="EVN"].id"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations reference"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations.reference"/> + </mapping> + </element> + <element id="DocumentReference.description"> + <path value="DocumentReference.description"/> + <short value="Human-readable description"/> + <definition value="Human-readable description of the source document."/> + <comment value="What the document is about, a terse summary of the document."/> + <requirements value="Helps humans to assess whether the document is of interest."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.description"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="TXA-25"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode="SUBJ"].target.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.comments"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.comments"/> + </mapping> + </element> + <element id="DocumentReference.securityLabel"> + <path value="DocumentReference.securityLabel"/> + <short value="Document security-tags"/> + <definition value="A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the "reference" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to."/> + <comment value="The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce. 

In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects."/> + <requirements value="Use of the Health Care Privacy/Security Classification (HCS) system of security-tag use is recommended."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="DocumentReference.securityLabel"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.confidentiality, Composition.meta.security"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-18"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".confidentialityCode"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.confidentialityCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/confidentialityCode/@code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.confidentialityCode"/> + </mapping> + </element> + <element id="DocumentReference.content"> + <path value="DocumentReference.content"/> + <short value="Document referenced"/> + <definition value="The document and format referenced."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content"/> + <min value="1"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Bundle(Composition+*)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + </element> + <element id="DocumentReference.content.id"> + <path value="DocumentReference.content.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.extension"> + <path value="DocumentReference.content.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.modifierExtension"> + <path value="DocumentReference.content.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment"> + <path value="DocumentReference.content.attachment"/> + <short value="Where to access the document"/> + <definition value="The document or URL of the document along with critical metadata to prove content has integrity."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content.attachment"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Attachment"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.language, 
Composition.title, 
Composition.date"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-3 for mime type"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.mimeType, DocumentEntry.languageCode, DocumentEntry.URI, DocumentEntry.size, DocumentEntry.hash, DocumentEntry.title, DocumentEntry.creationTime"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/languageCode, ClinicalDocument/title, ClinicalDocument/date"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.id"> + <path value="DocumentReference.content.attachment.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.extension"> + <path value="DocumentReference.content.attachment.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.contentType"> + <path value="DocumentReference.content.attachment.contentType"/> + <short value="Mime type of the content, with charset etc."/> + <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate."/> + <requirements value="Processors of the data need to be able to know how to interpret the data."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.contentType"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <example> + <label value="General"/> + <valueCode value="text/plain; charset=UTF-8, image/png"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="MimeType"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="required"/> + <description value="The mime type of an attachment. Any valid mime type is allowed."/> + <valueSet value="http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./mediaType, ./charset"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.mimeType"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.language"> + <path value="DocumentReference.content.attachment.language"/> + <short value="Human language of the content (BCP-47)"/> + <definition value="The human language of the content. The value can be any valid value according to BCP 47."/> + <requirements value="Users need to be able to choose between the languages in a set of attachments."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <example> + <label value="General"/> + <valueCode value="en-AU"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="./language"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.languageCode"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.data"> + <path value="DocumentReference.content.attachment.data"/> + <short value="Data inline, base64ed"/> + <definition value="The actual data of the attachment - a sequence of bytes, base64 encoded."/> + <comment value="The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON."/> + <requirements value="The data needs to able to be transmitted inline."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Attachment.data"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="v2"/> + <map value="ED.5"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./data"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.url"> + <path value="DocumentReference.content.attachment.url"/> + <short value="Uri where the data can be found"/> + <definition value="A location where the data can be accessed."/> + <comment value="If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data."/> + <requirements value="The data needs to be transmitted by reference."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.url"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="url"/> + </type> + <example> + <label value="General"/> + <valueUrl value="http://www.acme.com/logo-small.png"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./reference/literal"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.repositoryUniqueId or DocuemntEntry.URI"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.size"> + <path value="DocumentReference.content.attachment.size"/> + <short value="Number of bytes of content (if url provided)"/> + <definition value="The number of bytes of data that make up this attachment (before base64 encoding, if that is done)."/> + <comment value="The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference."/> + <requirements value="Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.size"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A (needs data type R3 proposal)"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.size"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.hash"> + <path value="DocumentReference.content.attachment.hash"/> + <short value="Hash of the data (sha-1, base64ed)"/> + <definition value="The calculated hash of the data using SHA-1. Represented using base64."/> + <comment value="The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](http://hl7.org/fhir/R4/provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature."/> + <requirements value="Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.hash"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.hash"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.title"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="DocumentReference.content.attachment.title"/> + <short value="Label to display in place of the data"/> + <definition value="A label or set of text to display in place of the data."/> + <requirements value="Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Official Corporate Logo"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="./title/data"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.title"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.creation"> + <path value="DocumentReference.content.attachment.creation"/> + <short value="Date attachment was first created"/> + <definition value="The date that the attachment was first created."/> + <requirements value="This is often tracked as an integrity issue for use of the attachment."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.creation"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A (needs data type R3 proposal)"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.creationTime"/> + </mapping> + </element> + <element id="DocumentReference.content.format"> + <path value="DocumentReference.content.format"/> + <short value="Format/content rules for the document"/> + <definition value="An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType."/> + <comment value="Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content.format"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="preferred"/> + <valueSet value="http://ihe.net/fhir/ihe.formatcode.fhir/ValueSet/formatcode"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.meta.profile"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.formatCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="derived from the IHE Profile or Implementation Guide templateID"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.formatCode"/> + </mapping> + </element> + <element id="DocumentReference.context"> + <path value="DocumentReference.context"/> + <short value="Clinical context of document"/> + <definition value="The clinical context in which the document was prepared."/> + <comment value="These values are primarily added to help with searching for interesting/relevant documents."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.context"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="outboundRelationship[typeCode="SUBJ"].target[classCode<'ACT']"/> + </mapping> + </element> + <element id="DocumentReference.context.id"> + <path value="DocumentReference.context.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.extension"> + <path value="DocumentReference.context.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.modifierExtension"> + <path value="DocumentReference.context.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.encounter"> + <path value="DocumentReference.context.encounter"/> + <short value="Context of the document content"/> + <definition value="Describes the clinical encounter or type of care that the document content is associated with."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.encounter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.context"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.encounter"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct])"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.referenceIdList with CXi encoding for urn:ihe:iti:xds:2015:encounterId"/> + </mapping> + </element> + <element id="DocumentReference.context.event"> + <path value="DocumentReference.context.event"/> + <short value="Main clinical acts documented"/> + <definition value="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the type Code, such as a "History and Physical Report" in which the procedure being documented is necessarily a "History and Physical" act."/> + <comment value="An event can further specialize the act inherent in the type, such as where it is simply "Procedure Report" and the procedure was a "colonoscopy". If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.event"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentEventType"/> + </extension> + <strength value="example"/> + <description value="This list of codes represents the main clinical acts being documented."/> + <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActCode"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.code"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.eventCodeList"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.eventCodeList"/> + </mapping> + </element> + <element id="DocumentReference.context.period"> + <path value="DocumentReference.context.period"/> + <short value="Time of service that is being documented"/> + <definition value="The time period over which the service that is described by the document was provided."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.period"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Period"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.period"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".effectiveTime"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.serviceStartTime, DocumentEntry.serviceStopTime"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/low/
@value --> ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/high/
@value"/> + </mapping> + </element> + <element id="DocumentReference.context.period.id"> + <path value="DocumentReference.context.period.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.period.extension"> + <path value="DocumentReference.context.period.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.period.start"> + <path value="DocumentReference.context.period.start"/> + <short value="Starting time with inclusive boundary"/> + <definition value="The start of the period. The boundary is inclusive."/> + <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Period.start"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <condition value="per-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="DR.1"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./low"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumetEntry.serviceStartTime"/> + </mapping> + </element> + <element id="DocumentReference.context.period.end"> + <path value="DocumentReference.context.period.end"/> + <short value="End time with inclusive boundary, if not ongoing"/> + <definition value="The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> + <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Period.end"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> + <condition value="per-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="DR.2"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./high"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.serviceStopTime"/> + </mapping> + </element> + <element id="DocumentReference.context.facilityType"> + <path value="DocumentReference.context.facilityType"/> + <short value="Kind of facility where patient was seen"/> + <definition value="The kind of facility where the patient was seen."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.facilityType"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80FacilityType"/> + </extension> + <strength value="example"/> + <description value="XDS Facility Type."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-facilitycodes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="LOC"].role[classCode="DSDLOC"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.healthcareFacilityTypeCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="usually a mapping to a local ValueSet. Must be consistent with /clinicalDocument/code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.healthcareFacilityTypeCode"/> + </mapping> + </element> + <element id="DocumentReference.context.practiceSetting"> + <path value="DocumentReference.context.practiceSetting"/> + <short value="Additional details about where the content was created (e.g. clinical specialty)"/> + <definition value="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty."/> + <comment value="This element should be based on a coarse classification system for the class of specialty practice. Recommend the use of the classification system for Practice Setting, such as that described by the Subject Matter Domain in LOINC."/> + <requirements value="This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.practiceSetting"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80PracticeSetting"/> + </extension> + <strength value="example"/> + <description value="Additional details about where the content was created (e.g. clinical specialty)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-practice-codes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="LOC"].role[classCode="DSDLOC"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.practiceSettingCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.practiceSettingCode"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo"> + <path value="DocumentReference.context.sourcePatientInfo"/> + <short value="Patient demographics from source"/> + <definition value="The Patient Information as known when the document was published. May be a reference to a version specific, or contained."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.sourcePatientInfo"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <aggregation value="contained"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.subject"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="SBJ"].role[typeCode="PAT"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.sourcePatientInfo, DocumentEntry.sourcePatientId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/recordTarget/"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.id"> + <path value="DocumentReference.context.sourcePatientInfo.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.extension"> + <path value="DocumentReference.context.sourcePatientInfo.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.reference"> + <path value="DocumentReference.context.sourcePatientInfo.reference"/> + <short value="Literal reference, Relative, internal or absolute URL"/> + <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."/> + <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.reference"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <condition value="ref-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.sourcePatientInfo"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.type"> + <path value="DocumentReference.context.sourcePatientInfo.type"/> + <short value="Type the reference refers to (e.g. "Patient")"/> + <definition value="The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)."/> + <comment value="This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="FHIRResourceTypeExt"/> + </extension> + <strength value="extensible"/> + <description value="Aa resource (or, for logical models, the URI of the logical model)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/resource-types"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.identifier"> + <path value="DocumentReference.context.sourcePatientInfo.identifier"/> + <short value="Logical reference, when literal reference is not known"/> + <definition value="An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."/> + <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. 

When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".identifier"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.sourcePatientId"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.display"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="DocumentReference.context.sourcePatientInfo.display"/> + <short value="Text alternative for the resource"/> + <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> + <comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.display"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.related"> + <path value="DocumentReference.context.related"/> + <short value="Related identifiers or resources"/> + <definition value="Related identifiers or resources associated with the DocumentReference."/> + <comment value="May be identifiers or resources that caused the DocumentReference or referenced Document to be created."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.related"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.detail"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.referenceIdList"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/relatedDocument"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.referenceIdList using CXi encoding for type when possible"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="DocumentReference"> + <path value="DocumentReference"/> + </element> + <element id="DocumentReference.author"> + <path value="DocumentReference.author"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> + <aggregation value="contained"/> + </type> + </element> + <element id="DocumentReference.authenticator"> + <path value="DocumentReference.authenticator"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <aggregation value="contained"/> + </type> + </element> + <element id="DocumentReference.context.sourcePatientInfo"> + <path value="DocumentReference.context.sourcePatientInfo"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <aggregation value="contained"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.Folder.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.Folder.xml new file mode 100644 index 0000000000..ade79942b2 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.Folder.xml @@ -0,0 +1,1614 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Comprehensive.Folder"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.Folder-definitions.html#List">List</a><a name="List"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.Folder.html">Folder</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.Folder-definitions.html#List.extension">extension</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Extension</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.Folder-definitions.html#List.extension:designationType" title="Slice designationType">extension:designationType</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="StructureDefinition-ihe-designationType.html" title="Extension">DesignationType</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Clinical code of the List</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.Folder-definitions.html#List.title">title</a><a name="List.title"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Descriptive name for the list</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.Folder-definitions.html#List.subject">subject</a><a name="List.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If all resources have the same subject</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.Folder"/> + <version value="4.2.1"/> + <name value="FolderComprehensive"/> + <title value="MHD Folder Comprehensive"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the List resource for MHD Comprehensive Metadata Folder. Note UnContained has no impact on Folder.
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR List for use as a Folder implementation of the 
- ebRIM implementation at [3:4.2.3.4 Folder Attributes](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.4).
- with use-cases and constraints found in [3:4.3 Additional Document Sharing Requirements](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <uri value="XDS"/> + <name value="XDS and MHD Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="List"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"/> + <derivation value="constraint"/> + <snapshot> + <element id="List"> + <path value="List"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="XDS Folder"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="List.id"> + <path value="List.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta"> + <path value="List.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.id"> + <path value="List.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.extension"> + <path value="List.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.versionId"> + <path value="List.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.lastUpdated"> + <path value="List.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.source"> + <path value="List.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.profile"> + <path value="List.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.limitedMetadata"/> + </mapping> + </element> + <element id="List.meta.security"> + <path value="List.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="List.meta.tag"> + <path value="List.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="List.implicitRules"> + <path value="List.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="List.language"> + <path value="List.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="List.text"> + <path value="List.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="List.contained"> + <path value="List.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="1"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <short value="Clinical code of the List"/> + <definition value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + </element> + <element id="List.modifierExtension"> + <path value="List.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="List.identifier"> + <path value="List.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Business identifier"/> + <definition value="Identifier for the List assigned for business purposes outside the context of FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.entryUUID and Folder.uniqueId"/> + </mapping> + </element> + <element id="List.identifier:uniqueId"> + <path value="List.identifier"/> + <sliceName value="uniqueId"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.identifier:entryUUID"> + <path value="List.identifier"/> + <sliceName value="entryUUID"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.status"> + <path value="List.status"/> + <short value="current | retired | entered-in-error"/> + <definition value="Indicates the current state of this list."/> + <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListStatus"/> + </extension> + <strength value="required"/> + <description value="The current state of the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".status[current=active;retired=obsolete;entered-in-error=nullified]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.availabilityStatus"/> + </mapping> + </element> + <element id="List.mode"> + <path value="List.mode"/> + <short value="working | snapshot | changes"/> + <definition value="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted."/> + <comment value="This element is labeled as a modifier because a change list must not be misunderstood as a complete list."/> + <requirements value="Lists are used in various ways, and it must be known in what way it is safe to use them."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.mode"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="working"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If set to "changes", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListMode"/> + </extension> + <strength value="required"/> + <description value="The processing mode that applies to this list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-mode|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="shall be 'working'"/> + </mapping> + </element> + <element id="List.title"> + <path value="List.title"/> + <short value="Descriptive name for the list"/> + <definition value="A label for the list assigned by the author."/> + <requirements value="Allows customization beyond just the code identifying the kind of list."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Dr. Jane's Patients"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".title"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.title"/> + </mapping> + </element> + <element id="List.code"> + <path value="List.code"/> + <short value="What the purpose of this list is"/> + <definition value="This code defines the purpose of the list - why it was created."/> + <comment value="If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code."/> + <requirements value="Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.code"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <patternCodeableConcept> + <coding> + <system value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <code value="folder"/> + </coding> + </patternCodeableConcept> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDlistTypesVS"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.what[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="shall be 'folder'"/> + </mapping> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <short value="If all resources have the same subject"/> + <definition value="The common subject (or patient) of the resources that are in the list if there is one."/> + <comment value="Some purely arbitrary lists do not have a common subject, so this is optional."/> + <requirements value="The primary purpose of listing the subject explicitly is to help with finding the right list."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<SUB].role (and sometimes .player)"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.patientId"/> + </mapping> + </element> + <element id="List.encounter"> + <path value="List.encounter"/> + <short value="Context in which list created"/> + <definition value="The encounter that is the context in which this list was created."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.encounter"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.date"> + <path value="List.date"/> + <short value="When the list was prepared"/> + <definition value="The date that the list was prepared."/> + <comment value="The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs."/> + <requirements value="Identifies how current the list is which affects relevance."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].time[type=TS]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.lastUpdateTime"/> + </mapping> + </element> + <element id="List.source"> + <path value="List.source"/> + <short value="Who and/or what defined the list contents (aka Author)"/> + <definition value="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list."/> + <comment value="The primary source is the entity that made the decisions what items are in the list. This may be software or user."/> + <requirements value="Allows follow-up as well as context."/> + <alias value="Author"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.author"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode<AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.orderedBy"> + <path value="List.orderedBy"/> + <short value="What order the list has"/> + <definition value="What order applies to the items in the list."/> + <comment value="Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order."/> + <requirements value="Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.orderedBy"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListOrder"/> + </extension> + <strength value="preferred"/> + <description value="What order applies to the items in a list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-order"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP].sequenceNumber > 1"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.note"> + <path value="List.note"/> + <short value="Comments about the list"/> + <definition value="Comments that apply to the overall list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.note"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Annotation"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ].act.text"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.comments"/> + </mapping> + </element> + <element id="List.entry"> + <path value="List.entry"/> + <short value="Entries in the list"/> + <definition value="Entries in this list."/> + <comment value="If there are no entries in the list, an emptyReason SHOULD be provided."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]"/> + </mapping> + </element> + <element id="List.entry.id"> + <path value="List.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.extension"> + <path value="List.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.modifierExtension"> + <path value="List.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.entry.flag"> + <path value="List.entry.flag"/> + <short value="Status/Workflow information about this item"/> + <definition value="The flag allows the system constructing the list to indicate the role and significance of the item in the list."/> + <comment value="The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is "changes"."/> + <requirements value="This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.flag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListItemFlag"/> + </extension> + <strength value="example"/> + <description value="Codes that provide further information about the reason and meaning of the item in the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-item-flag"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.deleted"> + <path value="List.entry.deleted"/> + <short value="If this item is actually marked as deleted"/> + <definition value="True if this item is marked as deleted in the list."/> + <comment value="If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is "changes". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list."/> + <requirements value="The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as "deleted"."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.deleted"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="boolean"/> + </type> + <meaningWhenMissing value="List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'"/> + <condition value="lst-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If deleted is true, then the item included in the list isn't actually part of the list anymore"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="added: .updateMode=("A","AR") retained: .updateMode="NC" updated: .updateMode="R" deleted: .updateMode="D""/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.date"> + <path value="List.entry.date"/> + <short value="When item added to list"/> + <definition value="When this item was added to the list."/> + <requirements value="The date may be significant for understanding the meaning of items in a working list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.item"> + <path value="List.entry.item"/> + <short value="Actual entry"/> + <definition value="A reference to the actual resource from which data was derived."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.entry.item"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".target or .role or .role.entity"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="references to DocumentReference(s)"/> + </mapping> + </element> + <element id="List.emptyReason"> + <path value="List.emptyReason"/> + <short value="Why list is empty"/> + <definition value="If the list is empty, why the list is empty."/> + <comment value="The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases."/> + <requirements value="Allows capturing things like "none exist" or "not asked" which can be important for most lists."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.emptyReason"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListEmptyReason"/> + </extension> + <strength value="preferred"/> + <description value="If a list is empty, why it is empty."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-empty-reason"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="List"> + <path value="List"/> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <min value="1"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <min value="1"/> + </element> + <element id="List.title"> + <path value="List.title"/> + <min value="1"/> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <min value="1"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle.xml new file mode 100644 index 0000000000..7f778b18a0 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle.xml @@ -0,0 +1,9006 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Comprehensive.ProvideBundle"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle-definitions.html#Bundle">Bundle</a><a name="Bundle"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle.html">UnContainedComprehensiveProvideDocumentBundle</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck15.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle-definitions.html#Bundle.entry:SubmissionSet" title="Slice SubmissionSet">entry:SubmissionSet</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">the SubmissionSet</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck140.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle-definitions.html#Bundle.entry:SubmissionSet.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Comprehensive.SubmissionSet.html" title="List">SubmissionSetComprehensive</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck05.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle-definitions.html#Bundle.entry:DocumentRefs" title="Slice DocumentRefs">entry:DocumentRefs</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">the DocumentReference resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck040.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle-definitions.html#Bundle.entry:DocumentRefs.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.html" title="DocumentReference">ComprehensiveDocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle"/> + <version value="4.2.1"/> + <name value="ComprehensiveProvideDocumentBundle"/> + <title value="MHD Comprehensive Provide Document Bundle"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the Bundle transaction for ITI-65 Provide Document resources with Comprehensive Metadata for MHD.

- [Comprehensive Metadata](StructureDefinition-IHE.MHD.Comprehensive.ProvideBundle.html): `https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle`
 - this is otherwise known as XDS-on-FHIR
 - shall be a Transaction Bundle
 - all resources shall be compliant with comprehensive constraints, they may be marked comprehensive
 - shall create a [SubmissionSet type List](StructureDefinition-IHE.MHD.Minimal.SubmissionSet.html) that is either minimal, comprehensive, or unContained
 - may create one or more [DocumentReference](StructureDefinition-IHE.MHD.Minimal.DocumentReference.html) that is either minimal, comprehensive, or unContained
 - with a document as a [Binary](http://hl7.org/fhir/R4/binary.html)
 - or, when implementing the **ITI-65 FHIR Document Publish** option, a [FHIR Document Bundle](http://hl7.org/fhir/R4/bundle.html)
 - may create/update one or more [Folder type List](StructureDefinition-IHE.MHD.Minimal.Folder.html) that is either minimal, comprehensive, or unContained
 - may create/update/read one [Patient](http://hl7.org/fhir/R4/patient.html)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Bundle"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.ProvideBundle"/> + <derivation value="constraint"/> + <snapshot> + <element id="Bundle"> + <path value="Bundle"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.id"> + <path value="Bundle.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta"> + <path value="Bundle.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.id"> + <path value="Bundle.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.meta.extension"> + <path value="Bundle.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.meta.versionId"> + <path value="Bundle.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.lastUpdated"> + <path value="Bundle.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.source"> + <path value="Bundle.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.profile"> + <path value="Bundle.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.security"> + <path value="Bundle.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="Bundle.meta.tag"> + <path value="Bundle.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="Bundle.implicitRules"> + <path value="Bundle.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Bundle.language"> + <path value="Bundle.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Bundle.identifier"> + <path value="Bundle.identifier"/> + <short value="Persistent identifier for the bundle"/> + <definition value="A persistent identifier for the bundle that won't change as a bundle is copied from server to server."/> + <comment value="Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.id"/> + </mapping> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <short value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"/> + <definition value="Indicates the purpose of this bundle - how it is intended to be used."/> + <comment value="It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.type"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="transaction"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="BundleType"/> + </extension> + <strength value="required"/> + <description value="Indicates the purpose of a bundle - how it is intended to be used."/> + <valueSet value="http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + </element> + <element id="Bundle.timestamp"> + <path value="Bundle.timestamp"/> + <short value="When the bundle was assembled"/> + <definition value="The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle."/> + <comment value="For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated. 

Usage:

* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time
* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message
* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates
* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query
* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning

The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.timestamp"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.init"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.effectiveTime"/> + </mapping> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <short value="If search, the total number of matches"/> + <definition value="If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle."/> + <comment value="Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.total"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <condition value="bdl-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link"> + <path value="Bundle.link"/> + <short value="Links related to this Bundle"/> + <definition value="A series of links that provide context to this bundle."/> + <comment value="Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). 

Bundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http://hl7.org/fhir/R4/http.html#read) directly.

This specification defines some specific uses of Bundle.link for [searching](http://hl7.org/fhir/R4/search.html#conformance) and [paging](http://hl7.org/fhir/R4/http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.link"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.id"> + <path value="Bundle.link.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.extension"> + <path value="Bundle.link.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.modifierExtension"> + <path value="Bundle.link.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.link.relation"> + <path value="Bundle.link.relation"/> + <short value="See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1"/> + <definition value="A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.relation"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.url"> + <path value="Bundle.link.url"/> + <short value="Reference details for the link"/> + <definition value="The reference details for the link."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <discriminator> + <type value="value"/> + <path value="request.method"/> + </discriminator> + <description value="Slicing based on the profile conformance of the entry"/> + <rules value="closed"/> + </slicing> + <short value="Entry in the bundle - will have a resource or information"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.resource"> + <path value="Bundle.entry.resource"/> + <short value="A resource in the bundle"/> + <definition value="The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet"> + <path value="Bundle.entry"/> + <sliceName value="SubmissionSet"/> + <short value="the SubmissionSet"/> + <definition value="The SubmissionSet defines who submitted it, why they submitted it, when they submitted, what is in it, and where it is destine."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.resource"> + <path value="Bundle.entry.resource"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="XDS SubmissionSet"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:SubmissionSet.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:SubmissionSet.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="DocumentRefs"/> + <short value="the DocumentReference resources"/> + <definition value="any new DocumentReference that are part of the SubmissionSet. These might be new or other associations"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentRefs.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentRefs.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="UpdateDocumentRefs"/> + <short value="the superseded DocumentReference resources"/> + <definition value="any updated DocumentReference that are part of the SubmissionSet if a new new DocumentReference replaces this DocumentReference."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <short value="Operation Request or Response"/> + <definition value="This resource is a non-persisted resource used to pass information into and back from an [operation](http://hl7.org/fhir/R4/operations.html). It has no other use, and there is no RESTful endpoint associated with it."/> + <comment value="The parameters that may be used are defined by the OperationDefinition resource."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Parameters"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="PATCH"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents"> + <path value="Bundle.entry"/> + <sliceName value="Documents"/> + <short value="the Documents"/> + <definition value="the Documents referenced by the DocumentReference resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.resource"> + <path value="Bundle.entry.resource"/> + <short value="Pure binary content defined by a format other than FHIR"/> + <definition value="A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc."/> + <comment value="Typically, Binary resources are used for handling content such as: 

* CDA Documents (i.e. with XDS) 
* PDF Documents 
* Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Binary"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Binary"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="ED"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Documents.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="preferred"/> <!-- required --> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Documents.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments"> + <path value="Bundle.entry"/> + <sliceName value="FhirDocuments"/> + <short value="the FHIR-FhirDocuments"/> + <definition value="the FHIR-FhirDocuments referenced by the DocumentReference resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.resource"> + <path value="Bundle.entry.resource"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Bundle"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </type> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:FhirDocuments.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:FhirDocuments.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders"> + <path value="Bundle.entry"/> + <sliceName value="Folders"/> + <short value="Folders"/> + <definition value="any Folders being created or updated"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.resource"> + <path value="Bundle.entry.resource"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="XDS Folder"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Folders.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovideFolderActions"/> + </binding> + </element> + <element id="Bundle.entry:Folders.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient"> + <path value="Bundle.entry"/> + <sliceName value="Patient"/> + <short value="the Patient"/> + <definition value="the Patient"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.resource"> + <path value="Bundle.entry.resource"/> + <short value="Information about an individual or animal receiving health care services"/> + <definition value="Demographics and other administrative information about an individual or animal receiving care or other health-related services."/> + <alias value="SubjectOfCare Client Resident"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Patient"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Patient[classCode=PAT]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.recordTarget.patientRole"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Patient.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovidePatientActions"/> + </binding> + </element> + <element id="Bundle.entry:Patient.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.signature"> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> + <valueCode value="trial-use"/> + </extension> + <path value="Bundle.signature"/> + <short value="Digital Signature"/> + <definition value="Digital Signature - base64 encoded. XML-DSig or a JWT."/> + <comment value="The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific."/> + <requirements value="A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.signature"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Signature"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Bundle"> + <path value="Bundle"/> + </element> + <element id="Bundle.entry:SubmissionSet"> + <path value="Bundle.entry"/> + <sliceName value="SubmissionSet"/> + </element> + <element id="Bundle.entry:SubmissionSet.resource"> + <path value="Bundle.entry.resource"/> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"/> + </type> + </element> + <element id="Bundle.entry:DocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="DocumentRefs"/> + </element> + <element id="Bundle.entry:DocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.SubmissionSet.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.SubmissionSet.xml new file mode 100644 index 0000000000..1100c5ab27 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Comprehensive.SubmissionSet.xml @@ -0,0 +1,1931 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Comprehensive.SubmissionSet"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.SubmissionSet-definitions.html#List">List</a><a name="List"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet.html">SubmissionSetComprehensiveUnContained</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Comprehensive.SubmissionSet-definitions.html#List.source">source</a><a name="List.source"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a href="http://hl7.org/fhir/R4/practitionerrole.html">PractitionerRole</a> | <a href="http://hl7.org/fhir/R4/patient.html">Patient</a> | <a href="http://hl7.org/fhir/R4/device.html">Device</a>)<a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html"> {</a><a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html" title="The reference is a local reference to a contained resource.">c</a><a href="http://hl7.org/fhir/R4/valueset-resource-aggregation-mode.html">}</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who and/or what defined the list contents (aka Author)</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"/> + <version value="4.2.1"/> + <name value="SubmissionSetComprehensive"/> + <title value="MHD SubmissionSet Comprehensive"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the List resource for MHD Comprehensive SubmissionSet.
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR List for use as a SubmissionSet implementation of the 
- ebRIM implementation at [3:4.2.3.3 SubmissionSet Attributes](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.3).
- with use-cases and constraints found in [3:4.3.1 Submission Metadata Attribute Optionality](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3.1) for 
 - MHD Comprehensive Option Document Source
 - aka the XDS Document Source requirements
 - aka the XDR Document Source requirements"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <uri value="XDS"/> + <name value="XDS and MHD Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="List"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.SubmissionSet"/> + <derivation value="constraint"/> + <snapshot> + <element id="List"> + <path value="List"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="XDS SubmissionSet"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="List.id"> + <path value="List.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta"> + <path value="List.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.id"> + <path value="List.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.extension"> + <path value="List.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.versionId"> + <path value="List.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.lastUpdated"> + <path value="List.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.source"> + <path value="List.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.profile"> + <path value="List.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.limitedMetadata"/> + </mapping> + </element> + <element id="List.meta.security"> + <path value="List.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="List.meta.tag"> + <path value="List.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="List.implicitRules"> + <path value="List.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="List.language"> + <path value="List.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="List.text"> + <path value="List.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="List.contained"> + <path value="List.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="2"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <short value="Clinical code of the List"/> + <definition value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + </element> + <element id="List.extension:sourceId"> + <path value="List.extension"/> + <sliceName value="sourceId"/> + <short value="Publisher organization identity of the SubmissionSet"/> + <definition value="The globally unique, immutable, identifier of the entity that contributed the SubmissionSet. When a broker is involved in sending SubmissionSets from a collection of client systems, it shall use a different sourceId for submissions from each separate system to allow for tracking. The format of the identifier is an OID."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.sourceId"/> + </mapping> + </element> + <element id="List.extension:intendedRecipient"> + <path value="List.extension"/> + <sliceName value="intendedRecipient"/> + <short value="Intended recipient of the SubmissionSet"/> + <definition value="holds the identity of the organization or person the SubmissionSet is intended. For XDR and eMail (e.g. Direct) this tends to be a Practitioner or Patient with a telecom holding an email, but this is not strictly required."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.intendedRecipient"/> + </mapping> + </element> + <element id="List.modifierExtension"> + <path value="List.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="List.identifier"> + <path value="List.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Business identifier"/> + <definition value="Identifier for the List assigned for business purposes outside the context of FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.entryUUID and SubmissionSet.uniqueId"/> + </mapping> + </element> + <element id="List.identifier:uniqueId"> + <path value="List.identifier"/> + <sliceName value="uniqueId"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.identifier:entryUUID"> + <path value="List.identifier"/> + <sliceName value="entryUUID"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.status"> + <path value="List.status"/> + <short value="current | retired | entered-in-error"/> + <definition value="Indicates the current state of this list."/> + <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="current"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListStatus"/> + </extension> + <strength value="required"/> + <description value="The current state of the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".status[current=active;retired=obsolete;entered-in-error=nullified]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.availabilityStatus"/> + </mapping> + </element> + <element id="List.mode"> + <path value="List.mode"/> + <short value="working | snapshot | changes"/> + <definition value="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted."/> + <comment value="This element is labeled as a modifier because a change list must not be misunderstood as a complete list."/> + <requirements value="Lists are used in various ways, and it must be known in what way it is safe to use them."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.mode"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="working"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If set to "changes", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListMode"/> + </extension> + <strength value="required"/> + <description value="The processing mode that applies to this list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-mode|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="shall be 'working'"/> + </mapping> + </element> + <element id="List.title"> + <path value="List.title"/> + <short value="Descriptive name for the list"/> + <definition value="A label for the list assigned by the author."/> + <requirements value="Allows customization beyond just the code identifying the kind of list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Dr. Jane's Patients"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".title"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.title"/> + </mapping> + </element> + <element id="List.code"> + <path value="List.code"/> + <short value="What the purpose of this list is"/> + <definition value="This code defines the purpose of the list - why it was created."/> + <comment value="If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code."/> + <requirements value="Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.code"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <patternCodeableConcept> + <coding> + <system value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <code value="submissionset"/> + </coding> + </patternCodeableConcept> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDlistTypesVS"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.what[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="shall be 'submissionset'"/> + </mapping> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <short value="If all resources have the same subject"/> + <definition value="The common subject (or patient) of the resources that are in the list if there is one."/> + <comment value="Some purely arbitrary lists do not have a common subject, so this is optional."/> + <requirements value="The primary purpose of listing the subject explicitly is to help with finding the right list."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<SUB].role (and sometimes .player)"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.patientId"/> + </mapping> + </element> + <element id="List.encounter"> + <path value="List.encounter"/> + <short value="Context in which list created"/> + <definition value="The encounter that is the context in which this list was created."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.encounter"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.date"> + <path value="List.date"/> + <short value="When the list was prepared"/> + <definition value="The date that the list was prepared."/> + <comment value="The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs."/> + <requirements value="Identifies how current the list is which affects relevance."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].time[type=TS]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.submissionTime"/> + </mapping> + </element> + <element id="List.source"> + <path value="List.source"/> + <short value="Who and/or what defined the list contents (aka Author)"/> + <definition value="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list."/> + <comment value="The primary source is the entity that made the decisions what items are in the list. This may be software or user."/> + <requirements value="Allows follow-up as well as context."/> + <alias value="Author"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <aggregation value="contained"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.author"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode<AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.author"/> + </mapping> + </element> + <element id="List.source.id"> + <path value="List.source.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.source.extension"> + <path value="List.source.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.source.extension:authorOrg"> + <path value="List.source.extension"/> + <sliceName value="authorOrg"/> + <short value="Author organization of the SubmissionSet"/> + <definition value="When the author of the SubmissionSet is an Organization, this extension shall be used."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.author when the author is an Organization"/> + </mapping> + </element> + <element id="List.source.reference"> + <path value="List.source.reference"/> + <short value="Literal reference, Relative, internal or absolute URL"/> + <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."/> + <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.reference"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <condition value="ref-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.source.type"> + <path value="List.source.type"/> + <short value="Type the reference refers to (e.g. "Patient")"/> + <definition value="The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)."/> + <comment value="This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="FHIRResourceTypeExt"/> + </extension> + <strength value="extensible"/> + <description value="Aa resource (or, for logical models, the URI of the logical model)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/resource-types"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.source.identifier"> + <path value="List.source.identifier"/> + <short value="Logical reference, when literal reference is not known"/> + <definition value="An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."/> + <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. 

When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".identifier"/> + </mapping> + </element> + <element id="List.source.display"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="List.source.display"/> + <short value="Text alternative for the resource"/> + <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> + <comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.display"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.orderedBy"> + <path value="List.orderedBy"/> + <short value="What order the list has"/> + <definition value="What order applies to the items in the list."/> + <comment value="Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order."/> + <requirements value="Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.orderedBy"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListOrder"/> + </extension> + <strength value="preferred"/> + <description value="What order applies to the items in a list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-order"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP].sequenceNumber > 1"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.note"> + <path value="List.note"/> + <short value="Comments about the list"/> + <definition value="Comments that apply to the overall list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.note"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Annotation"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ].act.text"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.comments"/> + </mapping> + </element> + <element id="List.entry"> + <path value="List.entry"/> + <short value="Entries in the list"/> + <definition value="Entries in this list."/> + <comment value="If there are no entries in the list, an emptyReason SHOULD be provided."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]"/> + </mapping> + </element> + <element id="List.entry.id"> + <path value="List.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.extension"> + <path value="List.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.modifierExtension"> + <path value="List.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.entry.flag"> + <path value="List.entry.flag"/> + <short value="Status/Workflow information about this item"/> + <definition value="The flag allows the system constructing the list to indicate the role and significance of the item in the list."/> + <comment value="The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is "changes"."/> + <requirements value="This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.flag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListItemFlag"/> + </extension> + <strength value="example"/> + <description value="Codes that provide further information about the reason and meaning of the item in the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-item-flag"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.deleted"> + <path value="List.entry.deleted"/> + <short value="If this item is actually marked as deleted"/> + <definition value="True if this item is marked as deleted in the list."/> + <comment value="If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is "changes". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list."/> + <requirements value="The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as "deleted"."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.deleted"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="boolean"/> + </type> + <meaningWhenMissing value="List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'"/> + <condition value="lst-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If deleted is true, then the item included in the list isn't actually part of the list anymore"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="added: .updateMode=("A","AR") retained: .updateMode="NC" updated: .updateMode="R" deleted: .updateMode="D""/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.date"> + <path value="List.entry.date"/> + <short value="When item added to list"/> + <definition value="When this item was added to the list."/> + <requirements value="The date may be significant for understanding the meaning of items in a working list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.item"> + <path value="List.entry.item"/> + <short value="Actual entry"/> + <definition value="A reference to the actual resource from which data was derived."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.entry.item"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/List"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".target or .role or .role.entity"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="references to DocumentReference(s) and Folder List(s)"/> + </mapping> + </element> + <element id="List.emptyReason"> + <path value="List.emptyReason"/> + <short value="Why list is empty"/> + <definition value="If the list is empty, why the list is empty."/> + <comment value="The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases."/> + <requirements value="Allows capturing things like "none exist" or "not asked" which can be important for most lists."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.emptyReason"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListEmptyReason"/> + </extension> + <strength value="preferred"/> + <description value="If a list is empty, why it is empty."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-empty-reason"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="List"> + <path value="List"/> + </element> + <element id="List.source"> + <path value="List.source"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <aggregation value="contained"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.EntryUUID.Identifier.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.EntryUUID.Identifier.xml new file mode 100644 index 0000000000..aadf51e100 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.EntryUUID.Identifier.xml @@ -0,0 +1,464 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.EntryUUID.Identifier"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.EntryUUID.Identifier-definitions.html#Identifier">Identifier</a><a name="Identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An identifier intended for computation</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.EntryUUID.Identifier-definitions.html#Identifier.use">use</a><a name="Identifier.use"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">usual | official | temp | secondary | old (If known)</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">official</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.EntryUUID.Identifier-definitions.html#Identifier.system">system</a><a name="Identifier.system"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The namespace for the identifier value</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">urn:ietf:rfc:3986</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.EntryUUID.Identifier-definitions.html#Identifier.value">value</a><a name="Identifier.value"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints (mhd-startswithuuid)">C</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The value that is unique</span><br/><span style="font-weight:bold">mhd-startswithuuid: </span>value must start with urn:uuid:</td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + <version value="4.2.1"/> + <name value="EntryUUIDIdentifier"/> + <title value="entryUUID Identifier"/> + <status value="active"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="entryUUID Identifier holding a UUID"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="servd"/> + <uri value="http://www.omg.org/spec/ServD/1.0/"/> + <name value="ServD"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <type value="Identifier"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Identifier"/> + <derivation value="constraint"/> + <snapshot> + <element id="Identifier"> + <path value="Identifier"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="Identifier.id"> + <path value="Identifier.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Identifier.extension"> + <path value="Identifier.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Identifier.use"> + <path value="Identifier.use"/> + <short value="usual | official | temp | secondary | old (If known)"/> + <definition value="The purpose of this identifier."/> + <comment value="Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."/> + <requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.use"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="official"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one."/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="IdentifierUse"/> + </extension> + <strength value="required"/> + <description value="Identifies the purpose for this identifier, if known ."/> + <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.code or implied by context"/> + </mapping> + </element> + <element id="Identifier.type"> + <path value="Identifier.type"/> + <short value="Description of identifier"/> + <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/> + <comment value="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."/> + <requirements value="Allows users to make use of identifiers when the identifier system is not known."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="IdentifierType"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."/> + <valueSet value="http://hl7.org/fhir/ValueSet/identifier-type"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="CX.5"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.code or implied by context"/> + </mapping> + </element> + <element id="Identifier.system"> + <path value="Identifier.system"/> + <short value="The namespace for the identifier value"/> + <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/> + <comment value="Identifier.system is always case sensitive."/> + <requirements value="There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Identifier.system"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <fixedUri value="urn:ietf:rfc:3986"/> + <example> + <label value="General"/> + <valueUri value="http://www.acme.com/identifiers/patient"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.4 / EI-2-4"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.root or Role.id.root"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./IdentifierType"/> + </mapping> + </element> + <element id="Identifier.value"> + <path value="Identifier.value"/> + <short value="The value that is unique"/> + <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/> + <comment value="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](http://hl7.org/fhir/R4/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."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Identifier.value"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="123456"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="mhd-startswithuuid"/> + <severity value="error"/> + <human value="value must start with urn:uuid:"/> + <expression value="value.startsWith('urn:uuid:')"/> + <source value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.1 / EI.1"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./Value"/> + </mapping> + </element> + <element id="Identifier.period"> + <path value="Identifier.period"/> + <short value="Time period when id is/was valid for use"/> + <definition value="Time period during which identifier is/was valid for use."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.period"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Period"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.7 + CX.8"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.effectiveTime or implied by context"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./StartDate and ./EndDate"/> + </mapping> + </element> + <element id="Identifier.assigner"> + <path value="Identifier.assigner"/> + <short value="Organization that issued id (may be just text)"/> + <definition value="Organization that issued/manages the identifier."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.assigner"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.4 / (CX.4,CX.9,CX.10)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./IdentifierIssuingAuthority"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="Identifier"> + <path value="Identifier"/> + </element> + <element id="Identifier.use"> + <path value="Identifier.use"/> + <patternCode value="official"/> + </element> + <element id="Identifier.system"> + <path value="Identifier.system"/> + <min value="1"/> + <fixedUri value="urn:ietf:rfc:3986"/> + </element> + <element id="Identifier.value"> + <path value="Identifier.value"/> + <min value="1"/> + <constraint> + <key value="mhd-startswithuuid"/> + <severity value="error"/> + <human value="value must start with urn:uuid:"/> + <expression value="value.startsWith('urn:uuid:')"/> + <source value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </constraint> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage.xml new file mode 100644 index 0000000000..757b78d8e2 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage.xml @@ -0,0 +1,3757 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.FindDocumentListsResponseMessage"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle">Bundle</a><a name="Bundle"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.type">type</a><a name="Bundle.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">searchset</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.total">total</a><a name="Bundle.total"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#unsignedInt">unsignedInt</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If search, the total number of matches</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.entry">Slices for entry</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Entry in the bundle - will have a resource or information</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Closed by profile:resource</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck035.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.entry:SubmissionSet" title="Slice SubmissionSet">entry:SubmissionSet</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">SubmissionSets<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0350.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.entry:SubmissionSet.fullUrl">fullUrl</a><a name="Bundle.entry.fullUrl"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">URI for resource (Absolute URL server address or URI for UUID/OID)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0340.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.entry:SubmissionSet.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet.html" title="List">SubmissionSet</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck025.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.entry:Folder" title="Slice Folder">entry:Folder</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Folders<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.entry:Folder.fullUrl">fullUrl</a><a name="Bundle.entry.fullUrl"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">URI for resource (Absolute URL server address or URI for UUID/OID)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0240.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentListsResponseMessage-definitions.html#Bundle.entry:Folder.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.Folder.html" title="List">Folder</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentListsResponseMessage"/> + <version value="4.2.1"/> + <name value="FindListsResponse"/> + <title value="MHD Find Document Lists Response Message"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the Find Document Lists Response message for ITI-66"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Bundle"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + <derivation value="constraint"/> + <snapshot> + <element id="Bundle"> + <path value="Bundle"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.id"> + <path value="Bundle.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta"> + <path value="Bundle.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.implicitRules"> + <path value="Bundle.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Bundle.language"> + <path value="Bundle.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Bundle.identifier"> + <path value="Bundle.identifier"/> + <short value="Persistent identifier for the bundle"/> + <definition value="A persistent identifier for the bundle that won't change as a bundle is copied from server to server."/> + <comment value="Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.id"/> + </mapping> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <short value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"/> + <definition value="Indicates the purpose of this bundle - how it is intended to be used."/> + <comment value="It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.type"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <fixedCode value="searchset"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="BundleType"/> + </extension> + <strength value="required"/> + <description value="Indicates the purpose of a bundle - how it is intended to be used."/> + <valueSet value="http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + </element> + <element id="Bundle.timestamp"> + <path value="Bundle.timestamp"/> + <short value="When the bundle was assembled"/> + <definition value="The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle."/> + <comment value="For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated. 

Usage:

* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time
* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message
* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates
* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query
* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning

The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.timestamp"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.init"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.effectiveTime"/> + </mapping> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <short value="If search, the total number of matches"/> + <definition value="If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle."/> + <comment value="Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.total"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <condition value="bdl-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link"> + <path value="Bundle.link"/> + <short value="Links related to this Bundle"/> + <definition value="A series of links that provide context to this bundle."/> + <comment value="Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). 

Bundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http://hl7.org/fhir/R4/http.html#read) directly.

This specification defines some specific uses of Bundle.link for [searching](http://hl7.org/fhir/R4/search.html#conformance) and [paging](http://hl7.org/fhir/R4/http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.link"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.id"> + <path value="Bundle.link.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.extension"> + <path value="Bundle.link.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.modifierExtension"> + <path value="Bundle.link.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.link.relation"> + <path value="Bundle.link.relation"/> + <short value="See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1"/> + <definition value="A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.relation"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.url"> + <path value="Bundle.link.url"/> + <short value="Reference details for the link"/> + <definition value="The reference details for the link."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <rules value="closed"/> + </slicing> + <short value="Entry in the bundle - will have a resource or information"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.resource"> + <path value="Bundle.entry.resource"/> + <short value="A resource in the bundle"/> + <definition value="The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet"> + <path value="Bundle.entry"/> + <sliceName value="SubmissionSet"/> + <short value="SubmissionSets"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.resource"> + <path value="Bundle.entry.resource"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="XDS SubmissionSet"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:SubmissionSet.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:SubmissionSet.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder"> + <path value="Bundle.entry"/> + <sliceName value="Folder"/> + <short value="Folders"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.resource"> + <path value="Bundle.entry.resource"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="XDS Folder"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Folder.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Folder.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folder.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folder.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.signature"> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> + <valueCode value="trial-use"/> + </extension> + <path value="Bundle.signature"/> + <short value="Digital Signature"/> + <definition value="Digital Signature - base64 encoded. XML-DSig or a JWT."/> + <comment value="The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific."/> + <requirements value="A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.signature"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Signature"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Bundle"> + <path value="Bundle"/> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <fixedCode value="searchset"/> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <min value="1"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <rules value="closed"/> + </slicing> + </element> + <element id="Bundle.entry:SubmissionSet"> + <path value="Bundle.entry"/> + <sliceName value="SubmissionSet"/> + <short value="SubmissionSets"/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:SubmissionSet.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <min value="1"/> + </element> + <element id="Bundle.entry:SubmissionSet.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"/> + </type> + </element> + <element id="Bundle.entry:Folder"> + <path value="Bundle.entry"/> + <sliceName value="Folder"/> + <short value="Folders"/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:Folder.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <min value="1"/> + </element> + <element id="Bundle.entry:Folder.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage.xml new file mode 100644 index 0000000000..631f891c94 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage.xml @@ -0,0 +1,2677 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage-definitions.html#Bundle">Bundle</a><a name="Bundle"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage-definitions.html#Bundle.type">type</a><a name="Bundle.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">searchset</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage-definitions.html#Bundle.total">total</a><a name="Bundle.total"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#unsignedInt">unsignedInt</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If search, the total number of matches</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage-definitions.html#Bundle.entry">Slices for entry</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Entry in the bundle - will have a resource or information</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by profile:resource</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck033.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> entry:All Slices<a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Content/Rules for all slices</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0320.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage-definitions.html#Bundle.entry.fullUrl">fullUrl</a><a name="Bundle.entry.fullUrl"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">URI for resource (Absolute URL server address or URI for UUID/OID)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck025.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage-definitions.html#Bundle.entry:DocumentReference" title="Slice DocumentReference">entry:DocumentReference</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">DocumentReference<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0240.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage-definitions.html#Bundle.entry:DocumentReference.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.html" title="DocumentReference">ComprehensiveDocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage"/> + <version value="4.2.1"/> + <name value="FindDocumentReferencesComprehensiveResponse"/> + <title value="MHD Find Document References Comprehensive Response message"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the Find Document References Comprehensive Response message for ITI-67"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Bundle"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + <derivation value="constraint"/> + <snapshot> + <element id="Bundle"> + <path value="Bundle"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.id"> + <path value="Bundle.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta"> + <path value="Bundle.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.implicitRules"> + <path value="Bundle.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Bundle.language"> + <path value="Bundle.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Bundle.identifier"> + <path value="Bundle.identifier"/> + <short value="Persistent identifier for the bundle"/> + <definition value="A persistent identifier for the bundle that won't change as a bundle is copied from server to server."/> + <comment value="Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.id"/> + </mapping> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <short value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"/> + <definition value="Indicates the purpose of this bundle - how it is intended to be used."/> + <comment value="It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.type"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <fixedCode value="searchset"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="BundleType"/> + </extension> + <strength value="required"/> + <description value="Indicates the purpose of a bundle - how it is intended to be used."/> + <valueSet value="http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + </element> + <element id="Bundle.timestamp"> + <path value="Bundle.timestamp"/> + <short value="When the bundle was assembled"/> + <definition value="The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle."/> + <comment value="For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated. 

Usage:

* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time
* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message
* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates
* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query
* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning

The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.timestamp"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.init"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.effectiveTime"/> + </mapping> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <short value="If search, the total number of matches"/> + <definition value="If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle."/> + <comment value="Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.total"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <condition value="bdl-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link"> + <path value="Bundle.link"/> + <short value="Links related to this Bundle"/> + <definition value="A series of links that provide context to this bundle."/> + <comment value="Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). 

Bundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http://hl7.org/fhir/R4/http.html#read) directly.

This specification defines some specific uses of Bundle.link for [searching](http://hl7.org/fhir/R4/search.html#conformance) and [paging](http://hl7.org/fhir/R4/http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.link"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.id"> + <path value="Bundle.link.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.extension"> + <path value="Bundle.link.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.modifierExtension"> + <path value="Bundle.link.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.link.relation"> + <path value="Bundle.link.relation"/> + <short value="See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1"/> + <definition value="A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.relation"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.url"> + <path value="Bundle.link.url"/> + <short value="Reference details for the link"/> + <definition value="The reference details for the link."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Entry in the bundle - will have a resource or information"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.resource"> + <path value="Bundle.entry.resource"/> + <short value="A resource in the bundle"/> + <definition value="The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference"> + <path value="Bundle.entry"/> + <sliceName value="DocumentReference"/> + <short value="DocumentReference"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.resource"> + <path value="Bundle.entry.resource"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentReference.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentReference.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.signature"> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> + <valueCode value="trial-use"/> + </extension> + <path value="Bundle.signature"/> + <short value="Digital Signature"/> + <definition value="Digital Signature - base64 encoded. XML-DSig or a JWT."/> + <comment value="The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific."/> + <requirements value="A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.signature"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Signature"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Bundle"> + <path value="Bundle"/> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <fixedCode value="searchset"/> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <min value="1"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <min value="1"/> + </element> + <element id="Bundle.entry:DocumentReference"> + <path value="Bundle.entry"/> + <sliceName value="DocumentReference"/> + <short value="DocumentReference"/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:DocumentReference.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage.xml new file mode 100644 index 0000000000..d76ce79d45 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage.xml @@ -0,0 +1,2677 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.FindDocumentReferencesResponseMessage"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage-definitions.html#Bundle">Bundle</a><a name="Bundle"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage-definitions.html#Bundle.type">type</a><a name="Bundle.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">searchset</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage-definitions.html#Bundle.total">total</a><a name="Bundle.total"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#unsignedInt">unsignedInt</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If search, the total number of matches</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage-definitions.html#Bundle.entry">Slices for entry</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Entry in the bundle - will have a resource or information</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by profile:resource</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck033.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> entry:All Slices<a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Content/Rules for all slices</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0320.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage-definitions.html#Bundle.entry.fullUrl">fullUrl</a><a name="Bundle.entry.fullUrl"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">URI for resource (Absolute URL server address or URI for UUID/OID)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck025.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage-definitions.html#Bundle.entry:DocumentReference" title="Slice DocumentReference">entry:DocumentReference</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">DocumentReference<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0240.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.FindDocumentReferencesResponseMessage-definitions.html#Bundle.entry:DocumentReference.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference.html" title="DocumentReference">MinimalDocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesResponseMessage"/> + <version value="4.2.1"/> + <name value="FindDocumentReferencesResponse"/> + <title value="MHD Find Document References Response message"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the Find Document References Response message for ITI-67"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Bundle"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + <derivation value="constraint"/> + <snapshot> + <element id="Bundle"> + <path value="Bundle"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.id"> + <path value="Bundle.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta"> + <path value="Bundle.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.implicitRules"> + <path value="Bundle.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Bundle.language"> + <path value="Bundle.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Bundle.identifier"> + <path value="Bundle.identifier"/> + <short value="Persistent identifier for the bundle"/> + <definition value="A persistent identifier for the bundle that won't change as a bundle is copied from server to server."/> + <comment value="Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.id"/> + </mapping> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <short value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"/> + <definition value="Indicates the purpose of this bundle - how it is intended to be used."/> + <comment value="It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.type"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <fixedCode value="searchset"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="BundleType"/> + </extension> + <strength value="required"/> + <description value="Indicates the purpose of a bundle - how it is intended to be used."/> + <valueSet value="http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + </element> + <element id="Bundle.timestamp"> + <path value="Bundle.timestamp"/> + <short value="When the bundle was assembled"/> + <definition value="The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle."/> + <comment value="For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated. 

Usage:

* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time
* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message
* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates
* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query
* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning

The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.timestamp"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.init"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.effectiveTime"/> + </mapping> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <short value="If search, the total number of matches"/> + <definition value="If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle."/> + <comment value="Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.total"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <condition value="bdl-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link"> + <path value="Bundle.link"/> + <short value="Links related to this Bundle"/> + <definition value="A series of links that provide context to this bundle."/> + <comment value="Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). 

Bundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http://hl7.org/fhir/R4/http.html#read) directly.

This specification defines some specific uses of Bundle.link for [searching](http://hl7.org/fhir/R4/search.html#conformance) and [paging](http://hl7.org/fhir/R4/http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.link"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.id"> + <path value="Bundle.link.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.extension"> + <path value="Bundle.link.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.modifierExtension"> + <path value="Bundle.link.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.link.relation"> + <path value="Bundle.link.relation"/> + <short value="See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1"/> + <definition value="A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.relation"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.url"> + <path value="Bundle.link.url"/> + <short value="Reference details for the link"/> + <definition value="The reference details for the link."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Entry in the bundle - will have a resource or information"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.resource"> + <path value="Bundle.entry.resource"/> + <short value="A resource in the bundle"/> + <definition value="The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference"> + <path value="Bundle.entry"/> + <sliceName value="DocumentReference"/> + <short value="DocumentReference"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.resource"> + <path value="Bundle.entry.resource"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentReference.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentReference.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentReference.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentReference.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.signature"> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> + <valueCode value="trial-use"/> + </extension> + <path value="Bundle.signature"/> + <short value="Digital Signature"/> + <definition value="Digital Signature - base64 encoded. XML-DSig or a JWT."/> + <comment value="The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific."/> + <requirements value="A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.signature"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Signature"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Bundle"> + <path value="Bundle"/> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <fixedCode value="searchset"/> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <min value="1"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <rules value="open"/> + </slicing> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <min value="1"/> + </element> + <element id="Bundle.entry:DocumentReference"> + <path value="Bundle.entry"/> + <sliceName value="DocumentReference"/> + <short value="DocumentReference"/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:DocumentReference.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In.xml new file mode 100644 index 0000000000..1be5ab41b4 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In.xml @@ -0,0 +1,1027 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.GenerateMetadata.Parameters.In"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In-definitions.html#Parameters">Parameters</a><a name="Parameters"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/parameters.html">Parameters</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Operation Request or Response</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In-definitions.html#Parameters.parameter">Slices for parameter</a><a name="Parameters.parameter"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="font-style: italic">1</span><span style="font-style: italic">..</span><span style="font-style: italic">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Operation Parameter</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Closed by value:name</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck025.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In-definitions.html#Parameters.parameter:document" title="Slice document">parameter:document</a><a name="Parameters.parameter"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">document</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In-definitions.html#Parameters.parameter:document.name">name</a><a name="Parameters.parameter.name"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Name from the definition</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">value[x]</span><a name="Parameters.parameter.value_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0241.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_choice.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Choice of Types" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.In-definitions.html#Parameters.parameter:document.resource">resource</a><a name="Parameters.parameter.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If parameter is a whole resource</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck02410.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <span title="A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc.">resource</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/binary.html">Binary</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck02400.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <span title="A container for a collection of resources.">resource</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Parameters.In"/> + <version value="4.2.1"/> + <name value="MHDgenerateMetadataParametersIn"/> + <title value="IHE MHD GenerateMetadata Parameters In"/> + <status value="active"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="The Input Parameters for the $generate-metadata operation
- Input: binary, bundle"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Parameters"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + <derivation value="constraint"/> + <snapshot> + <element id="Parameters"> + <path value="Parameters"/> + <short value="Operation Request or Response"/> + <definition value="This resource is a non-persisted resource used to pass information into and back from an [operation](http://hl7.org/fhir/R4/operations.html). It has no other use, and there is no RESTful endpoint associated with it."/> + <comment value="The parameters that may be used are defined by the OperationDefinition resource."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters"/> + <min value="0"/> + <max value="*"/> + </base> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.id"> + <path value="Parameters.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.meta"> + <path value="Parameters.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.implicitRules"> + <path value="Parameters.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Parameters.language"> + <path value="Parameters.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Parameters.parameter"> + <path value="Parameters.parameter"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="name"/> + </discriminator> + <description value="allowed parameters are binary or bundle"/> + <rules value="closed"/> + </slicing> + <short value="Operation Parameter"/> + <definition value="A parameter passed to or received from the operation."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="inv-1"/> + <severity value="error"/> + <human value="A parameter must have one and only one of (value, resource, part)"/> + <expression value="(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))"/> + <xpath value="(exists(f:resource) or exists(f:part) or exists(f:*[starts-with(local-name(.), 'value')])) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:resource))) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:part))) and not(exists(f:part) and exists(f:resource))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.id"> + <path value="Parameters.parameter.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter.extension"> + <path value="Parameters.parameter.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter.modifierExtension"> + <path value="Parameters.parameter.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Parameters.parameter.name"> + <path value="Parameters.parameter.name"/> + <short value="Name from the definition"/> + <definition value="The name of the parameter (reference to the operation definition)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.name"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.value[x]"> + <path value="Parameters.parameter.value[x]"/> + <short value="If parameter is a data type"/> + <definition value="If the parameter is a data type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <type> + <code value="boolean"/> + </type> + <type> + <code value="canonical"/> + </type> + <type> + <code value="code"/> + </type> + <type> + <code value="date"/> + </type> + <type> + <code value="dateTime"/> + </type> + <type> + <code value="decimal"/> + </type> + <type> + <code value="id"/> + </type> + <type> + <code value="instant"/> + </type> + <type> + <code value="integer"/> + </type> + <type> + <code value="markdown"/> + </type> + <type> + <code value="oid"/> + </type> + <type> + <code value="positiveInt"/> + </type> + <type> + <code value="string"/> + </type> + <type> + <code value="time"/> + </type> + <type> + <code value="unsignedInt"/> + </type> + <type> + <code value="uri"/> + </type> + <type> + <code value="url"/> + </type> + <type> + <code value="uuid"/> + </type> + <type> + <code value="Address"/> + </type> + <type> + <code value="Age"/> + </type> + <type> + <code value="Annotation"/> + </type> + <type> + <code value="Attachment"/> + </type> + <type> + <code value="CodeableConcept"/> + </type> + <type> + <code value="Coding"/> + </type> + <type> + <code value="ContactPoint"/> + </type> + <type> + <code value="Count"/> + </type> + <type> + <code value="Distance"/> + </type> + <type> + <code value="Duration"/> + </type> + <type> + <code value="HumanName"/> + </type> + <type> + <code value="Identifier"/> + </type> + <type> + <code value="Money"/> + </type> + <type> + <code value="Period"/> + </type> + <type> + <code value="Quantity"/> + </type> + <type> + <code value="Range"/> + </type> + <type> + <code value="Ratio"/> + </type> + <type> + <code value="Reference"/> + </type> + <type> + <code value="SampledData"/> + </type> + <type> + <code value="Signature"/> + </type> + <type> + <code value="Timing"/> + </type> + <type> + <code value="ContactDetail"/> + </type> + <type> + <code value="Contributor"/> + </type> + <type> + <code value="DataRequirement"/> + </type> + <type> + <code value="Expression"/> + </type> + <type> + <code value="ParameterDefinition"/> + </type> + <type> + <code value="RelatedArtifact"/> + </type> + <type> + <code value="TriggerDefinition"/> + </type> + <type> + <code value="UsageContext"/> + </type> + <type> + <code value="Dosage"/> + </type> + <type> + <code value="Meta"/> + </type> + <condition value="inv-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.resource"> + <path value="Parameters.parameter.resource"/> + <short value="If parameter is a whole resource"/> + <definition value="If the parameter is a whole resource."/> + <comment value="When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <condition value="inv-1"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.part"> + <path value="Parameters.parameter.part"/> + <short value="Named part of a multi-part parameter"/> + <definition value="A named part of a multi-part parameter."/> + <comment value="Only one level of nested parameters is allowed."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters.parameter.part"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:document"> + <path value="Parameters.parameter"/> + <sliceName value="document"/> + <short value="document"/> + <definition value="A parameter passed to or received from the operation."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="inv-1"/> + <severity value="error"/> + <human value="A parameter must have one and only one of (value, resource, part)"/> + <expression value="(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))"/> + <xpath value="(exists(f:resource) or exists(f:part) or exists(f:*[starts-with(local-name(.), 'value')])) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:resource))) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:part))) and not(exists(f:part) and exists(f:resource))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:document.id"> + <path value="Parameters.parameter.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter:document.extension"> + <path value="Parameters.parameter.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter:document.modifierExtension"> + <path value="Parameters.parameter.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Parameters.parameter:document.name"> + <path value="Parameters.parameter.name"/> + <short value="Name from the definition"/> + <definition value="The name of the parameter (reference to the operation definition)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.name"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <fixedString value="document"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:document.value[x]"> + <path value="Parameters.parameter.value[x]"/> + <short value="If parameter is a data type"/> + <definition value="If the parameter is a data type."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Parameters.parameter.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <type> + <code value="boolean"/> + </type> + <type> + <code value="canonical"/> + </type> + <type> + <code value="code"/> + </type> + <type> + <code value="date"/> + </type> + <type> + <code value="dateTime"/> + </type> + <type> + <code value="decimal"/> + </type> + <type> + <code value="id"/> + </type> + <type> + <code value="instant"/> + </type> + <type> + <code value="integer"/> + </type> + <type> + <code value="markdown"/> + </type> + <type> + <code value="oid"/> + </type> + <type> + <code value="positiveInt"/> + </type> + <type> + <code value="string"/> + </type> + <type> + <code value="time"/> + </type> + <type> + <code value="unsignedInt"/> + </type> + <type> + <code value="uri"/> + </type> + <type> + <code value="url"/> + </type> + <type> + <code value="uuid"/> + </type> + <type> + <code value="Address"/> + </type> + <type> + <code value="Age"/> + </type> + <type> + <code value="Annotation"/> + </type> + <type> + <code value="Attachment"/> + </type> + <type> + <code value="CodeableConcept"/> + </type> + <type> + <code value="Coding"/> + </type> + <type> + <code value="ContactPoint"/> + </type> + <type> + <code value="Count"/> + </type> + <type> + <code value="Distance"/> + </type> + <type> + <code value="Duration"/> + </type> + <type> + <code value="HumanName"/> + </type> + <type> + <code value="Identifier"/> + </type> + <type> + <code value="Money"/> + </type> + <type> + <code value="Period"/> + </type> + <type> + <code value="Quantity"/> + </type> + <type> + <code value="Range"/> + </type> + <type> + <code value="Ratio"/> + </type> + <type> + <code value="Reference"/> + </type> + <type> + <code value="SampledData"/> + </type> + <type> + <code value="Signature"/> + </type> + <type> + <code value="Timing"/> + </type> + <type> + <code value="ContactDetail"/> + </type> + <type> + <code value="Contributor"/> + </type> + <type> + <code value="DataRequirement"/> + </type> + <type> + <code value="Expression"/> + </type> + <type> + <code value="ParameterDefinition"/> + </type> + <type> + <code value="RelatedArtifact"/> + </type> + <type> + <code value="TriggerDefinition"/> + </type> + <type> + <code value="UsageContext"/> + </type> + <type> + <code value="Dosage"/> + </type> + <type> + <code value="Meta"/> + </type> + <condition value="inv-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:document.resource"> + <path value="Parameters.parameter.resource"/> + <short value="If parameter is a whole resource"/> + <definition value="If the parameter is a whole resource."/> + <comment value="When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Binary"/> + </type> + <type> + <code value="Bundle"/> + </type> + <condition value="inv-1"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:document.part"> + <path value="Parameters.parameter.part"/> + <short value="Named part of a multi-part parameter"/> + <definition value="A named part of a multi-part parameter."/> + <comment value="Only one level of nested parameters is allowed."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters.parameter.part"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Parameters"> + <path value="Parameters"/> + </element> + <element id="Parameters.parameter"> + <path value="Parameters.parameter"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="name"/> + </discriminator> + <description value="allowed parameters are binary or bundle"/> + <rules value="closed"/> + </slicing> + <min value="1"/> + <max value="1"/> + </element> + <element id="Parameters.parameter:document"> + <path value="Parameters.parameter"/> + <sliceName value="document"/> + <short value="document"/> + <min value="1"/> + <max value="1"/> + </element> + <element id="Parameters.parameter:document.name"> + <path value="Parameters.parameter.name"/> + <fixedString value="document"/> + </element> + <element id="Parameters.parameter:document.value[x]"> + <path value="Parameters.parameter.value[x]"/> + <max value="0"/> + </element> + <element id="Parameters.parameter:document.resource"> + <path value="Parameters.parameter.resource"/> + <min value="1"/> + <type> + <code value="Binary"/> + </type> + <type> + <code value="Bundle"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out.xml new file mode 100644 index 0000000000..d7942dbc38 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out.xml @@ -0,0 +1,869 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.GenerateMetadata.Parameters.Out"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out-definitions.html#Parameters">Parameters</a><a name="Parameters"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/parameters.html">Parameters</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Operation Request or Response</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out-definitions.html#Parameters.parameter">Slices for parameter</a><a name="Parameters.parameter"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="font-style: italic">1</span><span style="font-style: italic">..</span><span style="font-style: italic">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Operation Parameter</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Closed by value:name</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck025.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out-definitions.html#Parameters.parameter:docRef" title="Slice docRef">parameter:docRef</a><a name="Parameters.parameter"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">DocumentReference created</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out-definitions.html#Parameters.parameter:docRef.name">name</a><a name="Parameters.parameter.name"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Name from the definition</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">DocumentReference</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0240.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.GenerateMetadata.Parameters.Out-definitions.html#Parameters.parameter:docRef.value[x]">value[x]</a><a name="Parameters.parameter.value_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If parameter is a data type</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Parameters.Out"/> + <version value="4.2.1"/> + <name value="MHDgenerateMetadataParametersOut"/> + <title value="IHE MHD GenerateMetadata Parameters Out"/> + <status value="active"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="The Output Parameters for the $generate-metadata operation
- Output: DocumentReference reference"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Parameters"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + <derivation value="constraint"/> + <snapshot> + <element id="Parameters"> + <path value="Parameters"/> + <short value="Operation Request or Response"/> + <definition value="This resource is a non-persisted resource used to pass information into and back from an [operation](http://hl7.org/fhir/R4/operations.html). It has no other use, and there is no RESTful endpoint associated with it."/> + <comment value="The parameters that may be used are defined by the OperationDefinition resource."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters"/> + <min value="0"/> + <max value="*"/> + </base> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.id"> + <path value="Parameters.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.meta"> + <path value="Parameters.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.implicitRules"> + <path value="Parameters.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Parameters.language"> + <path value="Parameters.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Parameters.parameter"> + <path value="Parameters.parameter"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="name"/> + </discriminator> + <description value="DocumentReference reference"/> + <rules value="closed"/> + </slicing> + <short value="Operation Parameter"/> + <definition value="A parameter passed to or received from the operation."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="inv-1"/> + <severity value="error"/> + <human value="A parameter must have one and only one of (value, resource, part)"/> + <expression value="(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))"/> + <xpath value="(exists(f:resource) or exists(f:part) or exists(f:*[starts-with(local-name(.), 'value')])) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:resource))) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:part))) and not(exists(f:part) and exists(f:resource))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.id"> + <path value="Parameters.parameter.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter.extension"> + <path value="Parameters.parameter.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter.modifierExtension"> + <path value="Parameters.parameter.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Parameters.parameter.name"> + <path value="Parameters.parameter.name"/> + <short value="Name from the definition"/> + <definition value="The name of the parameter (reference to the operation definition)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.name"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.value[x]"> + <path value="Parameters.parameter.value[x]"/> + <short value="If parameter is a data type"/> + <definition value="If the parameter is a data type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <type> + <code value="boolean"/> + </type> + <type> + <code value="canonical"/> + </type> + <type> + <code value="code"/> + </type> + <type> + <code value="date"/> + </type> + <type> + <code value="dateTime"/> + </type> + <type> + <code value="decimal"/> + </type> + <type> + <code value="id"/> + </type> + <type> + <code value="instant"/> + </type> + <type> + <code value="integer"/> + </type> + <type> + <code value="markdown"/> + </type> + <type> + <code value="oid"/> + </type> + <type> + <code value="positiveInt"/> + </type> + <type> + <code value="string"/> + </type> + <type> + <code value="time"/> + </type> + <type> + <code value="unsignedInt"/> + </type> + <type> + <code value="uri"/> + </type> + <type> + <code value="url"/> + </type> + <type> + <code value="uuid"/> + </type> + <type> + <code value="Address"/> + </type> + <type> + <code value="Age"/> + </type> + <type> + <code value="Annotation"/> + </type> + <type> + <code value="Attachment"/> + </type> + <type> + <code value="CodeableConcept"/> + </type> + <type> + <code value="Coding"/> + </type> + <type> + <code value="ContactPoint"/> + </type> + <type> + <code value="Count"/> + </type> + <type> + <code value="Distance"/> + </type> + <type> + <code value="Duration"/> + </type> + <type> + <code value="HumanName"/> + </type> + <type> + <code value="Identifier"/> + </type> + <type> + <code value="Money"/> + </type> + <type> + <code value="Period"/> + </type> + <type> + <code value="Quantity"/> + </type> + <type> + <code value="Range"/> + </type> + <type> + <code value="Ratio"/> + </type> + <type> + <code value="Reference"/> + </type> + <type> + <code value="SampledData"/> + </type> + <type> + <code value="Signature"/> + </type> + <type> + <code value="Timing"/> + </type> + <type> + <code value="ContactDetail"/> + </type> + <type> + <code value="Contributor"/> + </type> + <type> + <code value="DataRequirement"/> + </type> + <type> + <code value="Expression"/> + </type> + <type> + <code value="ParameterDefinition"/> + </type> + <type> + <code value="RelatedArtifact"/> + </type> + <type> + <code value="TriggerDefinition"/> + </type> + <type> + <code value="UsageContext"/> + </type> + <type> + <code value="Dosage"/> + </type> + <type> + <code value="Meta"/> + </type> + <condition value="inv-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.resource"> + <path value="Parameters.parameter.resource"/> + <short value="If parameter is a whole resource"/> + <definition value="If the parameter is a whole resource."/> + <comment value="When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <condition value="inv-1"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.part"> + <path value="Parameters.parameter.part"/> + <short value="Named part of a multi-part parameter"/> + <definition value="A named part of a multi-part parameter."/> + <comment value="Only one level of nested parameters is allowed."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters.parameter.part"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:docRef"> + <path value="Parameters.parameter"/> + <sliceName value="docRef"/> + <short value="DocumentReference created"/> + <definition value="A parameter passed to or received from the operation."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="inv-1"/> + <severity value="error"/> + <human value="A parameter must have one and only one of (value, resource, part)"/> + <expression value="(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))"/> + <xpath value="(exists(f:resource) or exists(f:part) or exists(f:*[starts-with(local-name(.), 'value')])) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:resource))) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:part))) and not(exists(f:part) and exists(f:resource))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:docRef.id"> + <path value="Parameters.parameter.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter:docRef.extension"> + <path value="Parameters.parameter.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter:docRef.modifierExtension"> + <path value="Parameters.parameter.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Parameters.parameter:docRef.name"> + <path value="Parameters.parameter.name"/> + <short value="Name from the definition"/> + <definition value="The name of the parameter (reference to the operation definition)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.name"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <fixedString value="DocumentReference"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:docRef.value[x]"> + <path value="Parameters.parameter.value[x]"/> + <short value="If parameter is a data type"/> + <definition value="If the parameter is a data type."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + <condition value="inv-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:docRef.resource"> + <path value="Parameters.parameter.resource"/> + <short value="If parameter is a whole resource"/> + <definition value="If the parameter is a whole resource."/> + <comment value="When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <condition value="inv-1"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter:docRef.part"> + <path value="Parameters.parameter.part"/> + <short value="Named part of a multi-part parameter"/> + <definition value="A named part of a multi-part parameter."/> + <comment value="Only one level of nested parameters is allowed."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters.parameter.part"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Parameters"> + <path value="Parameters"/> + </element> + <element id="Parameters.parameter"> + <path value="Parameters.parameter"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="name"/> + </discriminator> + <description value="DocumentReference reference"/> + <rules value="closed"/> + </slicing> + <min value="1"/> + <max value="1"/> + </element> + <element id="Parameters.parameter:docRef"> + <path value="Parameters.parameter"/> + <sliceName value="docRef"/> + <short value="DocumentReference created"/> + <min value="1"/> + <max value="1"/> + </element> + <element id="Parameters.parameter:docRef.name"> + <path value="Parameters.parameter.name"/> + <fixedString value="DocumentReference"/> + </element> + <element id="Parameters.parameter:docRef.value[x]"> + <path value="Parameters.parameter.value[x]"/> + <min value="1"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.List.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.List.xml new file mode 100644 index 0000000000..e857eaf484 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.List.xml @@ -0,0 +1,1204 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.List"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.List-definitions.html#List">List</a><a name="List"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/list.html">List</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck12.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.List-definitions.html#List.extension">Slices for extension</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Extension</span><br/><span style="font-weight:bold">Slice: </span>Unordered, Open by value:url</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.List-definitions.html#List.extension:designationType" title="Extension URL = https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType">designationType</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Clinical code of the List</span><br/><span style="font-weight:bold">URL: </span><a href="http://hl7.org/fhir/R4/StructureDefinition-ihe-designationType.html">https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType</a><br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_modifier_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <span style="text-decoration:line-through">modifierExtension</span><a name="List.modifierExtension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.List-definitions.html#List.code">code</a><a name="List.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">What the purpose of this list is</span><br/><span style="font-weight:bold">Binding: </span><a href="ValueSet-MHDlistTypesVS.html">MHD List Types ValueSet</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.List"/> + <version value="4.2.1"/> + <name value="MhdList"/> + <title value="MHD common List with designationType"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the List resource for MHD. Used with both Folder and SubmissionSet.
- MHD adds a codeable Concept to List for use with Folder and SubmissionSet"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="List"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List"/> + <derivation value="constraint"/> + <snapshot> + <element id="List"> + <path value="List"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + </element> + <element id="List.id"> + <path value="List.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta"> + <path value="List.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.implicitRules"> + <path value="List.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="List.language"> + <path value="List.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="List.text"> + <path value="List.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="List.contained"> + <path value="List.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <short value="Clinical code of the List"/> + <definition value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + </element> + <element id="List.modifierExtension"> + <path value="List.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="List.identifier"> + <path value="List.identifier"/> + <short value="Business identifier"/> + <definition value="Identifier for the List assigned for business purposes outside the context of FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id"/> + </mapping> + </element> + <element id="List.status"> + <path value="List.status"/> + <short value="current | retired | entered-in-error"/> + <definition value="Indicates the current state of this list."/> + <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListStatus"/> + </extension> + <strength value="required"/> + <description value="The current state of the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".status[current=active;retired=obsolete;entered-in-error=nullified]"/> + </mapping> + </element> + <element id="List.mode"> + <path value="List.mode"/> + <short value="working | snapshot | changes"/> + <definition value="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted."/> + <comment value="This element is labeled as a modifier because a change list must not be misunderstood as a complete list."/> + <requirements value="Lists are used in various ways, and it must be known in what way it is safe to use them."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.mode"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If set to "changes", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListMode"/> + </extension> + <strength value="required"/> + <description value="The processing mode that applies to this list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-mode|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + </element> + <element id="List.title"> + <path value="List.title"/> + <short value="Descriptive name for the list"/> + <definition value="A label for the list assigned by the author."/> + <requirements value="Allows customization beyond just the code identifying the kind of list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Dr. Jane's Patients"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".title"/> + </mapping> + </element> + <element id="List.code"> + <path value="List.code"/> + <short value="What the purpose of this list is"/> + <definition value="This code defines the purpose of the list - why it was created."/> + <comment value="If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code."/> + <requirements value="Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.code"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDlistTypesVS"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.what[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <short value="If all resources have the same subject"/> + <definition value="The common subject (or patient) of the resources that are in the list if there is one."/> + <comment value="Some purely arbitrary lists do not have a common subject, so this is optional."/> + <requirements value="The primary purpose of listing the subject explicitly is to help with finding the right list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<SUB].role (and sometimes .player)"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + </element> + <element id="List.encounter"> + <path value="List.encounter"/> + <short value="Context in which list created"/> + <definition value="The encounter that is the context in which this list was created."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.encounter"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> + </mapping> + </element> + <element id="List.date"> + <path value="List.date"/> + <short value="When the list was prepared"/> + <definition value="The date that the list was prepared."/> + <comment value="The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs."/> + <requirements value="Identifies how current the list is which affects relevance."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].time[type=TS]"/> + </mapping> + </element> + <element id="List.source"> + <path value="List.source"/> + <short value="Who and/or what defined the list contents (aka Author)"/> + <definition value="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list."/> + <comment value="The primary source is the entity that made the decisions what items are in the list. This may be software or user."/> + <requirements value="Allows follow-up as well as context."/> + <alias value="Author"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.author"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode<AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]"/> + </mapping> + </element> + <element id="List.orderedBy"> + <path value="List.orderedBy"/> + <short value="What order the list has"/> + <definition value="What order applies to the items in the list."/> + <comment value="Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order."/> + <requirements value="Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.orderedBy"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListOrder"/> + </extension> + <strength value="preferred"/> + <description value="What order applies to the items in a list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-order"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP].sequenceNumber > 1"/> + </mapping> + </element> + <element id="List.note"> + <path value="List.note"/> + <short value="Comments about the list"/> + <definition value="Comments that apply to the overall list."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.note"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Annotation"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ].act.text"/> + </mapping> + </element> + <element id="List.entry"> + <path value="List.entry"/> + <short value="Entries in the list"/> + <definition value="Entries in this list."/> + <comment value="If there are no entries in the list, an emptyReason SHOULD be provided."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]"/> + </mapping> + </element> + <element id="List.entry.id"> + <path value="List.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.extension"> + <path value="List.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.modifierExtension"> + <path value="List.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.entry.flag"> + <path value="List.entry.flag"/> + <short value="Status/Workflow information about this item"/> + <definition value="The flag allows the system constructing the list to indicate the role and significance of the item in the list."/> + <comment value="The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is "changes"."/> + <requirements value="This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.entry.flag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListItemFlag"/> + </extension> + <strength value="example"/> + <description value="Codes that provide further information about the reason and meaning of the item in the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-item-flag"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + </element> + <element id="List.entry.deleted"> + <path value="List.entry.deleted"/> + <short value="If this item is actually marked as deleted"/> + <definition value="True if this item is marked as deleted in the list."/> + <comment value="If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is "changes". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list."/> + <requirements value="The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as "deleted"."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.entry.deleted"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="boolean"/> + </type> + <meaningWhenMissing value="List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'"/> + <condition value="lst-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If deleted is true, then the item included in the list isn't actually part of the list anymore"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="added: .updateMode=("A","AR") retained: .updateMode="NC" updated: .updateMode="R" deleted: .updateMode="D""/> + </mapping> + </element> + <element id="List.entry.date"> + <path value="List.entry.date"/> + <short value="When item added to list"/> + <definition value="When this item was added to the list."/> + <requirements value="The date may be significant for understanding the meaning of items in a working list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.entry.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime"/> + </mapping> + </element> + <element id="List.entry.item"> + <path value="List.entry.item"/> + <short value="Actual entry"/> + <definition value="A reference to the actual resource from which data was derived."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.entry.item"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".target or .role or .role.entity"/> + </mapping> + </element> + <element id="List.emptyReason"> + <path value="List.emptyReason"/> + <short value="Why list is empty"/> + <definition value="If the list is empty, why the list is empty."/> + <comment value="The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases."/> + <requirements value="Allows capturing things like "none exist" or "not asked" which can be important for most lists."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.emptyReason"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListEmptyReason"/> + </extension> + <strength value="preferred"/> + <description value="If a list is empty, why it is empty."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-empty-reason"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="List"> + <path value="List"/> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <min value="0"/> + <max value="*"/> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + </type> + </element> + <element id="List.modifierExtension"> + <path value="List.modifierExtension"/> + <max value="0"/> + </element> + <element id="List.code"> + <path value="List.code"/> + <min value="1"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDlistTypesVS"/> + </binding> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.DocumentReference.xml new file mode 100644 index 0000000000..2d45530d6a --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.DocumentReference.xml @@ -0,0 +1,3527 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Minimal.DocumentReference"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference">DocumentReference</a><a name="DocumentReference"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.meta">meta</a><a name="DocumentReference.meta"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.meta.profile">profile</a><a name="DocumentReference.meta.profile"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">canonical</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/structuredefinition.html">StructureDefinition</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Profiles this resource claims to conform to</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_modifier_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <span style="text-decoration:line-through">modifierExtension</span><a name="DocumentReference.modifierExtension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.masterIdentifier">masterIdentifier</a><a name="DocumentReference.masterIdentifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.UniqueIdIdentifier.html" title="Identifier">UniqueIdIdentifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An identifier intended for computation</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.identifier">Slices for identifier</a><a name="DocumentReference.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red; font-style: italic" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Other identifiers for the document</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by value:use</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck124.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.identifier:entryUUID" title="Slice entryUUID">identifier:entryUUID</a><a name="DocumentReference.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.EntryUUID.Identifier.html" title="Identifier">EntryUUIDIdentifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An identifier intended for computation</span><br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.status">status</a><a name="DocumentReference.status"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">current | superseded | entered-in-error</span><br/><span style="font-weight:bold">Binding: </span><a href="ValueSet-DocumentReferenceStats.html">MHD DocumentReference status codes</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">docStatus</span><a name="DocumentReference.docStatus"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.type">type</a><a name="DocumentReference.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Kind of document (LOINC if possible)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.category">category</a><a name="DocumentReference.category"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span>..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Categorization of document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.subject">subject</a><a name="DocumentReference.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who/what is the subject of the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.date">date</a><a name="DocumentReference.date"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#instant">instant</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">When this document reference was created</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.author">author</a><a name="DocumentReference.author"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/practitionerrole.html">PractitionerRole</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/organization.html">Organization</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/device.html">Device</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/relatedperson.html">RelatedPerson</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who and/or what authored the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.authenticator">authenticator</a><a name="DocumentReference.authenticator"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/practitionerrole.html">PractitionerRole</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/organization.html">Organization</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who/what authenticated the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.custodian">custodian</a><a name="DocumentReference.custodian"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/organization.html">Organization</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Organization which maintains the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.relatesTo">relatesTo</a><a name="DocumentReference.relatesTo"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span><a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints (iti-mhd-repl)">C</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Relationships to other documents</span><br/><span style="font-weight:bold">iti-mhd-repl: </span>a DocumetReference replacements needs to relate to a superseded DocumentReference</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.relatesTo.code">code</a><a name="DocumentReference.relatesTo.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">replaces | transforms | signs | appends</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.relatesTo.target">target</a><a name="DocumentReference.relatesTo.target"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Target of the relationship</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.description">description</a><a name="DocumentReference.description"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Human-readable description</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.securityLabel">securityLabel</a><a name="DocumentReference.securityLabel"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Document security-tags</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content" title="The document and format referenced.">content</a><a name="DocumentReference.content"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span>..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Document referenced</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck111.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.attachment">attachment</a><a name="DocumentReference.content.attachment"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.attachment.contentType">contentType</a><a name="DocumentReference.content.attachment.contentType"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Mime type of the content, with charset etc.</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.attachment.language">language</a><a name="DocumentReference.content.attachment.language"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Human language of the content (BCP-47)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">data</span><a name="DocumentReference.content.attachment.data"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.attachment.url">url</a><a name="DocumentReference.content.attachment.url"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#url">url</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Uri where the data can be found</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.attachment.size">size</a><a name="DocumentReference.content.attachment.size"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#unsignedInt">unsignedInt</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Number of bytes of content (if url provided)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.attachment.hash">hash</a><a name="DocumentReference.content.attachment.hash"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#base64Binary">base64Binary</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Hash of the data (sha-1, base64ed)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.attachment.title">title</a><a name="DocumentReference.content.attachment.title"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Label to display in place of the data</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.attachment.creation">creation</a><a name="DocumentReference.content.attachment.creation"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Date attachment was first created</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.content.format">format</a><a name="DocumentReference.content.format"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Format/content rules for the document</span><br/><span style="font-weight:bold">Binding: </span><a href="https://profiles.ihe.net/fhir/ihe.formatcode.fhir/1.1.0/ValueSet-formatcode.html">IHE ValueSet of Format Codes for use with Document Sharing</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.">preferred</a>)</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context">context</a><a name="DocumentReference.context"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.encounter">encounter</a><a name="DocumentReference.context.encounter"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/encounter.html">Encounter</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/episodeofcare.html">EpisodeOfCare</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Context of the document content</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.event">event</a><a name="DocumentReference.context.event"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Main clinical acts documented</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck011.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.period">period</a><a name="DocumentReference.context.period"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Period">Period</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Time of service that is being documented</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.period.start">start</a><a name="DocumentReference.context.period.start"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Starting time with inclusive boundary</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.period.end">end</a><a name="DocumentReference.context.period.end"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">End time with inclusive boundary, if not ongoing</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.facilityType">facilityType</a><a name="DocumentReference.context.facilityType"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Kind of facility where patient was seen</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.practiceSetting">practiceSetting</a><a name="DocumentReference.context.practiceSetting"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional details about where the content was created (e.g. clinical specialty)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck011.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.sourcePatientInfo">sourcePatientInfo</a><a name="DocumentReference.context.sourcePatientInfo"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Patient demographics from source</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.sourcePatientInfo.reference">reference</a><a name="DocumentReference.context.sourcePatientInfo.reference"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Literal reference, Relative, internal or absolute URL</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.sourcePatientInfo.identifier">identifier</a><a name="DocumentReference.context.sourcePatientInfo.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Logical reference, when literal reference is not known</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference-definitions.html#DocumentReference.context.related">related</a><a name="DocumentReference.context.related"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/resource.html">Resource</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Related identifiers or resources</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + <version value="4.2.1"/> + <name value="MinimalDocumentReference"/> + <title value="MHD DocumentReference Minimal"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the DocumentReference resource for MHD with minimal metadata constraints. 
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR DocumentReference implementation of the 
- ebRIM implementation at [3:4.2.3.2 Document Entry](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.2).
- with use-cases and constraints found in [3:4.3 Additional Document Sharing Requirements](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="workflow"/> + <uri value="http://hl7.org/fhir/workflow"/> + <name value="Workflow Pattern"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <uri value="http://hl7.org/fhir/composition"/> + <name value="FHIR Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="xds"/> + <uri value="http://ihe.net/xds"/> + <name value="XDS metadata equivalent"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <uri value="XDS"/> + <name value="XDS and MHD Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="DocumentReference"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + <derivation value="constraint"/> + <snapshot> + <element id="DocumentReference"> + <path value="DocumentReference"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="DocumentReference.id"> + <path value="DocumentReference.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta"> + <path value="DocumentReference.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.id"> + <path value="DocumentReference.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.meta.extension"> + <path value="DocumentReference.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.meta.versionId"> + <path value="DocumentReference.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.lastUpdated"> + <path value="DocumentReference.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.source"> + <path value="DocumentReference.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.profile"> + <path value="DocumentReference.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.limitedMetadata"/> + </mapping> + </element> + <element id="DocumentReference.meta.security"> + <path value="DocumentReference.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="DocumentReference.meta.tag"> + <path value="DocumentReference.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="DocumentReference.implicitRules"> + <path value="DocumentReference.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="DocumentReference.language"> + <path value="DocumentReference.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="DocumentReference.text"> + <path value="DocumentReference.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="DocumentReference.contained"> + <path value="DocumentReference.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.extension"> + <path value="DocumentReference.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.modifierExtension"> + <path value="DocumentReference.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="DocumentReference.masterIdentifier"> + <path value="DocumentReference.masterIdentifier"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <comment value="CDA Document Id extension and root."/> + <requirements value="The structure and format of this Id shall be consistent with the specification corresponding to the formatCode attribute. (e.g. for a DICOM standard document a 64-character numeric UID, for an HL7 CDA format a serialization of the CDA Document Id extension and root in the form "oid^extension", where OID is a 64 digits max, and the Id is a 16 UTF-8 char max. If the OID is coded without the extension then the '^' character shall not be included.)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.masterIdentifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.uniqueId"/> + </mapping> + </element> + <element id="DocumentReference.identifier"> + <path value="DocumentReference.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Other identifiers for the document"/> + <definition value="Other identifiers associated with the document, including version independent identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.identifier"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-16?"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id / .setId"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.entryUUID"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.entryUUID"/> + </mapping> + </element> + <element id="DocumentReference.identifier:entryUUID"> + <path value="DocumentReference.identifier"/> + <sliceName value="entryUUID"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="DocumentReference.status"> + <path value="DocumentReference.status"/> + <short value="current | superseded | entered-in-error"/> + <definition value="The status of this document reference."/> + <comment value="This is the status of the DocumentReference object, which might be independent from the docStatus element.

This element is labeled as a modifier because the status contains the codes that mark the document or reference as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/DocumentReferenceStats"/> + </binding> + <mapping> + <identity value="workflow"/> + <map value="Event.status"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-19"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="interim: .completionCode="IN" & ./statusCode[isNormalDatatype()]="active"; final: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and not(./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct()]); amended: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and ./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct() and statusCode="completed"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]="obsolete""/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.availabilityStatus"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.availabilityStatus"/> + </mapping> + </element> + <element id="DocumentReference.docStatus"> + <path value="DocumentReference.docStatus"/> + <short value="preliminary | final | amended | entered-in-error"/> + <definition value="The status of the underlying document."/> + <comment value="The document that is pointed to might be in various lifecycle states."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DocumentReference.docStatus"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ReferredDocumentStatus"/> + </extension> + <strength value="required"/> + <description value="Status of the underlying document."/> + <valueSet value="http://hl7.org/fhir/ValueSet/composition-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.status"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-17"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".statusCode"/> + </mapping> + </element> + <element id="DocumentReference.type"> + <path value="DocumentReference.type"/> + <short value="Kind of document (LOINC if possible)"/> + <definition value="Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced."/> + <comment value="Key metadata element describing the document that describes he exact type of document. Helps humans to assess whether the document is of interest when viewing a list of documents."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80Type"/> + </extension> + <strength value="preferred"/> + <description value="Precise type of clinical document."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-doc-typecodes"/> + </binding> + <mapping> + <identity value="workflow"/> + <map value="Event.code"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.type"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-2"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.type"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/code/@code 

The typeCode should be mapped from the ClinicalDocument/code element to a set of document type codes configured in the affinity domain. One suggested coding system to use for typeCode is LOINC, in which case the mapping step can be omitted."/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.typeCode"/> + </mapping> + </element> + <element id="DocumentReference.category"> + <path value="DocumentReference.category"/> + <short value="Categorization of document"/> + <definition value="A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type."/> + <comment value="Key metadata element describing the the category or classification of the document. This is a broader perspective that groups similar documents based on how they would be used. This is a primary key used in searching."/> + <alias value="claxs"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.category"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80Class"/> + </extension> + <strength value="example"/> + <description value="High-level kind of a clinical document at a macro level."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-classcodes"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.class"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="Derived from a mapping of /ClinicalDocument/code/@code to an Affinity Domain specified coded value to use and coding system. Affinity Domains are encouraged to use the appropriate value for Type of Service, based on the LOINC Type of Service (see Page 53 of the LOINC User's Manual). Must be consistent with /ClinicalDocument/code/@code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.classCode"/> + </mapping> + </element> + <element id="DocumentReference.subject"> + <path value="DocumentReference.subject"/> + <short value="Who/what is the subject of the document"/> + <definition value="Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.subject"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.subject"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="PID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="SBJ"].role[typeCode="PAT"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.patientId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/recordTarget/"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.patientId"/> + </mapping> + </element> + <element id="DocumentReference.date"> + <path value="DocumentReference.date"/> + <short value="When this document reference was created"/> + <definition value="When the document reference was created."/> + <comment value="Referencing/indexing time is used for tracking, organizing versions and searching."/> + <alias value="indexed"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.occurrence[x]"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.date"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime[type="TS"]"/> + </mapping> + </element> + <element id="DocumentReference.author"> + <path value="DocumentReference.author"/> + <short value="Who and/or what authored the document"/> + <definition value="Identifies who is responsible for adding the information to the document."/> + <comment value="Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.author"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.author"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-9 (No standard way to indicate a Device in HL7 v2 MDM message)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="AUT"].role[classCode="ASSIGNED"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.author"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/author"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.author"/> + </mapping> + </element> + <element id="DocumentReference.authenticator"> + <path value="DocumentReference.authenticator"/> + <short value="Who/what authenticated the document"/> + <definition value="Which person or organization authenticates that this document is valid."/> + <comment value="Represents a participant within the author institution who has legally authenticated or attested the document. Legal authentication implies that a document has been signed manually or electronically by the legal Authenticator."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.authenticator"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.witness"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.attester"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-10"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.legalAuthenticator"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/legalAuthenticator"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.legalAuthenticator"/> + </mapping> + </element> + <element id="DocumentReference.custodian"> + <path value="DocumentReference.custodian"/> + <short value="Organization which maintains the document"/> + <definition value="Identifies the organization or group who is responsible for ongoing maintenance of and access to the document."/> + <comment value="Identifies the logical organization (software system, vendor, or department) to go to find the current version, where to report issues, etc. This is different from the physical location (URL, disk drive, or server) of the document, which is the technical location of the document, which host may be delegated to the management of some other organization."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.custodian"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.custodian"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"]"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="not mapped"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo"> + <path value="DocumentReference.relatesTo"/> + <short value="Relationships to other documents"/> + <definition value="Relationships that this document has with other document references that already exist."/> + <comment value="This element is labeled as a modifier because documents that append to other documents are incomplete on their own."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.relatesTo"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="iti-mhd-repl"/> + <severity value="error"/> + <human value="a DocumetReference replacements needs to relate to a superseded DocumentReference"/> + <expression value="code='replaces' implies target.exists()"/> + <source value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.id"> + <path value="DocumentReference.relatesTo.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.extension"> + <path value="DocumentReference.relatesTo.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.modifierExtension"> + <path value="DocumentReference.relatesTo.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.code"> + <path value="DocumentReference.relatesTo.code"/> + <short value="replaces | transforms | signs | appends"/> + <definition value="The type of relationship that this document has with anther document."/> + <comment value="If this document appends another document, then the document cannot be fully understood without also accessing the referenced document."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.relatesTo.code"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentRelationshipType"/> + </extension> + <strength value="required"/> + <description value="The type of relationship between documents."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo.code"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship.typeCode"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations type"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations.type"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.target"> + <path value="DocumentReference.relatesTo.target"/> + <short value="Target of the relationship"/> + <definition value="The target document of this relationship."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.relatesTo.target"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo.target"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".target[classCode="DOC", moodCode="EVN"].id"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations reference"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations.reference"/> + </mapping> + </element> + <element id="DocumentReference.description"> + <path value="DocumentReference.description"/> + <short value="Human-readable description"/> + <definition value="Human-readable description of the source document."/> + <comment value="What the document is about, a terse summary of the document."/> + <requirements value="Helps humans to assess whether the document is of interest."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.description"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="TXA-25"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode="SUBJ"].target.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.comments"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.comments"/> + </mapping> + </element> + <element id="DocumentReference.securityLabel"> + <path value="DocumentReference.securityLabel"/> + <short value="Document security-tags"/> + <definition value="A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the "reference" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to."/> + <comment value="The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce. 

In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects."/> + <requirements value="Use of the Health Care Privacy/Security Classification (HCS) system of security-tag use is recommended."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.securityLabel"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.confidentiality, Composition.meta.security"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-18"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".confidentialityCode"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.confidentialityCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/confidentialityCode/@code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.confidentialityCode"/> + </mapping> + </element> + <element id="DocumentReference.content"> + <path value="DocumentReference.content"/> + <short value="Document referenced"/> + <definition value="The document and format referenced."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content"/> + <min value="1"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Bundle(Composition+*)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + </element> + <element id="DocumentReference.content.id"> + <path value="DocumentReference.content.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.extension"> + <path value="DocumentReference.content.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.modifierExtension"> + <path value="DocumentReference.content.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment"> + <path value="DocumentReference.content.attachment"/> + <short value="Where to access the document"/> + <definition value="The document or URL of the document along with critical metadata to prove content has integrity."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content.attachment"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Attachment"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.language, 
Composition.title, 
Composition.date"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-3 for mime type"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.mimeType, DocumentEntry.languageCode, DocumentEntry.URI, DocumentEntry.size, DocumentEntry.hash, DocumentEntry.title, DocumentEntry.creationTime"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/languageCode, ClinicalDocument/title, ClinicalDocument/date"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.id"> + <path value="DocumentReference.content.attachment.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.extension"> + <path value="DocumentReference.content.attachment.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.contentType"> + <path value="DocumentReference.content.attachment.contentType"/> + <short value="Mime type of the content, with charset etc."/> + <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate."/> + <requirements value="Processors of the data need to be able to know how to interpret the data."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.contentType"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <example> + <label value="General"/> + <valueCode value="text/plain; charset=UTF-8, image/png"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="MimeType"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="required"/> + <description value="The mime type of an attachment. Any valid mime type is allowed."/> + <valueSet value="http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./mediaType, ./charset"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.mimeType"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.language"> + <path value="DocumentReference.content.attachment.language"/> + <short value="Human language of the content (BCP-47)"/> + <definition value="The human language of the content. The value can be any valid value according to BCP 47."/> + <requirements value="Users need to be able to choose between the languages in a set of attachments."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <example> + <label value="General"/> + <valueCode value="en-AU"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="./language"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.languageCode"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.data"> + <path value="DocumentReference.content.attachment.data"/> + <short value="Data inline, base64ed"/> + <definition value="The actual data of the attachment - a sequence of bytes, base64 encoded."/> + <comment value="The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON."/> + <requirements value="The data needs to able to be transmitted inline."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Attachment.data"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="v2"/> + <map value="ED.5"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./data"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.url"> + <path value="DocumentReference.content.attachment.url"/> + <short value="Uri where the data can be found"/> + <definition value="A location where the data can be accessed."/> + <comment value="If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data."/> + <requirements value="The data needs to be transmitted by reference."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.url"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="url"/> + </type> + <example> + <label value="General"/> + <valueUrl value="http://www.acme.com/logo-small.png"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./reference/literal"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.repositoryUniqueId or DocuemntEntry.URI"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.size"> + <path value="DocumentReference.content.attachment.size"/> + <short value="Number of bytes of content (if url provided)"/> + <definition value="The number of bytes of data that make up this attachment (before base64 encoding, if that is done)."/> + <comment value="The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference."/> + <requirements value="Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.size"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A (needs data type R3 proposal)"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.size"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.hash"> + <path value="DocumentReference.content.attachment.hash"/> + <short value="Hash of the data (sha-1, base64ed)"/> + <definition value="The calculated hash of the data using SHA-1. Represented using base64."/> + <comment value="The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](http://hl7.org/fhir/R4/provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature."/> + <requirements value="Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.hash"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.hash"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.title"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="DocumentReference.content.attachment.title"/> + <short value="Label to display in place of the data"/> + <definition value="A label or set of text to display in place of the data."/> + <requirements value="Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Official Corporate Logo"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="./title/data"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.title"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.creation"> + <path value="DocumentReference.content.attachment.creation"/> + <short value="Date attachment was first created"/> + <definition value="The date that the attachment was first created."/> + <requirements value="This is often tracked as an integrity issue for use of the attachment."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.creation"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A (needs data type R3 proposal)"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.creationTime"/> + </mapping> + </element> + <element id="DocumentReference.content.format"> + <path value="DocumentReference.content.format"/> + <short value="Format/content rules for the document"/> + <definition value="An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType."/> + <comment value="Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.content.format"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="preferred"/> + <valueSet value="http://ihe.net/fhir/ihe.formatcode.fhir/ValueSet/formatcode"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.meta.profile"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.formatCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="derived from the IHE Profile or Implementation Guide templateID"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.formatCode"/> + </mapping> + </element> + <element id="DocumentReference.context"> + <path value="DocumentReference.context"/> + <short value="Clinical context of document"/> + <definition value="The clinical context in which the document was prepared."/> + <comment value="These values are primarily added to help with searching for interesting/relevant documents."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="outboundRelationship[typeCode="SUBJ"].target[classCode<'ACT']"/> + </mapping> + </element> + <element id="DocumentReference.context.id"> + <path value="DocumentReference.context.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.extension"> + <path value="DocumentReference.context.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.modifierExtension"> + <path value="DocumentReference.context.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.encounter"> + <path value="DocumentReference.context.encounter"/> + <short value="Context of the document content"/> + <definition value="Describes the clinical encounter or type of care that the document content is associated with."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.encounter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.context"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.encounter"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct])"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.referenceIdList with CXi encoding for urn:ihe:iti:xds:2015:encounterId"/> + </mapping> + </element> + <element id="DocumentReference.context.event"> + <path value="DocumentReference.context.event"/> + <short value="Main clinical acts documented"/> + <definition value="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the type Code, such as a "History and Physical Report" in which the procedure being documented is necessarily a "History and Physical" act."/> + <comment value="An event can further specialize the act inherent in the type, such as where it is simply "Procedure Report" and the procedure was a "colonoscopy". If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.event"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentEventType"/> + </extension> + <strength value="example"/> + <description value="This list of codes represents the main clinical acts being documented."/> + <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActCode"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.code"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.eventCodeList"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.eventCodeList"/> + </mapping> + </element> + <element id="DocumentReference.context.period"> + <path value="DocumentReference.context.period"/> + <short value="Time of service that is being documented"/> + <definition value="The time period over which the service that is described by the document was provided."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.period"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Period"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.period"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".effectiveTime"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.serviceStartTime, DocumentEntry.serviceStopTime"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/low/
@value --> ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/high/
@value"/> + </mapping> + </element> + <element id="DocumentReference.context.period.id"> + <path value="DocumentReference.context.period.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.period.extension"> + <path value="DocumentReference.context.period.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.period.start"> + <path value="DocumentReference.context.period.start"/> + <short value="Starting time with inclusive boundary"/> + <definition value="The start of the period. The boundary is inclusive."/> + <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Period.start"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <condition value="per-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="DR.1"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./low"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumetEntry.serviceStartTime"/> + </mapping> + </element> + <element id="DocumentReference.context.period.end"> + <path value="DocumentReference.context.period.end"/> + <short value="End time with inclusive boundary, if not ongoing"/> + <definition value="The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> + <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Period.end"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> + <condition value="per-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="DR.2"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./high"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.serviceStopTime"/> + </mapping> + </element> + <element id="DocumentReference.context.facilityType"> + <path value="DocumentReference.context.facilityType"/> + <short value="Kind of facility where patient was seen"/> + <definition value="The kind of facility where the patient was seen."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.facilityType"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80FacilityType"/> + </extension> + <strength value="example"/> + <description value="XDS Facility Type."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-facilitycodes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="LOC"].role[classCode="DSDLOC"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.healthcareFacilityTypeCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="usually a mapping to a local ValueSet. Must be consistent with /clinicalDocument/code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.healthcareFacilityTypeCode"/> + </mapping> + </element> + <element id="DocumentReference.context.practiceSetting"> + <path value="DocumentReference.context.practiceSetting"/> + <short value="Additional details about where the content was created (e.g. clinical specialty)"/> + <definition value="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty."/> + <comment value="This element should be based on a coarse classification system for the class of specialty practice. Recommend the use of the classification system for Practice Setting, such as that described by the Subject Matter Domain in LOINC."/> + <requirements value="This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.practiceSetting"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80PracticeSetting"/> + </extension> + <strength value="example"/> + <description value="Additional details about where the content was created (e.g. clinical specialty)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-practice-codes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="LOC"].role[classCode="DSDLOC"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.practiceSettingCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.practiceSettingCode"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo"> + <path value="DocumentReference.context.sourcePatientInfo"/> + <short value="Patient demographics from source"/> + <definition value="The Patient Information as known when the document was published. May be a reference to a version specific, or contained."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.sourcePatientInfo"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.subject"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="SBJ"].role[typeCode="PAT"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.sourcePatientInfo, DocumentEntry.sourcePatientId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/recordTarget/"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.id"> + <path value="DocumentReference.context.sourcePatientInfo.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.extension"> + <path value="DocumentReference.context.sourcePatientInfo.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.reference"> + <path value="DocumentReference.context.sourcePatientInfo.reference"/> + <short value="Literal reference, Relative, internal or absolute URL"/> + <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."/> + <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.reference"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <condition value="ref-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.sourcePatientInfo"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.type"> + <path value="DocumentReference.context.sourcePatientInfo.type"/> + <short value="Type the reference refers to (e.g. "Patient")"/> + <definition value="The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)."/> + <comment value="This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="FHIRResourceTypeExt"/> + </extension> + <strength value="extensible"/> + <description value="Aa resource (or, for logical models, the URI of the logical model)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/resource-types"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.identifier"> + <path value="DocumentReference.context.sourcePatientInfo.identifier"/> + <short value="Logical reference, when literal reference is not known"/> + <definition value="An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."/> + <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. 

When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".identifier"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.sourcePatientId"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.display"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="DocumentReference.context.sourcePatientInfo.display"/> + <short value="Text alternative for the resource"/> + <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> + <comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.display"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.related"> + <path value="DocumentReference.context.related"/> + <short value="Related identifiers or resources"/> + <definition value="Related identifiers or resources associated with the DocumentReference."/> + <comment value="May be identifiers or resources that caused the DocumentReference or referenced Document to be created."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.related"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.detail"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.referenceIdList"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/relatedDocument"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.referenceIdList using CXi encoding for type when possible"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="DocumentReference"> + <path value="DocumentReference"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="DocumentReference.meta.profile"> + <path value="DocumentReference.meta.profile"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.limitedMetadata"/> + </mapping> + </element> + <element id="DocumentReference.modifierExtension"> + <path value="DocumentReference.modifierExtension"/> + <max value="0"/> + </element> + <element id="DocumentReference.masterIdentifier"> + <path value="DocumentReference.masterIdentifier"/> + <min value="1"/> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + </type> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.uniqueId"/> + </mapping> + </element> + <element id="DocumentReference.identifier"> + <path value="DocumentReference.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.entryUUID"/> + </mapping> + </element> + <element id="DocumentReference.identifier:entryUUID"> + <path value="DocumentReference.identifier"/> + <sliceName value="entryUUID"/> + <min value="0"/> + <max value="*"/> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + </element> + <element id="DocumentReference.status"> + <path value="DocumentReference.status"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/DocumentReferenceStats"/> + </binding> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.availabilityStatus"/> + </mapping> + </element> + <element id="DocumentReference.docStatus"> + <path value="DocumentReference.docStatus"/> + <max value="0"/> + </element> + <element id="DocumentReference.type"> + <path value="DocumentReference.type"/> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.typeCode"/> + </mapping> + </element> + <element id="DocumentReference.category"> + <path value="DocumentReference.category"/> + <max value="1"/> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.classCode"/> + </mapping> + </element> + <element id="DocumentReference.subject"> + <path value="DocumentReference.subject"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.patientId"/> + </mapping> + </element> + <element id="DocumentReference.date"> + <path value="DocumentReference.date"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.author"> + <path value="DocumentReference.author"/> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.author"/> + </mapping> + </element> + <element id="DocumentReference.authenticator"> + <path value="DocumentReference.authenticator"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.legalAuthenticator"/> + </mapping> + </element> + <element id="DocumentReference.custodian"> + <path value="DocumentReference.custodian"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="not mapped"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo"> + <path value="DocumentReference.relatesTo"/> + <constraint> + <key value="iti-mhd-repl"/> + <severity value="error"/> + <human value="a DocumetReference replacements needs to relate to a superseded DocumentReference"/> + <expression value="code='replaces' implies target.exists()"/> + <source value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + </constraint> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.code"> + <path value="DocumentReference.relatesTo.code"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations.type"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.target"> + <path value="DocumentReference.relatesTo.target"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations.reference"/> + </mapping> + </element> + <element id="DocumentReference.description"> + <path value="DocumentReference.description"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.comments"/> + </mapping> + </element> + <element id="DocumentReference.securityLabel"> + <path value="DocumentReference.securityLabel"/> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.confidentialityCode"/> + </mapping> + </element> + <element id="DocumentReference.content"> + <path value="DocumentReference.content"/> + <definition value="The document and format referenced."/> + <max value="1"/> + </element> + <element id="DocumentReference.content.attachment.contentType"> + <path value="DocumentReference.content.attachment.contentType"/> + <min value="1"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.mimeType"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.language"> + <path value="DocumentReference.content.attachment.language"/> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.languageCode"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.data"> + <path value="DocumentReference.content.attachment.data"/> + <max value="0"/> + </element> + <element id="DocumentReference.content.attachment.url"> + <path value="DocumentReference.content.attachment.url"/> + <min value="1"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.repositoryUniqueId or DocuemntEntry.URI"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.size"> + <path value="DocumentReference.content.attachment.size"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.size"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.hash"> + <path value="DocumentReference.content.attachment.hash"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.hash"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.title"> + <path value="DocumentReference.content.attachment.title"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.title"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.creation"> + <path value="DocumentReference.content.attachment.creation"/> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.creationTime"/> + </mapping> + </element> + <element id="DocumentReference.content.format"> + <path value="DocumentReference.content.format"/> + <mustSupport value="true"/> + <binding> + <strength value="preferred"/> + <valueSet value="http://ihe.net/fhir/ihe.formatcode.fhir/ValueSet/formatcode"/> + </binding> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.formatCode"/> + </mapping> + </element> + <element id="DocumentReference.context.encounter"> + <path value="DocumentReference.context.encounter"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.referenceIdList with CXi encoding for urn:ihe:iti:xds:2015:encounterId"/> + </mapping> + </element> + <element id="DocumentReference.context.event"> + <path value="DocumentReference.context.event"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.eventCodeList"/> + </mapping> + </element> + <element id="DocumentReference.context.period"> + <path value="DocumentReference.context.period"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.context.period.start"> + <path value="DocumentReference.context.period.start"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumetEntry.serviceStartTime"/> + </mapping> + </element> + <element id="DocumentReference.context.period.end"> + <path value="DocumentReference.context.period.end"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.serviceStopTime"/> + </mapping> + </element> + <element id="DocumentReference.context.facilityType"> + <path value="DocumentReference.context.facilityType"/> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.healthcareFacilityTypeCode"/> + </mapping> + </element> + <element id="DocumentReference.context.practiceSetting"> + <path value="DocumentReference.context.practiceSetting"/> + <mustSupport value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.practiceSettingCode"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo"> + <path value="DocumentReference.context.sourcePatientInfo"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.context.sourcePatientInfo.reference"> + <path value="DocumentReference.context.sourcePatientInfo.reference"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.sourcePatientInfo"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.identifier"> + <path value="DocumentReference.context.sourcePatientInfo.identifier"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.sourcePatientId"/> + </mapping> + </element> + <element id="DocumentReference.context.related"> + <path value="DocumentReference.context.related"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.referenceIdList using CXi encoding for type when possible"/> + </mapping> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.Folder.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.Folder.xml new file mode 100644 index 0000000000..821d85e121 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.Folder.xml @@ -0,0 +1,1806 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Minimal.Folder"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List">List</a><a name="List"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.List.html">MhdList</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.meta">meta</a><a name="List.meta"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.meta.profile">profile</a><a name="List.meta.profile"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">canonical</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/structuredefinition.html">StructureDefinition</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Profiles this resource claims to conform to</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.extension:designationType" title="Slice designationType">extension:designationType</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="StructureDefinition-ihe-designationType.html" title="Extension">DesignationType</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Clinical code of the List</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: white; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.identifier">Slices for identifier</a><a name="List.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Business identifier</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by value:use</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.identifier:uniqueId" title="Slice uniqueId">identifier:uniqueId</a><a name="List.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.UniqueIdIdentifier.html" title="Identifier">UniqueIdIdentifier</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An identifier intended for computation</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck124.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.identifier:entryUUID" title="Slice entryUUID">identifier:entryUUID</a><a name="List.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.EntryUUID.Identifier.html" title="Identifier">EntryUUIDIdentifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An identifier intended for computation</span><br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.status">status</a><a name="List.status"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">current | retired | entered-in-error</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.mode">mode</a><a name="List.mode"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">working | snapshot | changes</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">working</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.title">title</a><a name="List.title"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Descriptive name for the list</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.code">code</a><a name="List.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">What the purpose of this list is</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">At least the following</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck101.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R4/datatypes-definitions.html#CodeableConcept.coding">coding</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Code defined by a terminology system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">(complex)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: white; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system">system</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Identity of the terminology system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R4/datatypes-definitions.html#Coding.code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Symbol in syntax defined by the system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">folder</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.subject">subject</a><a name="List.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If all resources have the same subject</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">encounter</span><a name="List.encounter"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.date">date</a><a name="List.date"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">When the list was prepared</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">source</span><a name="List.source"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">orderedBy</span><a name="List.orderedBy"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.note">note</a><a name="List.note"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span>..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Annotation">Annotation</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Comments about the list</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.entry">entry</a><a name="List.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">flag</span><a name="List.entry.flag"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">deleted</span><a name="List.entry.deleted"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">date</span><a name="List.entry.date"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.Folder-definitions.html#List.entry.item">item</a><a name="List.entry.item"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Actual entry</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">emptyReason</span><a name="List.emptyReason"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"/> + <version value="4.2.1"/> + <name value="Folder"/> + <title value="MHD Folder Minimal"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the List resource for MHD use as a Folder with minimal metadata constraints. 
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR List for use as a Folder implementation of the 
- ebRIM implementation at [3:4.2.3.4 Folder Attributes](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.4).
- with use-cases and constraints found in [3:4.3 Additional Document Sharing Requirements](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <uri value="XDS"/> + <name value="XDS and MHD Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="List"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.List"/> + <derivation value="constraint"/> + <snapshot> + <element id="List"> + <path value="List"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="XDS Folder"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="List.id"> + <path value="List.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta"> + <path value="List.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.id"> + <path value="List.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.extension"> + <path value="List.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.versionId"> + <path value="List.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.lastUpdated"> + <path value="List.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.source"> + <path value="List.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.profile"> + <path value="List.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.limitedMetadata"/> + </mapping> + </element> + <element id="List.meta.security"> + <path value="List.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="List.meta.tag"> + <path value="List.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="List.implicitRules"> + <path value="List.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="List.language"> + <path value="List.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="List.text"> + <path value="List.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="List.contained"> + <path value="List.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <short value="Clinical code of the List"/> + <definition value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.codeList"/> + </mapping> + </element> + <element id="List.modifierExtension"> + <path value="List.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="List.identifier"> + <path value="List.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Business identifier"/> + <definition value="Identifier for the List assigned for business purposes outside the context of FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.entryUUID and Folder.uniqueId"/> + </mapping> + </element> + <element id="List.identifier:uniqueId"> + <path value="List.identifier"/> + <sliceName value="uniqueId"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.identifier:entryUUID"> + <path value="List.identifier"/> + <sliceName value="entryUUID"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.status"> + <path value="List.status"/> + <short value="current | retired | entered-in-error"/> + <definition value="Indicates the current state of this list."/> + <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListStatus"/> + </extension> + <strength value="required"/> + <description value="The current state of the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".status[current=active;retired=obsolete;entered-in-error=nullified]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.availabilityStatus"/> + </mapping> + </element> + <element id="List.mode"> + <path value="List.mode"/> + <short value="working | snapshot | changes"/> + <definition value="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted."/> + <comment value="This element is labeled as a modifier because a change list must not be misunderstood as a complete list."/> + <requirements value="Lists are used in various ways, and it must be known in what way it is safe to use them."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.mode"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="working"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If set to "changes", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListMode"/> + </extension> + <strength value="required"/> + <description value="The processing mode that applies to this list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-mode|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="shall be 'working'"/> + </mapping> + </element> + <element id="List.title"> + <path value="List.title"/> + <short value="Descriptive name for the list"/> + <definition value="A label for the list assigned by the author."/> + <requirements value="Allows customization beyond just the code identifying the kind of list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Dr. Jane's Patients"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".title"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.title"/> + </mapping> + </element> + <element id="List.code"> + <path value="List.code"/> + <short value="What the purpose of this list is"/> + <definition value="This code defines the purpose of the list - why it was created."/> + <comment value="If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code."/> + <requirements value="Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.code"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <patternCodeableConcept> + <coding> + <system value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <code value="folder"/> + </coding> + </patternCodeableConcept> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDlistTypesVS"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.what[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="shall be 'folder'"/> + </mapping> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <short value="If all resources have the same subject"/> + <definition value="The common subject (or patient) of the resources that are in the list if there is one."/> + <comment value="Some purely arbitrary lists do not have a common subject, so this is optional."/> + <requirements value="The primary purpose of listing the subject explicitly is to help with finding the right list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<SUB].role (and sometimes .player)"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.patientId"/> + </mapping> + </element> + <element id="List.encounter"> + <path value="List.encounter"/> + <short value="Context in which list created"/> + <definition value="The encounter that is the context in which this list was created."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.encounter"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.date"> + <path value="List.date"/> + <short value="When the list was prepared"/> + <definition value="The date that the list was prepared."/> + <comment value="The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs."/> + <requirements value="Identifies how current the list is which affects relevance."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].time[type=TS]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.lastUpdateTime"/> + </mapping> + </element> + <element id="List.source"> + <path value="List.source"/> + <short value="Who and/or what defined the list contents (aka Author)"/> + <definition value="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list."/> + <comment value="The primary source is the entity that made the decisions what items are in the list. This may be software or user."/> + <requirements value="Allows follow-up as well as context."/> + <alias value="Author"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.author"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode<AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.orderedBy"> + <path value="List.orderedBy"/> + <short value="What order the list has"/> + <definition value="What order applies to the items in the list."/> + <comment value="Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order."/> + <requirements value="Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.orderedBy"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListOrder"/> + </extension> + <strength value="preferred"/> + <description value="What order applies to the items in a list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-order"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP].sequenceNumber > 1"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.note"> + <path value="List.note"/> + <short value="Comments about the list"/> + <definition value="Comments that apply to the overall list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.note"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Annotation"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ].act.text"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.comments"/> + </mapping> + </element> + <element id="List.entry"> + <path value="List.entry"/> + <short value="Entries in the list"/> + <definition value="Entries in this list."/> + <comment value="If there are no entries in the list, an emptyReason SHOULD be provided."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]"/> + </mapping> + </element> + <element id="List.entry.id"> + <path value="List.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.extension"> + <path value="List.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.modifierExtension"> + <path value="List.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.entry.flag"> + <path value="List.entry.flag"/> + <short value="Status/Workflow information about this item"/> + <definition value="The flag allows the system constructing the list to indicate the role and significance of the item in the list."/> + <comment value="The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is "changes"."/> + <requirements value="This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.flag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListItemFlag"/> + </extension> + <strength value="example"/> + <description value="Codes that provide further information about the reason and meaning of the item in the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-item-flag"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.deleted"> + <path value="List.entry.deleted"/> + <short value="If this item is actually marked as deleted"/> + <definition value="True if this item is marked as deleted in the list."/> + <comment value="If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is "changes". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list."/> + <requirements value="The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as "deleted"."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.deleted"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="boolean"/> + </type> + <meaningWhenMissing value="List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'"/> + <condition value="lst-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If deleted is true, then the item included in the list isn't actually part of the list anymore"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="added: .updateMode=("A","AR") retained: .updateMode="NC" updated: .updateMode="R" deleted: .updateMode="D""/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.date"> + <path value="List.entry.date"/> + <short value="When item added to list"/> + <definition value="When this item was added to the list."/> + <requirements value="The date may be significant for understanding the meaning of items in a working list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.item"> + <path value="List.entry.item"/> + <short value="Actual entry"/> + <definition value="A reference to the actual resource from which data was derived."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.entry.item"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".target or .role or .role.entity"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="references to DocumentReference(s)"/> + </mapping> + </element> + <element id="List.emptyReason"> + <path value="List.emptyReason"/> + <short value="Why list is empty"/> + <definition value="If the list is empty, why the list is empty."/> + <comment value="The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases."/> + <requirements value="Allows capturing things like "none exist" or "not asked" which can be important for most lists."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.emptyReason"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListEmptyReason"/> + </extension> + <strength value="preferred"/> + <description value="If a list is empty, why it is empty."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-empty-reason"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="List"> + <path value="List"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="XDS Folder"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="List.meta.profile"> + <path value="List.meta.profile"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.limitedMetadata"/> + </mapping> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <mustSupport value="true"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.codeList"/> + </mapping> + </element> + <element id="List.identifier"> + <path value="List.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.entryUUID and Folder.uniqueId"/> + </mapping> + </element> + <element id="List.identifier:uniqueId"> + <path value="List.identifier"/> + <sliceName value="uniqueId"/> + <min value="0"/> + <max value="1"/> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + </type> + </element> + <element id="List.identifier:entryUUID"> + <path value="List.identifier"/> + <sliceName value="entryUUID"/> + <min value="0"/> + <max value="*"/> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + </element> + <element id="List.status"> + <path value="List.status"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.availabilityStatus"/> + </mapping> + </element> + <element id="List.mode"> + <path value="List.mode"/> + <patternCode value="working"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="shall be 'working'"/> + </mapping> + </element> + <element id="List.title"> + <path value="List.title"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.title"/> + </mapping> + </element> + <element id="List.code"> + <path value="List.code"/> + <patternCodeableConcept> + <coding> + <system value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <code value="folder"/> + </coding> + </patternCodeableConcept> + <mapping> + <identity value="Folder-Mapping"/> + <map value="shall be 'folder'"/> + </mapping> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <mustSupport value="true"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.patientId"/> + </mapping> + </element> + <element id="List.encounter"> + <path value="List.encounter"/> + <max value="0"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.date"> + <path value="List.date"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.lastUpdateTime"/> + </mapping> + </element> + <element id="List.source"> + <path value="List.source"/> + <max value="0"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.orderedBy"> + <path value="List.orderedBy"/> + <max value="0"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.note"> + <path value="List.note"/> + <max value="1"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="Folder.comments"/> + </mapping> + </element> + <element id="List.entry.flag"> + <path value="List.entry.flag"/> + <max value="0"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.deleted"> + <path value="List.entry.deleted"/> + <max value="0"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.date"> + <path value="List.entry.date"/> + <max value="0"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.item"> + <path value="List.entry.item"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + <mapping> + <identity value="Folder-Mapping"/> + <map value="references to DocumentReference(s)"/> + </mapping> + </element> + <element id="List.emptyReason"> + <path value="List.emptyReason"/> + <max value="0"/> + <mapping> + <identity value="Folder-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.ProvideBundle.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.ProvideBundle.xml new file mode 100644 index 0000000000..ef75d568f4 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.ProvideBundle.xml @@ -0,0 +1,9208 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Minimal.ProvideBundle"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle">Bundle</a><a name="Bundle"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.meta">meta</a><a name="Bundle.meta"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.meta.profile">profile</a><a name="Bundle.meta.profile"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">canonical</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/structuredefinition.html">StructureDefinition</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Profiles this resource claims to conform to</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.type">type</a><a name="Bundle.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">transaction</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: white; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry">Slices for entry</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red; font-style: italic" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="font-style: italic">1</span><span style="font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Entry in the bundle - will have a resource or information</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Closed by profile:resource, value:request.method</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck033.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> entry:All Slices<a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Content/Rules for all slices</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0320.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Resource</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A resource in the bundle</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck035.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:SubmissionSet" title="Slice SubmissionSet: The SubmissionSet defines who submitted it, why they submitted it, when they submitted, what is in it, and where it is destine.">entry:SubmissionSet</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">the SubmissionSet</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0350.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:SubmissionSet.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet.html" title="List">SubmissionSet</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0341.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:SubmissionSet.request">request</a><a name="Bundle.entry.request"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional execution information (transaction/batch/history)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03400.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:SubmissionSet.request.method">method</a><a name="Bundle.entry.request.method"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">GET | HEAD | POST | PUT | DELETE | PATCH</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">POST</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck035.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:DocumentRefs" title="Slice DocumentRefs: any new DocumentReference that are part of the SubmissionSet. These might be new or other associations">entry:DocumentRefs</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">the DocumentReference resources<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0350.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:DocumentRefs.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference.html" title="DocumentReference">MinimalDocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0341.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:DocumentRefs.request">request</a><a name="Bundle.entry.request"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional execution information (transaction/batch/history)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03400.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:DocumentRefs.request.method">method</a><a name="Bundle.entry.request.method"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">GET | HEAD | POST | PUT | DELETE | PATCH</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">POST</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck035.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:UpdateDocumentRefs" title="Slice UpdateDocumentRefs: any updated DocumentReference that are part of the SubmissionSet if a new new DocumentReference replaces this DocumentReference.">entry:UpdateDocumentRefs</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">the superseded DocumentReference resources<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0350.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:UpdateDocumentRefs.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Patch.Parameters.html" title="Parameters">PatchParameters</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Operation Request or Response</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0341.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:UpdateDocumentRefs.request">request</a><a name="Bundle.entry.request"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional execution information (transaction/batch/history)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03400.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:UpdateDocumentRefs.request.method">method</a><a name="Bundle.entry.request.method"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">GET | HEAD | POST | PUT | DELETE | PATCH</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">PATCH</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck035.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Documents" title="Slice Documents: the Documents referenced by the DocumentReference resources">entry:Documents</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">the Documents<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0350.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Documents.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/binary.html" title="Binary">Binary</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Pure binary content defined by a format other than FHIR</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0340.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Documents.request">request</a><a name="Bundle.entry.request"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional execution information (transaction/batch/history)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck035.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:FhirDocuments" title="Slice FhirDocuments: the FHIR-FhirDocuments referenced by the DocumentReference resources">entry:FhirDocuments</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">the FHIR-FhirDocuments<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0350.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:FhirDocuments.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/bundle.html" title="Bundle">Bundle</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0341.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:FhirDocuments.request">request</a><a name="Bundle.entry.request"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional execution information (transaction/batch/history)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03400.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:FhirDocuments.request.method">method</a><a name="Bundle.entry.request.method"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">GET | HEAD | POST | PUT | DELETE | PATCH</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">POST</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck035.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Folders" title="Slice Folders: any Folders being created or updated">entry:Folders</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Folders<br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0350.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Folders.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.Folder.html" title="List">Folder</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0341.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Folders.request">request</a><a name="Bundle.entry.request"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional execution information (transaction/batch/history)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03400.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Folders.request.method">method</a><a name="Bundle.entry.request.method"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">GET | HEAD | POST | PUT | DELETE | PATCH</span><br/><span style="font-weight:bold">Binding: </span><a href="ValueSet-MHDprovideFolderActions.html">MHD Folder List Types ValueSet</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck025.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Patient" title="Slice Patient: the Patient">entry:Patient</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">the Patient</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Patient.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/patient.html" title="Patient">Patient</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Information about an individual or animal receiving health care services</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0241.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Patient.request">request</a><a name="Bundle.entry.request"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck02400.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle-definitions.html#Bundle.entry:Patient.request.method">method</a><a name="Bundle.entry.request.method"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">GET | HEAD | POST | PUT | DELETE | PATCH</span><br/><span style="font-weight:bold">Binding: </span><a href="ValueSet-MHDprovidePatientActions.html">MHD Patient Types ValueSet</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle"/> + <version value="4.2.1"/> + <name value="MinimalProvideDocumentBundle"/> + <title value="MHD Minimal Provide Document Bundle"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the Bundle transaction for ITI-65 Provide Document resources with Minimal metadata for MHD.

- [Minimal Metadata](StructureDefinition-IHE.MHD.Minimal.ProvideBundle.html): `https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle`
 - shall be a Transaction Bundle
 - all resources shall be compliant with minimal constraints, they may be marked minimal, comprehensive, or unContained
 - shall create a [SubmissionSet type List](StructureDefinition-IHE.MHD.Minimal.SubmissionSet.html) that is either minimal, comprehensive, or unContained
 - may create one or more [DocumentReference](StructureDefinition-IHE.MHD.Minimal.DocumentReference.html) that is either minimal, comprehensive, or unContained
 - with a document as a [Binary](http://hl7.org/fhir/R4/binary.html)
 - or, when implementing the **ITI-65 FHIR Document Publish** option, a [FHIR Document Bundle](http://hl7.org/fhir/R4/bundle.html)
 - may create/update one or more [Folder type List](StructureDefinition-IHE.MHD.Minimal.Folder.html) that is either minimal, comprehensive, or unContained
 - may create/update/read one [Patient](http://hl7.org/fhir/R4/patient.html)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Bundle"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + <derivation value="constraint"/> + <snapshot> + <element id="Bundle"> + <path value="Bundle"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.id"> + <path value="Bundle.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta"> + <path value="Bundle.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.id"> + <path value="Bundle.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.meta.extension"> + <path value="Bundle.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.meta.versionId"> + <path value="Bundle.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.lastUpdated"> + <path value="Bundle.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.source"> + <path value="Bundle.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.profile"> + <path value="Bundle.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.security"> + <path value="Bundle.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="Bundle.meta.tag"> + <path value="Bundle.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="Bundle.implicitRules"> + <path value="Bundle.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Bundle.language"> + <path value="Bundle.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Bundle.identifier"> + <path value="Bundle.identifier"/> + <short value="Persistent identifier for the bundle"/> + <definition value="A persistent identifier for the bundle that won't change as a bundle is copied from server to server."/> + <comment value="Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.id"/> + </mapping> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <short value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"/> + <definition value="Indicates the purpose of this bundle - how it is intended to be used."/> + <comment value="It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.type"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="transaction"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="BundleType"/> + </extension> + <strength value="required"/> + <description value="Indicates the purpose of a bundle - how it is intended to be used."/> + <valueSet value="http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + </element> + <element id="Bundle.timestamp"> + <path value="Bundle.timestamp"/> + <short value="When the bundle was assembled"/> + <definition value="The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle."/> + <comment value="For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated. 

Usage:

* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time
* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message
* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates
* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query
* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning

The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.timestamp"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.init"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.effectiveTime"/> + </mapping> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <short value="If search, the total number of matches"/> + <definition value="If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle."/> + <comment value="Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.total"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <condition value="bdl-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link"> + <path value="Bundle.link"/> + <short value="Links related to this Bundle"/> + <definition value="A series of links that provide context to this bundle."/> + <comment value="Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). 

Bundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http://hl7.org/fhir/R4/http.html#read) directly.

This specification defines some specific uses of Bundle.link for [searching](http://hl7.org/fhir/R4/search.html#conformance) and [paging](http://hl7.org/fhir/R4/http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.link"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.id"> + <path value="Bundle.link.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.extension"> + <path value="Bundle.link.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.modifierExtension"> + <path value="Bundle.link.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.link.relation"> + <path value="Bundle.link.relation"/> + <short value="See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1"/> + <definition value="A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.relation"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.url"> + <path value="Bundle.link.url"/> + <short value="Reference details for the link"/> + <definition value="The reference details for the link."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <discriminator> + <type value="value"/> + <path value="request.method"/> + </discriminator> + <description value="Slicing based on the profile conformance of the entry"/> + <rules value="closed"/> + </slicing> + <short value="Entry in the bundle - will have a resource or information"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.resource"> + <path value="Bundle.entry.resource"/> + <short value="A resource in the bundle"/> + <definition value="The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet"> + <path value="Bundle.entry"/> + <sliceName value="SubmissionSet"/> + <short value="the SubmissionSet"/> + <definition value="The SubmissionSet defines who submitted it, why they submitted it, when they submitted, what is in it, and where it is destine."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.resource"> + <path value="Bundle.entry.resource"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="XDS SubmissionSet"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:SubmissionSet.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:SubmissionSet.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="DocumentRefs"/> + <short value="the DocumentReference resources"/> + <definition value="any new DocumentReference that are part of the SubmissionSet. These might be new or other associations"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentRefs.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentRefs.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="UpdateDocumentRefs"/> + <short value="the superseded DocumentReference resources"/> + <definition value="any updated DocumentReference that are part of the SubmissionSet if a new new DocumentReference replaces this DocumentReference."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <short value="Operation Request or Response"/> + <definition value="This resource is a non-persisted resource used to pass information into and back from an [operation](http://hl7.org/fhir/R4/operations.html). It has no other use, and there is no RESTful endpoint associated with it."/> + <comment value="The parameters that may be used are defined by the OperationDefinition resource."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Parameters"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="PATCH"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents"> + <path value="Bundle.entry"/> + <sliceName value="Documents"/> + <short value="the Documents"/> + <definition value="the Documents referenced by the DocumentReference resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.resource"> + <path value="Bundle.entry.resource"/> + <short value="Pure binary content defined by a format other than FHIR"/> + <definition value="A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc."/> + <comment value="Typically, Binary resources are used for handling content such as: 

* CDA Documents (i.e. with XDS) 
* PDF Documents 
* Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Binary"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Binary"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="ED"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Documents.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="preferred"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Documents.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments"> + <path value="Bundle.entry"/> + <sliceName value="FhirDocuments"/> + <short value="the FHIR-FhirDocuments"/> + <definition value="the FHIR-FhirDocuments referenced by the DocumentReference resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.resource"> + <path value="Bundle.entry.resource"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Bundle"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </type> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:FhirDocuments.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:FhirDocuments.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders"> + <path value="Bundle.entry"/> + <sliceName value="Folders"/> + <short value="Folders"/> + <definition value="any Folders being created or updated"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.resource"> + <path value="Bundle.entry.resource"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="XDS Folder"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Folders.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovideFolderActions"/> + </binding> + </element> + <element id="Bundle.entry:Folders.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient"> + <path value="Bundle.entry"/> + <sliceName value="Patient"/> + <short value="the Patient"/> + <definition value="the Patient"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.resource"> + <path value="Bundle.entry.resource"/> + <short value="Information about an individual or animal receiving health care services"/> + <definition value="Demographics and other administrative information about an individual or animal receiving care or other health-related services."/> + <alias value="SubjectOfCare Client Resident"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Patient"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Patient[classCode=PAT]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.recordTarget.patientRole"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Patient.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovidePatientActions"/> + </binding> + </element> + <element id="Bundle.entry:Patient.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.signature"> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> + <valueCode value="trial-use"/> + </extension> + <path value="Bundle.signature"/> + <short value="Digital Signature"/> + <definition value="Digital Signature - base64 encoded. XML-DSig or a JWT."/> + <comment value="The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific."/> + <requirements value="A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.signature"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Signature"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Bundle"> + <path value="Bundle"/> + </element> + <element id="Bundle.meta.profile"> + <path value="Bundle.meta.profile"/> + <min value="1"/> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <patternCode value="transaction"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <discriminator> + <type value="value"/> + <path value="request.method"/> + </discriminator> + <description value="Slicing based on the profile conformance of the entry"/> + <rules value="closed"/> + </slicing> + <min value="1"/> + <mustSupport value="true"/> + </element> + <element id="Bundle.entry.resource"> + <path value="Bundle.entry.resource"/> + <mustSupport value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet"> + <path value="Bundle.entry"/> + <sliceName value="SubmissionSet"/> + <short value="the SubmissionSet"/> + <definition value="The SubmissionSet defines who submitted it, why they submitted it, when they submitted, what is in it, and where it is destine."/> + <min value="1"/> + <max value="1"/> + </element> + <element id="Bundle.entry:SubmissionSet.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"/> + </type> + </element> + <element id="Bundle.entry:SubmissionSet.request"> + <path value="Bundle.entry.request"/> + <min value="1"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.method"> + <path value="Bundle.entry.request.method"/> + <patternCode value="POST"/> + </element> + <element id="Bundle.entry:DocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="DocumentRefs"/> + <short value="the DocumentReference resources"/> + <definition value="any new DocumentReference that are part of the SubmissionSet. These might be new or other associations"/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:DocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + </type> + </element> + <element id="Bundle.entry:DocumentRefs.request"> + <path value="Bundle.entry.request"/> + <min value="1"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.method"> + <path value="Bundle.entry.request.method"/> + <patternCode value="POST"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="UpdateDocumentRefs"/> + <short value="the superseded DocumentReference resources"/> + <definition value="any updated DocumentReference that are part of the SubmissionSet if a new new DocumentReference replaces this DocumentReference."/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="Parameters"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters"/> + </type> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request"> + <path value="Bundle.entry.request"/> + <min value="1"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.method"> + <path value="Bundle.entry.request.method"/> + <patternCode value="PATCH"/> + </element> + <element id="Bundle.entry:Documents"> + <path value="Bundle.entry"/> + <sliceName value="Documents"/> + <short value="the Documents"/> + <definition value="the Documents referenced by the DocumentReference resources"/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:Documents.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="Binary"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Binary"/> + </type> + </element> + <element id="Bundle.entry:Documents.request"> + <path value="Bundle.entry.request"/> + <min value="1"/> + </element> + <element id="Bundle.entry:FhirDocuments"> + <path value="Bundle.entry"/> + <sliceName value="FhirDocuments"/> + <short value="the FHIR-FhirDocuments"/> + <definition value="the FHIR-FhirDocuments referenced by the DocumentReference resources"/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:FhirDocuments.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="Bundle"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </type> + </element> + <element id="Bundle.entry:FhirDocuments.request"> + <path value="Bundle.entry.request"/> + <min value="1"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.method"> + <path value="Bundle.entry.request.method"/> + <patternCode value="POST"/> + </element> + <element id="Bundle.entry:Folders"> + <path value="Bundle.entry"/> + <sliceName value="Folders"/> + <short value="Folders"/> + <definition value="any Folders being created or updated"/> + <min value="0"/> + <max value="*"/> + </element> + <element id="Bundle.entry:Folders.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"/> + </type> + </element> + <element id="Bundle.entry:Folders.request"> + <path value="Bundle.entry.request"/> + <min value="1"/> + </element> + <element id="Bundle.entry:Folders.request.method"> + <path value="Bundle.entry.request.method"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovideFolderActions"/> + </binding> + </element> + <element id="Bundle.entry:Patient"> + <path value="Bundle.entry"/> + <sliceName value="Patient"/> + <short value="the Patient"/> + <definition value="the Patient"/> + <min value="0"/> + <max value="1"/> + </element> + <element id="Bundle.entry:Patient.resource"> + <path value="Bundle.entry.resource"/> + <min value="1"/> + <type> + <code value="Patient"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + </element> + <element id="Bundle.entry:Patient.request.method"> + <path value="Bundle.entry.request.method"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovidePatientActions"/> + </binding> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.SubmissionSet.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.SubmissionSet.xml new file mode 100644 index 0000000000..fdcd111547 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Minimal.SubmissionSet.xml @@ -0,0 +1,2185 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Minimal.SubmissionSet"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List">List</a><a name="List"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.List.html">MhdList</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.meta">meta</a><a name="List.meta"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.meta.profile">profile</a><a name="List.meta.profile"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">canonical</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/structuredefinition.html">StructureDefinition</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Profiles this resource claims to conform to</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.extension">extension</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Extension</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.extension:designationType" title="Slice designationType">extension:designationType</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span>..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="StructureDefinition-ihe-designationType.html" title="Extension">DesignationType</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Clinical code of the List</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.extension:sourceId" title="Extension URL = https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId">sourceId</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Publisher organization identity of the SubmissionSet</span><br/><span style="font-weight:bold">URL: </span><a href="http://hl7.org/fhir/R4/StructureDefinition-ihe-sourceId.html">https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId</a></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.extension:intendedRecipient" title="Extension URL = https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient">intendedRecipient</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a href="http://hl7.org/fhir/R4/organization.html">Organization</a> | <a href="http://hl7.org/fhir/R4/patient.html">Patient</a> | <a href="http://hl7.org/fhir/R4/relatedperson.html">RelatedPerson</a> | <a href="http://hl7.org/fhir/R4/group.html">Group</a> | <a href="http://hl7.org/fhir/R4/device.html">Device</a> | <a href="http://hl7.org/fhir/R4/location.html">Location</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Intended recipient of the SubmissionSet</span><br/><span style="font-weight:bold">URL: </span><a href="http://hl7.org/fhir/R4/StructureDefinition-ihe-intendedRecipient.html">https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient</a><br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.identifier">Slices for identifier</a><a name="List.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Business identifier</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by value:use</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.identifier:uniqueId" title="Slice uniqueId">identifier:uniqueId</a><a name="List.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.SubmissionSetUniqueIdIdentifier.html" title="Identifier">SubmissionSetUniqueIdIdentifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An identifier intended for computation</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck124.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.identifier:entryUUID" title="Slice entryUUID">identifier:entryUUID</a><a name="List.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.EntryUUID.Identifier.html" title="Identifier">EntryUUIDIdentifier</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An identifier intended for computation</span><br/></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.status">status</a><a name="List.status"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">current | retired | entered-in-error</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">current</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.mode">mode</a><a name="List.mode"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">working | snapshot | changes</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">working</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.title">title</a><a name="List.title"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Descriptive name for the list</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.code">code</a><a name="List.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">What the purpose of this list is</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">At least the following</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck101.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: white; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R4/datatypes-definitions.html#CodeableConcept.coding">coding</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Code defined by a terminology system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">(complex)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system">system</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Identity of the terminology system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_fixed.gif" alt="." style="background-color: white; background-color: inherit" title="Fixed Value" class="hierarchy"/> <a href="http://hl7.org/fhir/R4/datatypes-definitions.html#Coding.code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Symbol in syntax defined by the system<br/><span style="font-weight: bold">Fixed Value: </span><span style="color: darkgreen">submissionset</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.subject">subject</a><a name="List.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If all resources have the same subject</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">encounter</span><a name="List.encounter"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.date">date</a><a name="List.date"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">When the list was prepared</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.source">source</a><a name="List.source"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/practitionerrole.html">PractitionerRole</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/device.html">Device</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who and/or what defined the list contents (aka Author)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck104.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.source.extension:authorOrg" title="Extension URL = https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg">authorOrg</a><a name="List.source.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/organization.html">Organization</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Author organization of the SubmissionSet</span><br/><span style="font-weight:bold">URL: </span><a href="http://hl7.org/fhir/R4/StructureDefinition-ihe-authorOrg.html">https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg</a></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">orderedBy</span><a name="List.orderedBy"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.note">note</a><a name="List.note"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span>..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Annotation">Annotation</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Comments about the list</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.entry">entry</a><a name="List.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">flag</span><a name="List.entry.flag"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">deleted</span><a name="List.entry.deleted"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">date</span><a name="List.entry.date"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet-definitions.html#List.entry.item">item</a><a name="List.entry.item"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a> | <a href="http://hl7.org/fhir/R4/list.html">List</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Actual entry</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">emptyReason</span><a name="List.emptyReason"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"/> + <version value="4.2.1"/> + <name value="SubmissionSet"/> + <title value="MHD SubmissionSet Minimal"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the List resource for MHD SubmissionSet.
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR List for use as a SubmissionSet implementation of the 
- ebRIM implementation at [3:4.2.3.3 SubmissionSet Attributes](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.3).
- with use-cases and constraints found in [3:4.3.1 Submission Metadata Attribute Optionality](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3.1) for 
 - Document Source implementing not implementing Comprehensive Metadata Option
 - Document Source implementing UnContained Option but not Comprehensive Option
 - equivalent to XDR Document Source implementing Metadata-Limited Option requirements
 - aka the default MHD Document Source"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <uri value="XDS"/> + <name value="XDS and MHD Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="List"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.List"/> + <derivation value="constraint"/> + <snapshot> + <element id="List"> + <path value="List"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="XDS SubmissionSet"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="List.id"> + <path value="List.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta"> + <path value="List.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.id"> + <path value="List.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.extension"> + <path value="List.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.versionId"> + <path value="List.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.lastUpdated"> + <path value="List.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.source"> + <path value="List.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.profile"> + <path value="List.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.limitedMetadata"/> + </mapping> + </element> + <element id="List.meta.security"> + <path value="List.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="List.meta.tag"> + <path value="List.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="List.implicitRules"> + <path value="List.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="List.language"> + <path value="List.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="List.text"> + <path value="List.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="List.contained"> + <path value="List.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="1"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <short value="Clinical code of the List"/> + <definition value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.contentTypeCode"/> + </mapping> + </element> + <element id="List.extension:sourceId"> + <path value="List.extension"/> + <sliceName value="sourceId"/> + <short value="Publisher organization identity of the SubmissionSet"/> + <definition value="The globally unique, immutable, identifier of the entity that contributed the SubmissionSet. When a broker is involved in sending SubmissionSets from a collection of client systems, it shall use a different sourceId for submissions from each separate system to allow for tracking. The format of the identifier is an OID."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.sourceId"/> + </mapping> + </element> + <element id="List.extension:intendedRecipient"> + <path value="List.extension"/> + <sliceName value="intendedRecipient"/> + <short value="Intended recipient of the SubmissionSet"/> + <definition value="holds the identity of the organization or person the SubmissionSet is intended. For XDR and eMail (e.g. Direct) this tends to be a Practitioner or Patient with a telecom holding an email, but this is not strictly required."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.intendedRecipient"/> + </mapping> + </element> + <element id="List.modifierExtension"> + <path value="List.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="List.identifier"> + <path value="List.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Business identifier"/> + <definition value="Identifier for the List assigned for business purposes outside the context of FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.entryUUID and SubmissionSet.uniqueId"/> + </mapping> + </element> + <element id="List.identifier:uniqueId"> + <path value="List.identifier"/> + <sliceName value="uniqueId"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.identifier:entryUUID"> + <path value="List.identifier"/> + <sliceName value="entryUUID"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.status"> + <path value="List.status"/> + <short value="current | retired | entered-in-error"/> + <definition value="Indicates the current state of this list."/> + <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="current"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListStatus"/> + </extension> + <strength value="required"/> + <description value="The current state of the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".status[current=active;retired=obsolete;entered-in-error=nullified]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.availabilityStatus"/> + </mapping> + </element> + <element id="List.mode"> + <path value="List.mode"/> + <short value="working | snapshot | changes"/> + <definition value="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted."/> + <comment value="This element is labeled as a modifier because a change list must not be misunderstood as a complete list."/> + <requirements value="Lists are used in various ways, and it must be known in what way it is safe to use them."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.mode"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="working"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If set to "changes", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListMode"/> + </extension> + <strength value="required"/> + <description value="The processing mode that applies to this list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-mode|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="shall be 'working'"/> + </mapping> + </element> + <element id="List.title"> + <path value="List.title"/> + <short value="Descriptive name for the list"/> + <definition value="A label for the list assigned by the author."/> + <requirements value="Allows customization beyond just the code identifying the kind of list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Dr. Jane's Patients"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".title"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.title"/> + </mapping> + </element> + <element id="List.code"> + <path value="List.code"/> + <short value="What the purpose of this list is"/> + <definition value="This code defines the purpose of the list - why it was created."/> + <comment value="If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code."/> + <requirements value="Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.code"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <patternCodeableConcept> + <coding> + <system value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <code value="submissionset"/> + </coding> + </patternCodeableConcept> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDlistTypesVS"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.what[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="shall be 'submissionset'"/> + </mapping> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <short value="If all resources have the same subject"/> + <definition value="The common subject (or patient) of the resources that are in the list if there is one."/> + <comment value="Some purely arbitrary lists do not have a common subject, so this is optional."/> + <requirements value="The primary purpose of listing the subject explicitly is to help with finding the right list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<SUB].role (and sometimes .player)"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.patientId"/> + </mapping> + </element> + <element id="List.encounter"> + <path value="List.encounter"/> + <short value="Context in which list created"/> + <definition value="The encounter that is the context in which this list was created."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.encounter"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.date"> + <path value="List.date"/> + <short value="When the list was prepared"/> + <definition value="The date that the list was prepared."/> + <comment value="The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs."/> + <requirements value="Identifies how current the list is which affects relevance."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].time[type=TS]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.submissionTime"/> + </mapping> + </element> + <element id="List.source"> + <path value="List.source"/> + <short value="Who and/or what defined the list contents (aka Author)"/> + <definition value="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list."/> + <comment value="The primary source is the entity that made the decisions what items are in the list. This may be software or user."/> + <requirements value="Allows follow-up as well as context."/> + <alias value="Author"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.author"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode<AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.author"/> + </mapping> + </element> + <element id="List.source.id"> + <path value="List.source.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.source.extension"> + <path value="List.source.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.source.extension:authorOrg"> + <path value="List.source.extension"/> + <sliceName value="authorOrg"/> + <short value="Author organization of the SubmissionSet"/> + <definition value="When the author of the SubmissionSet is an Organization, this extension shall be used."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.author when the author is an Organization"/> + </mapping> + </element> + <element id="List.source.reference"> + <path value="List.source.reference"/> + <short value="Literal reference, Relative, internal or absolute URL"/> + <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."/> + <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.reference"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <condition value="ref-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.source.type"> + <path value="List.source.type"/> + <short value="Type the reference refers to (e.g. "Patient")"/> + <definition value="The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)."/> + <comment value="This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="FHIRResourceTypeExt"/> + </extension> + <strength value="extensible"/> + <description value="Aa resource (or, for logical models, the URI of the logical model)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/resource-types"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.source.identifier"> + <path value="List.source.identifier"/> + <short value="Logical reference, when literal reference is not known"/> + <definition value="An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."/> + <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. 

When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".identifier"/> + </mapping> + </element> + <element id="List.source.display"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="List.source.display"/> + <short value="Text alternative for the resource"/> + <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> + <comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.display"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.orderedBy"> + <path value="List.orderedBy"/> + <short value="What order the list has"/> + <definition value="What order applies to the items in the list."/> + <comment value="Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order."/> + <requirements value="Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.orderedBy"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListOrder"/> + </extension> + <strength value="preferred"/> + <description value="What order applies to the items in a list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-order"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP].sequenceNumber > 1"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.note"> + <path value="List.note"/> + <short value="Comments about the list"/> + <definition value="Comments that apply to the overall list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.note"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Annotation"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ].act.text"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.comments"/> + </mapping> + </element> + <element id="List.entry"> + <path value="List.entry"/> + <short value="Entries in the list"/> + <definition value="Entries in this list."/> + <comment value="If there are no entries in the list, an emptyReason SHOULD be provided."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]"/> + </mapping> + </element> + <element id="List.entry.id"> + <path value="List.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.extension"> + <path value="List.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.modifierExtension"> + <path value="List.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.entry.flag"> + <path value="List.entry.flag"/> + <short value="Status/Workflow information about this item"/> + <definition value="The flag allows the system constructing the list to indicate the role and significance of the item in the list."/> + <comment value="The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is "changes"."/> + <requirements value="This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.flag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListItemFlag"/> + </extension> + <strength value="example"/> + <description value="Codes that provide further information about the reason and meaning of the item in the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-item-flag"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.deleted"> + <path value="List.entry.deleted"/> + <short value="If this item is actually marked as deleted"/> + <definition value="True if this item is marked as deleted in the list."/> + <comment value="If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is "changes". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list."/> + <requirements value="The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as "deleted"."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.deleted"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="boolean"/> + </type> + <meaningWhenMissing value="List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'"/> + <condition value="lst-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If deleted is true, then the item included in the list isn't actually part of the list anymore"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="added: .updateMode=("A","AR") retained: .updateMode="NC" updated: .updateMode="R" deleted: .updateMode="D""/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.date"> + <path value="List.entry.date"/> + <short value="When item added to list"/> + <definition value="When this item was added to the list."/> + <requirements value="The date may be significant for understanding the meaning of items in a working list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.item"> + <path value="List.entry.item"/> + <short value="Actual entry"/> + <definition value="A reference to the actual resource from which data was derived."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.entry.item"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/List"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".target or .role or .role.entity"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="references to DocumentReference(s) and Folder List(s)"/> + </mapping> + </element> + <element id="List.emptyReason"> + <path value="List.emptyReason"/> + <short value="Why list is empty"/> + <definition value="If the list is empty, why the list is empty."/> + <comment value="The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases."/> + <requirements value="Allows capturing things like "none exist" or "not asked" which can be important for most lists."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.emptyReason"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListEmptyReason"/> + </extension> + <strength value="preferred"/> + <description value="If a list is empty, why it is empty."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-empty-reason"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="List"> + <path value="List"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="XDS SubmissionSet"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="List.meta.profile"> + <path value="List.meta.profile"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.limitedMetadata"/> + </mapping> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <min value="1"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <max value="1"/> + <mustSupport value="true"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.contentTypeCode"/> + </mapping> + </element> + <element id="List.extension:sourceId"> + <path value="List.extension"/> + <sliceName value="sourceId"/> + <min value="1"/> + <max value="1"/> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"/> + </type> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.sourceId"/> + </mapping> + </element> + <element id="List.extension:intendedRecipient"> + <path value="List.extension"/> + <sliceName value="intendedRecipient"/> + <min value="0"/> + <max value="*"/> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"/> + </type> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.intendedRecipient"/> + </mapping> + </element> + <element id="List.identifier"> + <path value="List.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.entryUUID and SubmissionSet.uniqueId"/> + </mapping> + </element> + <element id="List.identifier:uniqueId"> + <path value="List.identifier"/> + <sliceName value="uniqueId"/> + <min value="0"/> + <max value="1"/> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"/> + </type> + </element> + <element id="List.identifier:entryUUID"> + <path value="List.identifier"/> + <sliceName value="entryUUID"/> + <min value="0"/> + <max value="*"/> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + </element> + <element id="List.status"> + <path value="List.status"/> + <patternCode value="current"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.availabilityStatus"/> + </mapping> + </element> + <element id="List.mode"> + <path value="List.mode"/> + <patternCode value="working"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="shall be 'working'"/> + </mapping> + </element> + <element id="List.title"> + <path value="List.title"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.title"/> + </mapping> + </element> + <element id="List.code"> + <path value="List.code"/> + <patternCodeableConcept> + <coding> + <system value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <code value="submissionset"/> + </coding> + </patternCodeableConcept> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="shall be 'submissionset'"/> + </mapping> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <mustSupport value="true"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.patientId"/> + </mapping> + </element> + <element id="List.encounter"> + <path value="List.encounter"/> + <max value="0"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.date"> + <path value="List.date"/> + <min value="1"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.submissionTime"/> + </mapping> + </element> + <element id="List.source"> + <path value="List.source"/> + <mustSupport value="true"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.author"/> + </mapping> + </element> + <element id="List.source.extension:authorOrg"> + <path value="List.source.extension"/> + <sliceName value="authorOrg"/> + <min value="0"/> + <max value="1"/> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"/> + </type> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.author when the author is an Organization"/> + </mapping> + </element> + <element id="List.orderedBy"> + <path value="List.orderedBy"/> + <max value="0"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.note"> + <path value="List.note"/> + <max value="1"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.comments"/> + </mapping> + </element> + <element id="List.entry.flag"> + <path value="List.entry.flag"/> + <max value="0"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.deleted"> + <path value="List.entry.deleted"/> + <max value="0"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.date"> + <path value="List.entry.date"/> + <max value="0"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.item"> + <path value="List.entry.item"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/List"/> + </type> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="references to DocumentReference(s) and Folder List(s)"/> + </mapping> + </element> + <element id="List.emptyReason"> + <path value="List.emptyReason"/> + <max value="0"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Patch.Parameters.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Patch.Parameters.xml new file mode 100644 index 0000000000..863c7887c5 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.Patch.Parameters.xml @@ -0,0 +1,594 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.Patch.Parameters"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Patch.Parameters-definitions.html#Parameters">Parameters</a><a name="Parameters"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/parameters.html">Parameters</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Operation Request or Response</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Patch.Parameters-definitions.html#Parameters.parameter">parameter</a><a name="Parameters.parameter"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.Patch.Parameters-definitions.html#Parameters.parameter.name">name</a><a name="Parameters.parameter.name"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Name from the definition</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">operation</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters"/> + <version value="4.2.1"/> + <name value="PatchParameters"/> + <title value="MHD DocumentReference Patch Parameters"/> + <status value="active"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the Parameters resource to update DocumentReference"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Parameters"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + <derivation value="constraint"/> + <snapshot> + <element id="Parameters"> + <path value="Parameters"/> + <short value="Operation Request or Response"/> + <definition value="This resource is a non-persisted resource used to pass information into and back from an [operation](http://hl7.org/fhir/R4/operations.html). It has no other use, and there is no RESTful endpoint associated with it."/> + <comment value="The parameters that may be used are defined by the OperationDefinition resource."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters"/> + <min value="0"/> + <max value="*"/> + </base> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.id"> + <path value="Parameters.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.meta"> + <path value="Parameters.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.implicitRules"> + <path value="Parameters.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Parameters.language"> + <path value="Parameters.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Parameters.parameter"> + <path value="Parameters.parameter"/> + <short value="Operation Parameter"/> + <definition value="A parameter passed to or received from the operation."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters.parameter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="inv-1"/> + <severity value="error"/> + <human value="A parameter must have one and only one of (value, resource, part)"/> + <expression value="(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))"/> + <xpath value="(exists(f:resource) or exists(f:part) or exists(f:*[starts-with(local-name(.), 'value')])) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:resource))) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:part))) and not(exists(f:part) and exists(f:resource))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Parameters"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.id"> + <path value="Parameters.parameter.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter.extension"> + <path value="Parameters.parameter.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Parameters.parameter.modifierExtension"> + <path value="Parameters.parameter.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Parameters.parameter.name"> + <path value="Parameters.parameter.name"/> + <short value="Name from the definition"/> + <definition value="The name of the parameter (reference to the operation definition)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.name"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <patternString value="operation"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.value[x]"> + <path value="Parameters.parameter.value[x]"/> + <short value="If parameter is a data type"/> + <definition value="If the parameter is a data type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <type> + <code value="boolean"/> + </type> + <type> + <code value="canonical"/> + </type> + <type> + <code value="code"/> + </type> + <type> + <code value="date"/> + </type> + <type> + <code value="dateTime"/> + </type> + <type> + <code value="decimal"/> + </type> + <type> + <code value="id"/> + </type> + <type> + <code value="instant"/> + </type> + <type> + <code value="integer"/> + </type> + <type> + <code value="markdown"/> + </type> + <type> + <code value="oid"/> + </type> + <type> + <code value="positiveInt"/> + </type> + <type> + <code value="string"/> + </type> + <type> + <code value="time"/> + </type> + <type> + <code value="unsignedInt"/> + </type> + <type> + <code value="uri"/> + </type> + <type> + <code value="url"/> + </type> + <type> + <code value="uuid"/> + </type> + <type> + <code value="Address"/> + </type> + <type> + <code value="Age"/> + </type> + <type> + <code value="Annotation"/> + </type> + <type> + <code value="Attachment"/> + </type> + <type> + <code value="CodeableConcept"/> + </type> + <type> + <code value="Coding"/> + </type> + <type> + <code value="ContactPoint"/> + </type> + <type> + <code value="Count"/> + </type> + <type> + <code value="Distance"/> + </type> + <type> + <code value="Duration"/> + </type> + <type> + <code value="HumanName"/> + </type> + <type> + <code value="Identifier"/> + </type> + <type> + <code value="Money"/> + </type> + <type> + <code value="Period"/> + </type> + <type> + <code value="Quantity"/> + </type> + <type> + <code value="Range"/> + </type> + <type> + <code value="Ratio"/> + </type> + <type> + <code value="Reference"/> + </type> + <type> + <code value="SampledData"/> + </type> + <type> + <code value="Signature"/> + </type> + <type> + <code value="Timing"/> + </type> + <type> + <code value="ContactDetail"/> + </type> + <type> + <code value="Contributor"/> + </type> + <type> + <code value="DataRequirement"/> + </type> + <type> + <code value="Expression"/> + </type> + <type> + <code value="ParameterDefinition"/> + </type> + <type> + <code value="RelatedArtifact"/> + </type> + <type> + <code value="TriggerDefinition"/> + </type> + <type> + <code value="UsageContext"/> + </type> + <type> + <code value="Dosage"/> + </type> + <type> + <code value="Meta"/> + </type> + <condition value="inv-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.resource"> + <path value="Parameters.parameter.resource"/> + <short value="If parameter is a whole resource"/> + <definition value="If the parameter is a whole resource."/> + <comment value="When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Parameters.parameter.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <condition value="inv-1"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Parameters.parameter.part"> + <path value="Parameters.parameter.part"/> + <short value="Named part of a multi-part parameter"/> + <definition value="A named part of a multi-part parameter."/> + <comment value="Only one level of nested parameters is allowed."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Parameters.parameter.part"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Parameters"> + <path value="Parameters"/> + </element> + <element id="Parameters.parameter.name"> + <path value="Parameters.parameter.name"/> + <patternString value="operation"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse.xml new file mode 100644 index 0000000000..fb7f2f51ee --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse.xml @@ -0,0 +1,1617 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.ProvideDocumentBundleResponse"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse-definitions.html#Bundle">Bundle</a><a name="Bundle"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse-definitions.html#Bundle.type">type</a><a name="Bundle.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">transaction-response</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse-definitions.html#Bundle.entry">entry</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">One entry for each entry in the request, in the same order as received</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck001.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse-definitions.html#Bundle.entry.response">response</a><a name="Bundle.entry.response"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Indicating the results of processing the entry</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.ProvideDocumentBundleResponse-definitions.html#Bundle.entry.response.location">location</a><a name="Bundle.entry.response.location"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The location (if the operation returns a location)</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideDocumentBundleResponse"/> + <version value="4.2.1"/> + <name value="ProvideDocumentBundleResponse"/> + <title value="MHD Provide Document Bundle Response"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the Bundle transaction-response for ITI-65 Provide Document Bundle response.

- shall be a transaction response
- shall have at least 1 entry for each entry in the request, in the same order as received in the request
 - entry response location must be indicated"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Bundle"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + <derivation value="constraint"/> + <snapshot> + <element id="Bundle"> + <path value="Bundle"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.id"> + <path value="Bundle.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta"> + <path value="Bundle.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.implicitRules"> + <path value="Bundle.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Bundle.language"> + <path value="Bundle.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Bundle.identifier"> + <path value="Bundle.identifier"/> + <short value="Persistent identifier for the bundle"/> + <definition value="A persistent identifier for the bundle that won't change as a bundle is copied from server to server."/> + <comment value="Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.id"/> + </mapping> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <short value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"/> + <definition value="Indicates the purpose of this bundle - how it is intended to be used."/> + <comment value="It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.type"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="transaction-response"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="BundleType"/> + </extension> + <strength value="required"/> + <description value="Indicates the purpose of a bundle - how it is intended to be used."/> + <valueSet value="http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + </element> + <element id="Bundle.timestamp"> + <path value="Bundle.timestamp"/> + <short value="When the bundle was assembled"/> + <definition value="The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle."/> + <comment value="For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated. 

Usage:

* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time
* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message
* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates
* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query
* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning

The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.timestamp"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.init"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.effectiveTime"/> + </mapping> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <short value="If search, the total number of matches"/> + <definition value="If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle."/> + <comment value="Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.total"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <condition value="bdl-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link"> + <path value="Bundle.link"/> + <short value="Links related to this Bundle"/> + <definition value="A series of links that provide context to this bundle."/> + <comment value="Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). 

Bundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http://hl7.org/fhir/R4/http.html#read) directly.

This specification defines some specific uses of Bundle.link for [searching](http://hl7.org/fhir/R4/search.html#conformance) and [paging](http://hl7.org/fhir/R4/http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.link"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.id"> + <path value="Bundle.link.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.extension"> + <path value="Bundle.link.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.modifierExtension"> + <path value="Bundle.link.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.link.relation"> + <path value="Bundle.link.relation"/> + <short value="See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1"/> + <definition value="A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.relation"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.url"> + <path value="Bundle.link.url"/> + <short value="Reference details for the link"/> + <definition value="The reference details for the link."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <short value="One entry for each entry in the request, in the same order as received"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.resource"> + <path value="Bundle.entry.resource"/> + <short value="A resource in the bundle"/> + <definition value="The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response"> + <path value="Bundle.entry.response"/> + <short value="Indicating the results of processing the entry"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.signature"> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> + <valueCode value="trial-use"/> + </extension> + <path value="Bundle.signature"/> + <short value="Digital Signature"/> + <definition value="Digital Signature - base64 encoded. XML-DSig or a JWT."/> + <comment value="The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific."/> + <requirements value="A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.signature"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Signature"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Bundle"> + <path value="Bundle"/> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <patternCode value="transaction-response"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <short value="One entry for each entry in the request, in the same order as received"/> + <min value="1"/> + </element> + <element id="Bundle.entry.response"> + <path value="Bundle.entry.response"/> + <short value="Indicating the results of processing the entry"/> + <min value="1"/> + </element> + <element id="Bundle.entry.response.location"> + <path value="Bundle.entry.response.location"/> + <min value="1"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference.xml new file mode 100644 index 0000000000..8bb9546838 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference.xml @@ -0,0 +1,2522 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.SimplifiedPublish.DocumentReference"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference">DocumentReference</a><a name="DocumentReference"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_modifier_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <span style="text-decoration:line-through">modifierExtension</span><a name="DocumentReference.modifierExtension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.masterIdentifier">masterIdentifier</a><a name="DocumentReference.masterIdentifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Master Version Specific Identifier</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">identifier</span><a name="DocumentReference.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.status">status</a><a name="DocumentReference.status"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">current | superseded | entered-in-error</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">current</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">docStatus</span><a name="DocumentReference.docStatus"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.type">type</a><a name="DocumentReference.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Kind of document (LOINC if possible)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.category">category</a><a name="DocumentReference.category"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span>..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Categorization of document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.subject">subject</a><a name="DocumentReference.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who/what is the subject of the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.date">date</a><a name="DocumentReference.date"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#instant">instant</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">When this document reference was created</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.author">author</a><a name="DocumentReference.author"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/practitionerrole.html">PractitionerRole</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/organization.html">Organization</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/device.html">Device</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a> | <a style="opacity: 0.5" href="http://hl7.org/fhir/R4/relatedperson.html">RelatedPerson</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who and/or what authored the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.relatesTo">relatesTo</a><a name="DocumentReference.relatesTo"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Relationships to other documents</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.securityLabel">securityLabel</a><a name="DocumentReference.securityLabel"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Document security-tags</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.content" title="The document and format referenced.">content</a><a name="DocumentReference.content"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span>..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Document referenced</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck111.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.content.attachment">attachment</a><a name="DocumentReference.content.attachment"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.content.attachment.contentType">contentType</a><a name="DocumentReference.content.attachment.contentType"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Mime type of the content, with charset etc.</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.content.attachment.language">language</a><a name="DocumentReference.content.attachment.language"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Human language of the content (BCP-47)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.content.attachment.data">data</a><a name="DocumentReference.content.attachment.data"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#base64Binary">base64Binary</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">The document is contained in the .data element, base64 encoded</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">url</span><a name="DocumentReference.content.attachment.url"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.content.attachment.creation">creation</a><a name="DocumentReference.content.attachment.creation"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Date attachment was first created</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.content.format">format</a><a name="DocumentReference.content.format"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Format/content rules for the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.context">context</a><a name="DocumentReference.context"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.context.period">period</a><a name="DocumentReference.context.period"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Period">Period</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Time of service that is being documented</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.context.facilityType">facilityType</a><a name="DocumentReference.context.facilityType"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Kind of facility where patient was seen</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.context.practiceSetting">practiceSetting</a><a name="DocumentReference.context.practiceSetting"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional details about where the content was created (e.g. clinical specialty)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SimplifiedPublish.DocumentReference-definitions.html#DocumentReference.context.sourcePatientInfo">sourcePatientInfo</a><a name="DocumentReference.context.sourcePatientInfo"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Patient demographics from source</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SimplifiedPublish.DocumentReference"/> + <version value="4.2.1"/> + <name value="SimplifiedPublishDocumentReference"/> + <title value="MHD DocumentReference for Simplified Publish"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the DocumentReference resource for MHD Simplified Publish constraints. 
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR DocumentReference implementation of the 
- ebRIM implementation at [3:4.2.3.2 Document Entry](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.2).
- with use-cases and constraints found in [3:4.3 Additional Document Sharing Requirements](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3)

Simplified Publish
- Similar to Minimal Metadata constraints
 - must be status current
 - must have a patient indicated
- uses attachment.data to carry the document, rather than attachment.url
 - so that the Simplified Publish is a simple POST of the DocumentReference
 - Document Recipient is expected to extract the .data, use .url"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="workflow"/> + <uri value="http://hl7.org/fhir/workflow"/> + <name value="Workflow Pattern"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <uri value="http://hl7.org/fhir/composition"/> + <name value="FHIR Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="xds"/> + <uri value="http://ihe.net/xds"/> + <name value="XDS metadata equivalent"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="DocumentReference"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + <derivation value="constraint"/> + <snapshot> + <element id="DocumentReference"> + <path value="DocumentReference"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + </element> + <element id="DocumentReference.id"> + <path value="DocumentReference.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta"> + <path value="DocumentReference.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.implicitRules"> + <path value="DocumentReference.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="DocumentReference.language"> + <path value="DocumentReference.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="DocumentReference.text"> + <path value="DocumentReference.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="DocumentReference.contained"> + <path value="DocumentReference.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.extension"> + <path value="DocumentReference.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.modifierExtension"> + <path value="DocumentReference.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="DocumentReference.masterIdentifier"> + <path value="DocumentReference.masterIdentifier"/> + <short value="Master Version Specific Identifier"/> + <definition value="Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document."/> + <comment value="CDA Document Id extension and root."/> + <requirements value="The structure and format of this Id shall be consistent with the specification corresponding to the formatCode attribute. (e.g. for a DICOM standard document a 64-character numeric UID, for an HL7 CDA format a serialization of the CDA Document Id extension and root in the form "oid^extension", where OID is a 64 digits max, and the Id is a 16 UTF-8 char max. If the OID is coded without the extension then the '^' character shall not be included.)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.masterIdentifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.identifier"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.identifier"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-12"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.uniqueId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/id"/> + </mapping> + </element> + <element id="DocumentReference.identifier"> + <path value="DocumentReference.identifier"/> + <short value="Other identifiers for the document"/> + <definition value="Other identifiers associated with the document, including version independent identifiers."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DocumentReference.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.identifier"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-16?"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id / .setId"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.entryUUID"/> + </mapping> + </element> + <element id="DocumentReference.status"> + <path value="DocumentReference.status"/> + <short value="current | superseded | entered-in-error"/> + <definition value="The status of this document reference."/> + <comment value="This is the status of the DocumentReference object, which might be independent from the docStatus element.

This element is labeled as a modifier because the status contains the codes that mark the document or reference as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="current"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentReferenceStatus"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="required"/> + <description value="The status of the document reference."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-reference-status|4.0.1"/> + </binding> + <mapping> + <identity value="workflow"/> + <map value="Event.status"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-19"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="interim: .completionCode="IN" & ./statusCode[isNormalDatatype()]="active"; final: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and not(./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct()]); amended: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and ./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct() and statusCode="completed"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]="obsolete""/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.availabilityStatus"/> + </mapping> + </element> + <element id="DocumentReference.docStatus"> + <path value="DocumentReference.docStatus"/> + <short value="preliminary | final | amended | entered-in-error"/> + <definition value="The status of the underlying document."/> + <comment value="The document that is pointed to might be in various lifecycle states."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DocumentReference.docStatus"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ReferredDocumentStatus"/> + </extension> + <strength value="required"/> + <description value="Status of the underlying document."/> + <valueSet value="http://hl7.org/fhir/ValueSet/composition-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.status"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-17"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".statusCode"/> + </mapping> + </element> + <element id="DocumentReference.type"> + <path value="DocumentReference.type"/> + <short value="Kind of document (LOINC if possible)"/> + <definition value="Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced."/> + <comment value="Key metadata element describing the document that describes he exact type of document. Helps humans to assess whether the document is of interest when viewing a list of documents."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80Type"/> + </extension> + <strength value="preferred"/> + <description value="Precise type of clinical document."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-doc-typecodes"/> + </binding> + <mapping> + <identity value="workflow"/> + <map value="Event.code"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.type"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-2"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.type"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/code/@code 

The typeCode should be mapped from the ClinicalDocument/code element to a set of document type codes configured in the affinity domain. One suggested coding system to use for typeCode is LOINC, in which case the mapping step can be omitted."/> + </mapping> + </element> + <element id="DocumentReference.category"> + <path value="DocumentReference.category"/> + <short value="Categorization of document"/> + <definition value="A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type."/> + <comment value="Key metadata element describing the the category or classification of the document. This is a broader perspective that groups similar documents based on how they would be used. This is a primary key used in searching."/> + <alias value="claxs"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.category"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80Class"/> + </extension> + <strength value="example"/> + <description value="High-level kind of a clinical document at a macro level."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-classcodes"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.class"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="Derived from a mapping of /ClinicalDocument/code/@code to an Affinity Domain specified coded value to use and coding system. Affinity Domains are encouraged to use the appropriate value for Type of Service, based on the LOINC Type of Service (see Page 53 of the LOINC User's Manual). Must be consistent with /ClinicalDocument/code/@code"/> + </mapping> + </element> + <element id="DocumentReference.subject"> + <path value="DocumentReference.subject"/> + <short value="Who/what is the subject of the document"/> + <definition value="Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.subject"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.subject"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="PID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="SBJ"].role[typeCode="PAT"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.patientId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/recordTarget/"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + </element> + <element id="DocumentReference.date"> + <path value="DocumentReference.date"/> + <short value="When this document reference was created"/> + <definition value="When the document reference was created."/> + <comment value="Referencing/indexing time is used for tracking, organizing versions and searching."/> + <alias value="indexed"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.occurrence[x]"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.date"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime[type="TS"]"/> + </mapping> + </element> + <element id="DocumentReference.author"> + <path value="DocumentReference.author"/> + <short value="Who and/or what authored the document"/> + <definition value="Identifies who is responsible for adding the information to the document."/> + <comment value="Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.author"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.author"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-9 (No standard way to indicate a Device in HL7 v2 MDM message)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="AUT"].role[classCode="ASSIGNED"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.author"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/author"/> + </mapping> + </element> + <element id="DocumentReference.authenticator"> + <path value="DocumentReference.authenticator"/> + <short value="Who/what authenticated the document"/> + <definition value="Which person or organization authenticates that this document is valid."/> + <comment value="Represents a participant within the author institution who has legally authenticated or attested the document. Legal authentication implies that a document has been signed manually or electronically by the legal Authenticator."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.authenticator"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.witness"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.attester"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-10"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.legalAuthenticator"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/legalAuthenticator"/> + </mapping> + </element> + <element id="DocumentReference.custodian"> + <path value="DocumentReference.custodian"/> + <short value="Organization which maintains the document"/> + <definition value="Identifies the organization or group who is responsible for ongoing maintenance of and access to the document."/> + <comment value="Identifies the logical organization (software system, vendor, or department) to go to find the current version, where to report issues, etc. This is different from the physical location (URL, disk drive, or server) of the document, which is the technical location of the document, which host may be delegated to the management of some other organization."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.custodian"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.custodian"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"]"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo"> + <path value="DocumentReference.relatesTo"/> + <short value="Relationships to other documents"/> + <definition value="Relationships that this document has with other document references that already exist."/> + <comment value="This element is labeled as a modifier because documents that append to other documents are incomplete on their own."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.relatesTo"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.id"> + <path value="DocumentReference.relatesTo.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.extension"> + <path value="DocumentReference.relatesTo.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.modifierExtension"> + <path value="DocumentReference.relatesTo.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.code"> + <path value="DocumentReference.relatesTo.code"/> + <short value="replaces | transforms | signs | appends"/> + <definition value="The type of relationship that this document has with anther document."/> + <comment value="If this document appends another document, then the document cannot be fully understood without also accessing the referenced document."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.relatesTo.code"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentRelationshipType"/> + </extension> + <strength value="required"/> + <description value="The type of relationship between documents."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo.code"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship.typeCode"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations type"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.target"> + <path value="DocumentReference.relatesTo.target"/> + <short value="Target of the relationship"/> + <definition value="The target document of this relationship."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.relatesTo.target"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo.target"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".target[classCode="DOC", moodCode="EVN"].id"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations reference"/> + </mapping> + </element> + <element id="DocumentReference.description"> + <path value="DocumentReference.description"/> + <short value="Human-readable description"/> + <definition value="Human-readable description of the source document."/> + <comment value="What the document is about, a terse summary of the document."/> + <requirements value="Helps humans to assess whether the document is of interest."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.description"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="TXA-25"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode="SUBJ"].target.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.comments"/> + </mapping> + </element> + <element id="DocumentReference.securityLabel"> + <path value="DocumentReference.securityLabel"/> + <short value="Document security-tags"/> + <definition value="A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the "reference" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to."/> + <comment value="The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce. 

In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects."/> + <requirements value="Use of the Health Care Privacy/Security Classification (HCS) system of security-tag use is recommended."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.securityLabel"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.confidentiality, Composition.meta.security"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-18"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".confidentialityCode"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.confidentialityCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/confidentialityCode/@code"/> + </mapping> + </element> + <element id="DocumentReference.content"> + <path value="DocumentReference.content"/> + <short value="Document referenced"/> + <definition value="The document and format referenced."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content"/> + <min value="1"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Bundle(Composition+*)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + </element> + <element id="DocumentReference.content.id"> + <path value="DocumentReference.content.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.extension"> + <path value="DocumentReference.content.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.modifierExtension"> + <path value="DocumentReference.content.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment"> + <path value="DocumentReference.content.attachment"/> + <short value="Where to access the document"/> + <definition value="The document or URL of the document along with critical metadata to prove content has integrity."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content.attachment"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Attachment"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.language, 
Composition.title, 
Composition.date"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-3 for mime type"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.mimeType, DocumentEntry.languageCode, DocumentEntry.URI, DocumentEntry.size, DocumentEntry.hash, DocumentEntry.title, DocumentEntry.creationTime"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/languageCode, ClinicalDocument/title, ClinicalDocument/date"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.id"> + <path value="DocumentReference.content.attachment.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.extension"> + <path value="DocumentReference.content.attachment.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.contentType"> + <path value="DocumentReference.content.attachment.contentType"/> + <short value="Mime type of the content, with charset etc."/> + <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate."/> + <requirements value="Processors of the data need to be able to know how to interpret the data."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.contentType"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <example> + <label value="General"/> + <valueCode value="text/plain; charset=UTF-8, image/png"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="MimeType"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="required"/> + <description value="The mime type of an attachment. Any valid mime type is allowed."/> + <valueSet value="http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./mediaType, ./charset"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.language"> + <path value="DocumentReference.content.attachment.language"/> + <short value="Human language of the content (BCP-47)"/> + <definition value="The human language of the content. The value can be any valid value according to BCP 47."/> + <requirements value="Users need to be able to choose between the languages in a set of attachments."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <example> + <label value="General"/> + <valueCode value="en-AU"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="./language"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.data"> + <path value="DocumentReference.content.attachment.data"/> + <short value="The document is contained in the .data element, base64 encoded"/> + <definition value="The actual data of the attachment - a sequence of bytes, base64 encoded."/> + <comment value="The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON."/> + <requirements value="The data needs to able to be transmitted inline."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.data"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="v2"/> + <map value="ED.5"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./data"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.url"> + <path value="DocumentReference.content.attachment.url"/> + <short value="Uri where the data can be found"/> + <definition value="A location where the data can be accessed."/> + <comment value="If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data."/> + <requirements value="The data needs to be transmitted by reference."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Attachment.url"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="url"/> + </type> + <example> + <label value="General"/> + <valueUrl value="http://www.acme.com/logo-small.png"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./reference/literal"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.size"> + <path value="DocumentReference.content.attachment.size"/> + <short value="Number of bytes of content (if url provided)"/> + <definition value="The number of bytes of data that make up this attachment (before base64 encoding, if that is done)."/> + <comment value="The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference."/> + <requirements value="Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.size"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A (needs data type R3 proposal)"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.hash"> + <path value="DocumentReference.content.attachment.hash"/> + <short value="Hash of the data (sha-1, base64ed)"/> + <definition value="The calculated hash of the data using SHA-1. Represented using base64."/> + <comment value="The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](http://hl7.org/fhir/R4/provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature."/> + <requirements value="Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.hash"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.title"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="DocumentReference.content.attachment.title"/> + <short value="Label to display in place of the data"/> + <definition value="A label or set of text to display in place of the data."/> + <requirements value="Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Official Corporate Logo"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="./title/data"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.creation"> + <path value="DocumentReference.content.attachment.creation"/> + <short value="Date attachment was first created"/> + <definition value="The date that the attachment was first created."/> + <requirements value="This is often tracked as an integrity issue for use of the attachment."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.creation"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A (needs data type R3 proposal)"/> + </mapping> + </element> + <element id="DocumentReference.content.format"> + <path value="DocumentReference.content.format"/> + <short value="Format/content rules for the document"/> + <definition value="An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType."/> + <comment value="Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.content.format"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentFormat"/> + </extension> + <strength value="preferred"/> + <description value="Document Format Codes."/> + <valueSet value="http://hl7.org/fhir/ValueSet/formatcodes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.meta.profile"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.formatCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="derived from the IHE Profile or Implementation Guide templateID"/> + </mapping> + </element> + <element id="DocumentReference.context"> + <path value="DocumentReference.context"/> + <short value="Clinical context of document"/> + <definition value="The clinical context in which the document was prepared."/> + <comment value="These values are primarily added to help with searching for interesting/relevant documents."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="outboundRelationship[typeCode="SUBJ"].target[classCode<'ACT']"/> + </mapping> + </element> + <element id="DocumentReference.context.id"> + <path value="DocumentReference.context.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.extension"> + <path value="DocumentReference.context.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.modifierExtension"> + <path value="DocumentReference.context.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.encounter"> + <path value="DocumentReference.context.encounter"/> + <short value="Context of the document content"/> + <definition value="Describes the clinical encounter or type of care that the document content is associated with."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.encounter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.context"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.encounter"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct])"/> + </mapping> + </element> + <element id="DocumentReference.context.event"> + <path value="DocumentReference.context.event"/> + <short value="Main clinical acts documented"/> + <definition value="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the type Code, such as a "History and Physical Report" in which the procedure being documented is necessarily a "History and Physical" act."/> + <comment value="An event can further specialize the act inherent in the type, such as where it is simply "Procedure Report" and the procedure was a "colonoscopy". If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.event"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentEventType"/> + </extension> + <strength value="example"/> + <description value="This list of codes represents the main clinical acts being documented."/> + <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActCode"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.code"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.eventCodeList"/> + </mapping> + </element> + <element id="DocumentReference.context.period"> + <path value="DocumentReference.context.period"/> + <short value="Time of service that is being documented"/> + <definition value="The time period over which the service that is described by the document was provided."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.period"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Period"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.period"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".effectiveTime"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.serviceStartTime, DocumentEntry.serviceStopTime"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/low/
@value --> ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/high/
@value"/> + </mapping> + </element> + <element id="DocumentReference.context.facilityType"> + <path value="DocumentReference.context.facilityType"/> + <short value="Kind of facility where patient was seen"/> + <definition value="The kind of facility where the patient was seen."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.facilityType"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80FacilityType"/> + </extension> + <strength value="example"/> + <description value="XDS Facility Type."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-facilitycodes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="LOC"].role[classCode="DSDLOC"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.healthcareFacilityTypeCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="usually a mapping to a local ValueSet. Must be consistent with /clinicalDocument/code"/> + </mapping> + </element> + <element id="DocumentReference.context.practiceSetting"> + <path value="DocumentReference.context.practiceSetting"/> + <short value="Additional details about where the content was created (e.g. clinical specialty)"/> + <definition value="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty."/> + <comment value="This element should be based on a coarse classification system for the class of specialty practice. Recommend the use of the classification system for Practice Setting, such as that described by the Subject Matter Domain in LOINC."/> + <requirements value="This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.practiceSetting"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80PracticeSetting"/> + </extension> + <strength value="example"/> + <description value="Additional details about where the content was created (e.g. clinical specialty)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-practice-codes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="LOC"].role[classCode="DSDLOC"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.practiceSettingCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo"> + <path value="DocumentReference.context.sourcePatientInfo"/> + <short value="Patient demographics from source"/> + <definition value="The Patient Information as known when the document was published. May be a reference to a version specific, or contained."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.sourcePatientInfo"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.subject"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="SBJ"].role[typeCode="PAT"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.sourcePatientInfo, DocumentEntry.sourcePatientId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/recordTarget/"/> + </mapping> + </element> + <element id="DocumentReference.context.related"> + <path value="DocumentReference.context.related"/> + <short value="Related identifiers or resources"/> + <definition value="Related identifiers or resources associated with the DocumentReference."/> + <comment value="May be identifiers or resources that caused the DocumentReference or referenced Document to be created."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.related"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.detail"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.referenceIdList"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/relatedDocument"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="DocumentReference"> + <path value="DocumentReference"/> + </element> + <element id="DocumentReference.modifierExtension"> + <path value="DocumentReference.modifierExtension"/> + <max value="0"/> + </element> + <element id="DocumentReference.masterIdentifier"> + <path value="DocumentReference.masterIdentifier"/> + <min value="1"/> + </element> + <element id="DocumentReference.identifier"> + <path value="DocumentReference.identifier"/> + <max value="0"/> + </element> + <element id="DocumentReference.status"> + <path value="DocumentReference.status"/> + <patternCode value="current"/> + </element> + <element id="DocumentReference.docStatus"> + <path value="DocumentReference.docStatus"/> + <max value="0"/> + </element> + <element id="DocumentReference.type"> + <path value="DocumentReference.type"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.category"> + <path value="DocumentReference.category"/> + <max value="1"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.subject"> + <path value="DocumentReference.subject"/> + <min value="1"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + </element> + <element id="DocumentReference.date"> + <path value="DocumentReference.date"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.author"> + <path value="DocumentReference.author"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.relatesTo"> + <path value="DocumentReference.relatesTo"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.securityLabel"> + <path value="DocumentReference.securityLabel"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.content"> + <path value="DocumentReference.content"/> + <definition value="The document and format referenced."/> + <max value="1"/> + </element> + <element id="DocumentReference.content.attachment.contentType"> + <path value="DocumentReference.content.attachment.contentType"/> + <min value="1"/> + </element> + <element id="DocumentReference.content.attachment.language"> + <path value="DocumentReference.content.attachment.language"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.content.attachment.data"> + <path value="DocumentReference.content.attachment.data"/> + <short value="The document is contained in the .data element, base64 encoded"/> + <min value="1"/> + </element> + <element id="DocumentReference.content.attachment.url"> + <path value="DocumentReference.content.attachment.url"/> + <max value="0"/> + </element> + <element id="DocumentReference.content.attachment.creation"> + <path value="DocumentReference.content.attachment.creation"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.content.format"> + <path value="DocumentReference.content.format"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.context.period"> + <path value="DocumentReference.context.period"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.context.facilityType"> + <path value="DocumentReference.context.facilityType"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.context.practiceSetting"> + <path value="DocumentReference.context.practiceSetting"/> + <mustSupport value="true"/> + </element> + <element id="DocumentReference.context.sourcePatientInfo"> + <path value="DocumentReference.context.sourcePatientInfo"/> + <mustSupport value="true"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.SubmissionSetUniqueIdIdentifier.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.SubmissionSetUniqueIdIdentifier.xml new file mode 100644 index 0000000000..4541b8881a --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.SubmissionSetUniqueIdIdentifier.xml @@ -0,0 +1,457 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.SubmissionSetUniqueIdIdentifier"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SubmissionSetUniqueIdIdentifier-definitions.html#Identifier">Identifier</a><a name="Identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.UniqueIdIdentifier.html">UniqueIdIdentifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An identifier intended for computation</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SubmissionSetUniqueIdIdentifier-definitions.html#Identifier.system">system</a><a name="Identifier.system"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The namespace for the identifier value</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">urn:ietf:rfc:3986</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.SubmissionSetUniqueIdIdentifier-definitions.html#Identifier.value">value</a><a name="Identifier.value"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints (mhd-startswithoid)">C</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The value that is unique</span><br/><span style="font-weight:bold">mhd-startswithoid: </span>value must start with urn:oid:</td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"/> + <version value="4.2.1"/> + <name value="SubmissionSetUniqueIdIdentifier"/> + <title value="uniqueId Identifier for SubmissionSet"/> + <status value="active"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="uniqueId Identifier holding a OID"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="servd"/> + <uri value="http://www.omg.org/spec/ServD/1.0/"/> + <name value="ServD"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <type value="Identifier"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + <derivation value="constraint"/> + <snapshot> + <element id="Identifier"> + <path value="Identifier"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="Identifier.id"> + <path value="Identifier.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Identifier.extension"> + <path value="Identifier.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Identifier.use"> + <path value="Identifier.use"/> + <short value="usual | official | temp | secondary | old (If known)"/> + <definition value="The purpose of this identifier."/> + <comment value="Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."/> + <requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.use"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="usual"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one."/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="IdentifierUse"/> + </extension> + <strength value="required"/> + <description value="Identifies the purpose for this identifier, if known ."/> + <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.code or implied by context"/> + </mapping> + </element> + <element id="Identifier.type"> + <path value="Identifier.type"/> + <short value="Description of identifier"/> + <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/> + <comment value="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."/> + <requirements value="Allows users to make use of identifiers when the identifier system is not known."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="IdentifierType"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."/> + <valueSet value="http://hl7.org/fhir/ValueSet/identifier-type"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="CX.5"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.code or implied by context"/> + </mapping> + </element> + <element id="Identifier.system"> + <path value="Identifier.system"/> + <short value="The namespace for the identifier value"/> + <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/> + <comment value="Identifier.system is always case sensitive."/> + <requirements value="There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Identifier.system"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <fixedUri value="urn:ietf:rfc:3986"/> + <example> + <label value="General"/> + <valueUri value="http://www.acme.com/identifiers/patient"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.4 / EI-2-4"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.root or Role.id.root"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./IdentifierType"/> + </mapping> + </element> + <element id="Identifier.value"> + <path value="Identifier.value"/> + <short value="The value that is unique"/> + <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/> + <comment value="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](http://hl7.org/fhir/R4/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."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Identifier.value"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="123456"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="mhd-startswithoid"/> + <severity value="error"/> + <human value="value must start with urn:oid:"/> + <expression value="value.startsWith('urn:oid:')"/> + <source value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.1 / EI.1"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./Value"/> + </mapping> + </element> + <element id="Identifier.period"> + <path value="Identifier.period"/> + <short value="Time period when id is/was valid for use"/> + <definition value="Time period during which identifier is/was valid for use."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.period"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Period"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.7 + CX.8"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.effectiveTime or implied by context"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./StartDate and ./EndDate"/> + </mapping> + </element> + <element id="Identifier.assigner"> + <path value="Identifier.assigner"/> + <short value="Organization that issued id (may be just text)"/> + <definition value="Organization that issued/manages the identifier."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.assigner"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.4 / (CX.4,CX.9,CX.10)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./IdentifierIssuingAuthority"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="Identifier"> + <path value="Identifier"/> + </element> + <element id="Identifier.system"> + <path value="Identifier.system"/> + <fixedUri value="urn:ietf:rfc:3986"/> + </element> + <element id="Identifier.value"> + <path value="Identifier.value"/> + <constraint> + <key value="mhd-startswithoid"/> + <severity value="error"/> + <human value="value must start with urn:oid:"/> + <expression value="value.startsWith('urn:oid:')"/> + <source value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"/> + </constraint> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference.xml new file mode 100644 index 0000000000..9221b70260 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference.xml @@ -0,0 +1,3227 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.UnContained.Comprehensive.DocumentReference"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference">DocumentReference</a><a name="DocumentReference"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.DocumentReference.html">MinimalDocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.type">type</a><a name="DocumentReference.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Kind of document (LOINC if possible)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.category">category</a><a name="DocumentReference.category"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Categorization of document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.subject">subject</a><a name="DocumentReference.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Who/what is the subject of the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.securityLabel">securityLabel</a><a name="DocumentReference.securityLabel"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Document security-tags</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.content">content</a><a name="DocumentReference.content"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck111.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.content.attachment">attachment</a><a name="DocumentReference.content.attachment"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.content.attachment.language">language</a><a name="DocumentReference.content.attachment.language"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Human language of the content (BCP-47)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.content.attachment.creation">creation</a><a name="DocumentReference.content.attachment.creation"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Date attachment was first created</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.content.format">format</a><a name="DocumentReference.content.format"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Coding">Coding</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Format/content rules for the document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.context">context</a><a name="DocumentReference.context"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Clinical context of document</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.context.facilityType">facilityType</a><a name="DocumentReference.context.facilityType"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Kind of facility where patient was seen</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.context.practiceSetting">practiceSetting</a><a name="DocumentReference.context.practiceSetting"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Additional details about where the content was created (e.g. clinical specialty)</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference-definitions.html#DocumentReference.context.sourcePatientInfo">sourcePatientInfo</a><a name="DocumentReference.context.sourcePatientInfo"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Patient demographics from source</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.DocumentReference"/> + <version value="4.2.1"/> + <name value="UnContainedComprehensiveDocumentReference"/> + <title value="MHD DocumentReference Comprehensive UnContained References Option"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the DocumentReference resource for MHD with Comprehensive Metadata Option but without a requirement for contained author, authenticator, or sourcePatientInfo. 
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR DocumentReference implementation of the 
- ebRIM implementation at [3:4.2.3.2 Document Entry](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.2).
- with use-cases and constraints found in [3:4.3 Additional Document Sharing Requirements](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="workflow"/> + <uri value="http://hl7.org/fhir/workflow"/> + <name value="Workflow Pattern"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <uri value="http://hl7.org/fhir/composition"/> + <name value="FHIR Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="xds"/> + <uri value="http://ihe.net/xds"/> + <name value="XDS metadata equivalent"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <uri value="XDS"/> + <name value="XDS and MHD Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="DocumentReference"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + <derivation value="constraint"/> + <snapshot> + <element id="DocumentReference"> + <path value="DocumentReference"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="DocumentReference.id"> + <path value="DocumentReference.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta"> + <path value="DocumentReference.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.id"> + <path value="DocumentReference.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.meta.extension"> + <path value="DocumentReference.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.meta.versionId"> + <path value="DocumentReference.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.lastUpdated"> + <path value="DocumentReference.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.source"> + <path value="DocumentReference.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="DocumentReference.meta.profile"> + <path value="DocumentReference.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.limitedMetadata"/> + </mapping> + </element> + <element id="DocumentReference.meta.security"> + <path value="DocumentReference.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="DocumentReference.meta.tag"> + <path value="DocumentReference.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="DocumentReference.implicitRules"> + <path value="DocumentReference.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="DocumentReference.language"> + <path value="DocumentReference.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="DocumentReference.text"> + <path value="DocumentReference.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="DocumentReference.contained"> + <path value="DocumentReference.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.extension"> + <path value="DocumentReference.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.modifierExtension"> + <path value="DocumentReference.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="DocumentReference.masterIdentifier"> + <path value="DocumentReference.masterIdentifier"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <comment value="CDA Document Id extension and root."/> + <requirements value="The structure and format of this Id shall be consistent with the specification corresponding to the formatCode attribute. (e.g. for a DICOM standard document a 64-character numeric UID, for an HL7 CDA format a serialization of the CDA Document Id extension and root in the form "oid^extension", where OID is a 64 digits max, and the Id is a 16 UTF-8 char max. If the OID is coded without the extension then the '^' character shall not be included.)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.masterIdentifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.uniqueId"/> + </mapping> + </element> + <element id="DocumentReference.identifier"> + <path value="DocumentReference.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Other identifiers for the document"/> + <definition value="Other identifiers associated with the document, including version independent identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.identifier"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-16?"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id / .setId"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.entryUUID"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.entryUUID"/> + </mapping> + </element> + <element id="DocumentReference.identifier:entryUUID"> + <path value="DocumentReference.identifier"/> + <sliceName value="entryUUID"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="DocumentReference.status"> + <path value="DocumentReference.status"/> + <short value="current | superseded | entered-in-error"/> + <definition value="The status of this document reference."/> + <comment value="This is the status of the DocumentReference object, which might be independent from the docStatus element.

This element is labeled as a modifier because the status contains the codes that mark the document or reference as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/DocumentReferenceStats"/> + </binding> + <mapping> + <identity value="workflow"/> + <map value="Event.status"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-19"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="interim: .completionCode="IN" & ./statusCode[isNormalDatatype()]="active"; final: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and not(./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct()]); amended: .completionCode="AU" && ./statusCode[isNormalDatatype()]="complete" and ./inboundRelationship[typeCode="SUBJ" and isNormalActRelationship()]/source[subsumesCode("ActClass#CACT") and moodCode="EVN" and domainMember("ReviseDocument", code) and isNormalAct() and statusCode="completed"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]="obsolete""/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.availabilityStatus"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.availabilityStatus"/> + </mapping> + </element> + <element id="DocumentReference.docStatus"> + <path value="DocumentReference.docStatus"/> + <short value="preliminary | final | amended | entered-in-error"/> + <definition value="The status of the underlying document."/> + <comment value="The document that is pointed to might be in various lifecycle states."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DocumentReference.docStatus"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ReferredDocumentStatus"/> + </extension> + <strength value="required"/> + <description value="Status of the underlying document."/> + <valueSet value="http://hl7.org/fhir/ValueSet/composition-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.status"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-17"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".statusCode"/> + </mapping> + </element> + <element id="DocumentReference.type"> + <path value="DocumentReference.type"/> + <short value="Kind of document (LOINC if possible)"/> + <definition value="Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced."/> + <comment value="Key metadata element describing the document that describes he exact type of document. Helps humans to assess whether the document is of interest when viewing a list of documents."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80Type"/> + </extension> + <strength value="preferred"/> + <description value="Precise type of clinical document."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-doc-typecodes"/> + </binding> + <mapping> + <identity value="workflow"/> + <map value="Event.code"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.type"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-2"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.type"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/code/@code 

The typeCode should be mapped from the ClinicalDocument/code element to a set of document type codes configured in the affinity domain. One suggested coding system to use for typeCode is LOINC, in which case the mapping step can be omitted."/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.typeCode"/> + </mapping> + </element> + <element id="DocumentReference.category"> + <path value="DocumentReference.category"/> + <short value="Categorization of document"/> + <definition value="A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type."/> + <comment value="Key metadata element describing the the category or classification of the document. This is a broader perspective that groups similar documents based on how they would be used. This is a primary key used in searching."/> + <alias value="claxs"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.category"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80Class"/> + </extension> + <strength value="example"/> + <description value="High-level kind of a clinical document at a macro level."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-classcodes"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.class"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="Derived from a mapping of /ClinicalDocument/code/@code to an Affinity Domain specified coded value to use and coding system. Affinity Domains are encouraged to use the appropriate value for Type of Service, based on the LOINC Type of Service (see Page 53 of the LOINC User's Manual). Must be consistent with /ClinicalDocument/code/@code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.classCode"/> + </mapping> + </element> + <element id="DocumentReference.subject"> + <path value="DocumentReference.subject"/> + <short value="Who/what is the subject of the document"/> + <definition value="Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.subject"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.subject"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="PID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="SBJ"].role[typeCode="PAT"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.patientId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/recordTarget/"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.patientId"/> + </mapping> + </element> + <element id="DocumentReference.date"> + <path value="DocumentReference.date"/> + <short value="When this document reference was created"/> + <definition value="When the document reference was created."/> + <comment value="Referencing/indexing time is used for tracking, organizing versions and searching."/> + <alias value="indexed"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.occurrence[x]"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.date"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime[type="TS"]"/> + </mapping> + </element> + <element id="DocumentReference.author"> + <path value="DocumentReference.author"/> + <short value="Who and/or what authored the document"/> + <definition value="Identifies who is responsible for adding the information to the document."/> + <comment value="Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant)."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.author"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.author"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-9 (No standard way to indicate a Device in HL7 v2 MDM message)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="AUT"].role[classCode="ASSIGNED"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.author"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/author"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.author"/> + </mapping> + </element> + <element id="DocumentReference.authenticator"> + <path value="DocumentReference.authenticator"/> + <short value="Who/what authenticated the document"/> + <definition value="Which person or organization authenticates that this document is valid."/> + <comment value="Represents a participant within the author institution who has legally authenticated or attested the document. Legal authentication implies that a document has been signed manually or electronically by the legal Authenticator."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.authenticator"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.witness"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.attester"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-10"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.legalAuthenticator"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/legalAuthenticator"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.legalAuthenticator"/> + </mapping> + </element> + <element id="DocumentReference.custodian"> + <path value="DocumentReference.custodian"/> + <short value="Organization which maintains the document"/> + <definition value="Identifies the organization or group who is responsible for ongoing maintenance of and access to the document."/> + <comment value="Identifies the logical organization (software system, vendor, or department) to go to find the current version, where to report issues, etc. This is different from the physical location (URL, disk drive, or server) of the document, which is the technical location of the document, which host may be delegated to the management of some other organization."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.custodian"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.performer.actor"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.custodian"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"]"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="not mapped"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo"> + <path value="DocumentReference.relatesTo"/> + <short value="Relationships to other documents"/> + <definition value="Relationships that this document has with other document references that already exist."/> + <comment value="This element is labeled as a modifier because documents that append to other documents are incomplete on their own."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.relatesTo"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="iti-mhd-repl"/> + <severity value="error"/> + <human value="a DocumetReference replacements needs to relate to a superseded DocumentReference"/> + <expression value="code='replaces' implies target.exists()"/> + <source value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.id"> + <path value="DocumentReference.relatesTo.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.extension"> + <path value="DocumentReference.relatesTo.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.modifierExtension"> + <path value="DocumentReference.relatesTo.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.code"> + <path value="DocumentReference.relatesTo.code"/> + <short value="replaces | transforms | signs | appends"/> + <definition value="The type of relationship that this document has with anther document."/> + <comment value="If this document appends another document, then the document cannot be fully understood without also accessing the referenced document."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.relatesTo.code"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentRelationshipType"/> + </extension> + <strength value="required"/> + <description value="The type of relationship between documents."/> + <valueSet value="http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo.code"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship.typeCode"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations type"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations.type"/> + </mapping> + </element> + <element id="DocumentReference.relatesTo.target"> + <path value="DocumentReference.relatesTo.target"/> + <short value="Target of the relationship"/> + <definition value="The target document of this relationship."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.relatesTo.target"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.relatesTo.target"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".target[classCode="DOC", moodCode="EVN"].id"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry Associations reference"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry Associations.reference"/> + </mapping> + </element> + <element id="DocumentReference.description"> + <path value="DocumentReference.description"/> + <short value="Human-readable description"/> + <definition value="Human-readable description of the source document."/> + <comment value="What the document is about, a terse summary of the document."/> + <requirements value="Helps humans to assess whether the document is of interest."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.description"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="TXA-25"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode="SUBJ"].target.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.comments"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.comments"/> + </mapping> + </element> + <element id="DocumentReference.securityLabel"> + <path value="DocumentReference.securityLabel"/> + <short value="Document security-tags"/> + <definition value="A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the "reference" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to."/> + <comment value="The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce. 

In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects."/> + <requirements value="Use of the Health Care Privacy/Security Classification (HCS) system of security-tag use is recommended."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="DocumentReference.securityLabel"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.confidentiality, Composition.meta.security"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-18"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".confidentialityCode"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.confidentialityCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/confidentialityCode/@code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.confidentialityCode"/> + </mapping> + </element> + <element id="DocumentReference.content"> + <path value="DocumentReference.content"/> + <short value="Document referenced"/> + <definition value="The document and format referenced."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content"/> + <min value="1"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Bundle(Composition+*)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + </element> + <element id="DocumentReference.content.id"> + <path value="DocumentReference.content.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.extension"> + <path value="DocumentReference.content.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.modifierExtension"> + <path value="DocumentReference.content.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment"> + <path value="DocumentReference.content.attachment"/> + <short value="Where to access the document"/> + <definition value="The document or URL of the document along with critical metadata to prove content has integrity."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content.attachment"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Attachment"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.language, 
Composition.title, 
Composition.date"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="TXA-3 for mime type"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.mimeType, DocumentEntry.languageCode, DocumentEntry.URI, DocumentEntry.size, DocumentEntry.hash, DocumentEntry.title, DocumentEntry.creationTime"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/languageCode, ClinicalDocument/title, ClinicalDocument/date"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.id"> + <path value="DocumentReference.content.attachment.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.extension"> + <path value="DocumentReference.content.attachment.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.contentType"> + <path value="DocumentReference.content.attachment.contentType"/> + <short value="Mime type of the content, with charset etc."/> + <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate."/> + <requirements value="Processors of the data need to be able to know how to interpret the data."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.contentType"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <example> + <label value="General"/> + <valueCode value="text/plain; charset=UTF-8, image/png"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="MimeType"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="required"/> + <description value="The mime type of an attachment. Any valid mime type is allowed."/> + <valueSet value="http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./mediaType, ./charset"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.mimeType"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.language"> + <path value="DocumentReference.content.attachment.language"/> + <short value="Human language of the content (BCP-47)"/> + <definition value="The human language of the content. The value can be any valid value according to BCP 47."/> + <requirements value="Users need to be able to choose between the languages in a set of attachments."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <example> + <label value="General"/> + <valueCode value="en-AU"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="./language"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.languageCode"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.data"> + <path value="DocumentReference.content.attachment.data"/> + <short value="Data inline, base64ed"/> + <definition value="The actual data of the attachment - a sequence of bytes, base64 encoded."/> + <comment value="The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON."/> + <requirements value="The data needs to able to be transmitted inline."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Attachment.data"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="v2"/> + <map value="ED.5"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./data"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.url"> + <path value="DocumentReference.content.attachment.url"/> + <short value="Uri where the data can be found"/> + <definition value="A location where the data can be accessed."/> + <comment value="If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data."/> + <requirements value="The data needs to be transmitted by reference."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.url"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="url"/> + </type> + <example> + <label value="General"/> + <valueUrl value="http://www.acme.com/logo-small.png"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./reference/literal"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.repositoryUniqueId or DocuemntEntry.URI"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.size"> + <path value="DocumentReference.content.attachment.size"/> + <short value="Number of bytes of content (if url provided)"/> + <definition value="The number of bytes of data that make up this attachment (before base64 encoding, if that is done)."/> + <comment value="The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference."/> + <requirements value="Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.size"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A (needs data type R3 proposal)"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.size"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.hash"> + <path value="DocumentReference.content.attachment.hash"/> + <short value="Hash of the data (sha-1, base64ed)"/> + <definition value="The calculated hash of the data using SHA-1. Represented using base64."/> + <comment value="The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](http://hl7.org/fhir/R4/provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature."/> + <requirements value="Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.hash"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="base64Binary"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.hash"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.title"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="DocumentReference.content.attachment.title"/> + <short value="Label to display in place of the data"/> + <definition value="A label or set of text to display in place of the data."/> + <requirements value="Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Attachment.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Official Corporate Logo"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="./title/data"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.title"/> + </mapping> + </element> + <element id="DocumentReference.content.attachment.creation"> + <path value="DocumentReference.content.attachment.creation"/> + <short value="Date attachment was first created"/> + <definition value="The date that the attachment was first created."/> + <requirements value="This is often tracked as an integrity issue for use of the attachment."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Attachment.creation"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A (needs data type R3 proposal)"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.creationTime"/> + </mapping> + </element> + <element id="DocumentReference.content.format"> + <path value="DocumentReference.content.format"/> + <short value="Format/content rules for the document"/> + <definition value="An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType."/> + <comment value="Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.content.format"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="preferred"/> + <valueSet value="http://ihe.net/fhir/ihe.formatcode.fhir/ValueSet/formatcode"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.meta.profile"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="document.text"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.formatCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="derived from the IHE Profile or Implementation Guide templateID"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.formatCode"/> + </mapping> + </element> + <element id="DocumentReference.context"> + <path value="DocumentReference.context"/> + <short value="Clinical context of document"/> + <definition value="The clinical context in which the document was prepared."/> + <comment value="These values are primarily added to help with searching for interesting/relevant documents."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.context"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="outboundRelationship[typeCode="SUBJ"].target[classCode<'ACT']"/> + </mapping> + </element> + <element id="DocumentReference.context.id"> + <path value="DocumentReference.context.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.extension"> + <path value="DocumentReference.context.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.modifierExtension"> + <path value="DocumentReference.context.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.encounter"> + <path value="DocumentReference.context.encounter"/> + <short value="Context of the document content"/> + <definition value="Describes the clinical encounter or type of care that the document content is associated with."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.encounter"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="workflow"/> + <map value="Event.context"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.encounter"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="unique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct])"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.referenceIdList with CXi encoding for urn:ihe:iti:xds:2015:encounterId"/> + </mapping> + </element> + <element id="DocumentReference.context.event"> + <path value="DocumentReference.context.event"/> + <short value="Main clinical acts documented"/> + <definition value="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the type Code, such as a "History and Physical Report" in which the procedure being documented is necessarily a "History and Physical" act."/> + <comment value="An event can further specialize the act inherent in the type, such as where it is simply "Procedure Report" and the procedure was a "colonoscopy". If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.event"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentEventType"/> + </extension> + <strength value="example"/> + <description value="This list of codes represents the main clinical acts being documented."/> + <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActCode"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.code"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.eventCodeList"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.eventCodeList"/> + </mapping> + </element> + <element id="DocumentReference.context.period"> + <path value="DocumentReference.context.period"/> + <short value="Time of service that is being documented"/> + <definition value="The time period over which the service that is described by the document was provided."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.period"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Period"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.period"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".effectiveTime"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.serviceStartTime, DocumentEntry.serviceStopTime"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/low/
@value --> ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/high/
@value"/> + </mapping> + </element> + <element id="DocumentReference.context.period.id"> + <path value="DocumentReference.context.period.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.period.extension"> + <path value="DocumentReference.context.period.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.period.start"> + <path value="DocumentReference.context.period.start"/> + <short value="Starting time with inclusive boundary"/> + <definition value="The start of the period. The boundary is inclusive."/> + <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Period.start"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <condition value="per-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="DR.1"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./low"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumetEntry.serviceStartTime"/> + </mapping> + </element> + <element id="DocumentReference.context.period.end"> + <path value="DocumentReference.context.period.end"/> + <short value="End time with inclusive boundary, if not ongoing"/> + <definition value="The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> + <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Period.end"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> + <condition value="per-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="DR.2"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./high"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.serviceStopTime"/> + </mapping> + </element> + <element id="DocumentReference.context.facilityType"> + <path value="DocumentReference.context.facilityType"/> + <short value="Kind of facility where patient was seen"/> + <definition value="The kind of facility where the patient was seen."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.facilityType"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80FacilityType"/> + </extension> + <strength value="example"/> + <description value="XDS Facility Type."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-facilitycodes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="LOC"].role[classCode="DSDLOC"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.healthcareFacilityTypeCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="usually a mapping to a local ValueSet. Must be consistent with /clinicalDocument/code"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.healthcareFacilityTypeCode"/> + </mapping> + </element> + <element id="DocumentReference.context.practiceSetting"> + <path value="DocumentReference.context.practiceSetting"/> + <short value="Additional details about where the content was created (e.g. clinical specialty)"/> + <definition value="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty."/> + <comment value="This element should be based on a coarse classification system for the class of specialty practice. Recommend the use of the classification system for Practice Setting, such as that described by the Subject Matter Domain in LOINC."/> + <requirements value="This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.practiceSetting"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="DocumentC80PracticeSetting"/> + </extension> + <strength value="example"/> + <description value="Additional details about where the content was created (e.g. clinical specialty)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/c80-practice-codes"/> + </binding> + <mapping> + <identity value="fhircomposition"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="LOC"].role[classCode="DSDLOC"].code"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.practiceSettingCode"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="usually from a mapping to a local ValueSet"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.practiceSettingCode"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo"> + <path value="DocumentReference.context.sourcePatientInfo"/> + <short value="Patient demographics from source"/> + <definition value="The Patient Information as known when the document was published. May be a reference to a version specific, or contained."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DocumentReference.context.sourcePatientInfo"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.subject"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode="SBJ"].role[typeCode="PAT"]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.sourcePatientInfo, DocumentEntry.sourcePatientId"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/recordTarget/"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.id"> + <path value="DocumentReference.context.sourcePatientInfo.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.extension"> + <path value="DocumentReference.context.sourcePatientInfo.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.reference"> + <path value="DocumentReference.context.sourcePatientInfo.reference"/> + <short value="Literal reference, Relative, internal or absolute URL"/> + <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."/> + <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.reference"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <condition value="ref-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.sourcePatientInfo"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.type"> + <path value="DocumentReference.context.sourcePatientInfo.type"/> + <short value="Type the reference refers to (e.g. "Patient")"/> + <definition value="The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)."/> + <comment value="This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="FHIRResourceTypeExt"/> + </extension> + <strength value="extensible"/> + <description value="Aa resource (or, for logical models, the URI of the logical model)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/resource-types"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.identifier"> + <path value="DocumentReference.context.sourcePatientInfo.identifier"/> + <short value="Logical reference, when literal reference is not known"/> + <definition value="An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."/> + <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. 

When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".identifier"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.sourcePatientId"/> + </mapping> + </element> + <element id="DocumentReference.context.sourcePatientInfo.display"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="DocumentReference.context.sourcePatientInfo.display"/> + <short value="Text alternative for the resource"/> + <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> + <comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.display"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="DocumentReference.context.related"> + <path value="DocumentReference.context.related"/> + <short value="Related identifiers or resources"/> + <definition value="Related identifiers or resources associated with the DocumentReference."/> + <comment value="May be identifiers or resources that caused the DocumentReference or referenced Document to be created."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DocumentReference.context.related"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="fhircomposition"/> + <map value="Composition.event.detail"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct]"/> + </mapping> + <mapping> + <identity value="xds"/> + <map value="DocumentEntry.referenceIdList"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument/relatedDocument"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="DocumentEntry.referenceIdList using CXi encoding for type when possible"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="DocumentReference"> + <path value="DocumentReference"/> + </element> + <element id="DocumentReference.type"> + <path value="DocumentReference.type"/> + <min value="1"/> + </element> + <element id="DocumentReference.category"> + <path value="DocumentReference.category"/> + <min value="1"/> + </element> + <element id="DocumentReference.subject"> + <path value="DocumentReference.subject"/> + <min value="1"/> + </element> + <element id="DocumentReference.securityLabel"> + <path value="DocumentReference.securityLabel"/> + <min value="1"/> + </element> + <element id="DocumentReference.content.attachment.language"> + <path value="DocumentReference.content.attachment.language"/> + <min value="1"/> + </element> + <element id="DocumentReference.content.attachment.creation"> + <path value="DocumentReference.content.attachment.creation"/> + <min value="1"/> + </element> + <element id="DocumentReference.content.format"> + <path value="DocumentReference.content.format"/> + <min value="1"/> + </element> + <element id="DocumentReference.context"> + <path value="DocumentReference.context"/> + <min value="1"/> + </element> + <element id="DocumentReference.context.facilityType"> + <path value="DocumentReference.context.facilityType"/> + <min value="1"/> + </element> + <element id="DocumentReference.context.practiceSetting"> + <path value="DocumentReference.context.practiceSetting"/> + <min value="1"/> + </element> + <element id="DocumentReference.context.sourcePatientInfo"> + <path value="DocumentReference.context.sourcePatientInfo"/> + <min value="1"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle.xml new file mode 100644 index 0000000000..238a9ba1ca --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle.xml @@ -0,0 +1,9006 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.UnContained.Comprehensive.ProvideBundle"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle-definitions.html#Bundle">Bundle</a><a name="Bundle"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.ProvideBundle.html">MinimalProvideDocumentBundle</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck15.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle-definitions.html#Bundle.entry:SubmissionSet" title="Slice SubmissionSet">entry:SubmissionSet</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">the SubmissionSet</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck140.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle-definitions.html#Bundle.entry:SubmissionSet.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet.html" title="List">SubmissionSetComprehensiveUnContained</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A list is a curated collection of resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck05.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle-definitions.html#Bundle.entry:DocumentRefs" title="Slice DocumentRefs">entry:DocumentRefs</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">the DocumentReference resources</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck040.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle-definitions.html#Bundle.entry:DocumentRefs.resource">resource</a><a name="Bundle.entry.resource"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.DocumentReference.html" title="DocumentReference">UnContainedComprehensiveDocumentReference</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A reference to a document</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.ProvideBundle"/> + <version value="4.2.1"/> + <name value="UnContainedComprehensiveProvideDocumentBundle"/> + <title value="MHD UnContained Comprehensive Provide Document Bundle"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the Bundle transaction for ITI-65 Provide Document resources with UnContained allowed but requiring Comprehensive Metadata for MHD.

- [UnContained Comprehensive Metadata](StructureDefinition-IHE.MHD.UnContained.Comprehensive.ProvideBundle.html): `https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.ProvideBundle` 
 - note that Minimal Metadata does not require containment, so UnContained Minimal is the same as Minimal Metadata
 - note that UnContained only applies to DocumentReference and SubmissionSet type Lists; so the following apply
 - shall be a Transaction Bundle
 - all resources shall be compliant with comprehensive unContained constraints, they may be marked comprehensive unContained
 - shall create a [SubmissionSet type List](StructureDefinition-IHE.MHD.Minimal.SubmissionSet.html) that is either minimal, comprehensive, or unContained
 - may create one or more [DocumentReference](StructureDefinition-IHE.MHD.Minimal.DocumentReference.html) that is either minimal, comprehensive, or unContained
 - with a document as a [Binary](http://hl7.org/fhir/R4/binary.html)
 - or, when implementing the **ITI-65 FHIR Document Publish** option, a [FHIR Document Bundle](http://hl7.org/fhir/R4/bundle.html)
 - may create/update one or more [Folder type List](StructureDefinition-IHE.MHD.Minimal.Folder.html) that is either minimal, comprehensive, or unContained
 - may create/update/read one [Patient](http://hl7.org/fhir/R4/patient.html)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="cda"/> + <uri value="http://hl7.org/v3/cda"/> + <name value="CDA (R2)"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="Bundle"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle"/> + <derivation value="constraint"/> + <snapshot> + <element id="Bundle"> + <path value="Bundle"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.id"> + <path value="Bundle.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta"> + <path value="Bundle.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.id"> + <path value="Bundle.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.meta.extension"> + <path value="Bundle.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.meta.versionId"> + <path value="Bundle.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.lastUpdated"> + <path value="Bundle.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.source"> + <path value="Bundle.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.profile"> + <path value="Bundle.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.meta.security"> + <path value="Bundle.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="Bundle.meta.tag"> + <path value="Bundle.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="Bundle.implicitRules"> + <path value="Bundle.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="Bundle.language"> + <path value="Bundle.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="Bundle.identifier"> + <path value="Bundle.identifier"/> + <short value="Persistent identifier for the bundle"/> + <definition value="A persistent identifier for the bundle that won't change as a bundle is copied from server to server."/> + <comment value="Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.id"/> + </mapping> + </element> + <element id="Bundle.type"> + <path value="Bundle.type"/> + <short value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"/> + <definition value="Indicates the purpose of this bundle - how it is intended to be used."/> + <comment value="It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.type"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="transaction"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="BundleType"/> + </extension> + <strength value="required"/> + <description value="Indicates the purpose of a bundle - how it is intended to be used."/> + <valueSet value="http://hl7.org/fhir/ValueSet/bundle-type|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + </element> + <element id="Bundle.timestamp"> + <path value="Bundle.timestamp"/> + <short value="When the bundle was assembled"/> + <definition value="The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle."/> + <comment value="For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated. 

Usage:

* document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time
* message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message
* history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates
* searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query
* transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning

The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.timestamp"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.init"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.effectiveTime"/> + </mapping> + </element> + <element id="Bundle.total"> + <path value="Bundle.total"/> + <short value="If search, the total number of matches"/> + <definition value="If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle."/> + <comment value="Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.total"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="unsignedInt"/> + </type> + <condition value="bdl-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link"> + <path value="Bundle.link"/> + <short value="Links related to this Bundle"/> + <definition value="A series of links that provide context to this bundle."/> + <comment value="Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS)). 

Bundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was [read](http://hl7.org/fhir/R4/http.html#read) directly.

This specification defines some specific uses of Bundle.link for [searching](http://hl7.org/fhir/R4/search.html#conformance) and [paging](http://hl7.org/fhir/R4/http.html#paging), but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.link"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.id"> + <path value="Bundle.link.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.extension"> + <path value="Bundle.link.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.link.modifierExtension"> + <path value="Bundle.link.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.link.relation"> + <path value="Bundle.link.relation"/> + <short value="See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1"/> + <definition value="A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.relation"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.link.url"> + <path value="Bundle.link.url"/> + <short value="Reference details for the link"/> + <definition value="The reference details for the link."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.link.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry"> + <path value="Bundle.entry"/> + <slicing> + <discriminator> + <type value="profile"/> + <path value="resource"/> + </discriminator> + <discriminator> + <type value="value"/> + <path value="request.method"/> + </discriminator> + <description value="Slicing based on the profile conformance of the entry"/> + <rules value="closed"/> + </slicing> + <short value="Entry in the bundle - will have a resource or information"/> + <definition value="An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only)."/> + <min value="1"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.resource"> + <path value="Bundle.entry.resource"/> + <short value="A resource in the bundle"/> + <definition value="The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet"> + <path value="Bundle.entry"/> + <sliceName value="SubmissionSet"/> + <short value="the SubmissionSet"/> + <definition value="The SubmissionSet defines who submitted it, why they submitted it, when they submitted, what is in it, and where it is destine."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.resource"> + <path value="Bundle.entry.resource"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.SubmissionSet"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="XDS SubmissionSet"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:SubmissionSet.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:SubmissionSet.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:SubmissionSet.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:SubmissionSet.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="DocumentRefs"/> + <short value="the DocumentReference resources"/> + <definition value="any new DocumentReference that are part of the SubmissionSet. These might be new or other associations"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <short value="A reference to a document"/> + <definition value="A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text."/> + <comment value="Usually, this is used for documents other than those defined by FHIR."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.DocumentReference"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="workflow"/> + <map value="Event"/> + </mapping> + <mapping> + <identity value="fhircomposition"/> + <map value="when describing a Composition"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Document[classCode="DOC" and moodCode="EVN"]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="when describing a CDA"/> + </mapping> + <mapping> + <identity value="DocumentEntry-Mapping"/> + <map value="XDS DocumentEntry"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentRefs.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:DocumentRefs.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:DocumentRefs.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:DocumentRefs.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="UpdateDocumentRefs"/> + <short value="the superseded DocumentReference resources"/> + <definition value="any updated DocumentReference that are part of the SubmissionSet if a new new DocumentReference replaces this DocumentReference."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <short value="Operation Request or Response"/> + <definition value="This resource is a non-persisted resource used to pass information into and back from an [operation](http://hl7.org/fhir/R4/operations.html). It has no other use, and there is no RESTful endpoint associated with it."/> + <comment value="The parameters that may be used are defined by the OperationDefinition resource."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Parameters"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="PATCH"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:UpdateDocumentRefs.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents"> + <path value="Bundle.entry"/> + <sliceName value="Documents"/> + <short value="the Documents"/> + <definition value="the Documents referenced by the DocumentReference resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.resource"> + <path value="Bundle.entry.resource"/> + <short value="Pure binary content defined by a format other than FHIR"/> + <definition value="A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc."/> + <comment value="Typically, Binary resources are used for handling content such as: 

* CDA Documents (i.e. with XDS) 
* PDF Documents 
* Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Binary"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Binary"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="ED"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Documents.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="preferred"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Documents.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Documents.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Documents.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments"> + <path value="Bundle.entry"/> + <sliceName value="FhirDocuments"/> + <short value="the FHIR-FhirDocuments"/> + <definition value="the FHIR-FhirDocuments referenced by the DocumentReference resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.resource"> + <path value="Bundle.entry.resource"/> + <short value="Contains a collection of resources"/> + <definition value="A container for a collection of resources."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Bundle"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </type> + <constraint> + <key value="bdl-1"/> + <severity value="error"/> + <human value="total only when a search or history"/> + <expression value="total.empty() or (type = 'searchset') or (type = 'history')"/> + <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-2"/> + <severity value="error"/> + <human value="entry.search only when a search"/> + <expression value="entry.search.empty() or (type = 'searchset')"/> + <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-3"/> + <severity value="error"/> + <human value="entry.request mandatory for batch/transaction/history, otherwise prohibited"/> + <expression value="entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-4"/> + <severity value="error"/> + <human value="entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited"/> + <expression value="entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))"/> + <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response') or (f:type/@value = 'history')"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-7"/> + <severity value="error"/> + <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)"/> + <expression value="(type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()"/> + <xpath value="(f:type/@value = 'history') or (count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-9"/> + <severity value="error"/> + <human value="A document must have an identifier with a system and a value"/> + <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-10"/> + <severity value="error"/> + <human value="A document must have a date"/> + <expression value="type = 'document' implies (timestamp.hasValue())"/> + <xpath value="not(f:type/@value = 'document') or exists(f:timestamp/@value)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-11"/> + <severity value="error"/> + <human value="A document must have a Composition as the first resource"/> + <expression value="type = 'document' implies entry.first().resource.is(Composition)"/> + <xpath value="not(f:type/@value='document') or f:entry[1]/f:resource/f:Composition"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-12"/> + <severity value="error"/> + <human value="A message must have a MessageHeader as the first resource"/> + <expression value="type = 'message' implies entry.first().resource.is(MessageHeader)"/> + <xpath value="not(f:type/@value='message') or f:entry[1]/f:resource/f:MessageHeader"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument, if bundle.type = document"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:FhirDocuments.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="POST"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="HTTPVerb"/> + </extension> + <strength value="required"/> + <description value="HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details."/> + <valueSet value="http://hl7.org/fhir/ValueSet/http-verb|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:FhirDocuments.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:FhirDocuments.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:FhirDocuments.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders"> + <path value="Bundle.entry"/> + <sliceName value="Folders"/> + <short value="Folders"/> + <definition value="any Folders being created or updated"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.resource"> + <path value="Bundle.entry.resource"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="Folder-Mapping"/> + <map value="XDS Folder"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Folders.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovideFolderActions"/> + </binding> + </element> + <element id="Bundle.entry:Folders.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Folders.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Folders.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient"> + <path value="Bundle.entry"/> + <sliceName value="Patient"/> + <short value="the Patient"/> + <definition value="the Patient"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <orderMeaning value="For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type"/> + <constraint> + <key value="bdl-5"/> + <severity value="error"/> + <human value="must be a resource unless there's a request or response"/> + <expression value="resource.exists() or request.exists() or response.exists()"/> + <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="bdl-8"/> + <severity value="error"/> + <human value="fullUrl cannot be a version specific reference"/> + <expression value="fullUrl.contains('/_history/').not()"/> + <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))"/> + <source value="http://hl7.org/fhir/StructureDefinition/Bundle"/> + </constraint> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.id"> + <path value="Bundle.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.extension"> + <path value="Bundle.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.modifierExtension"> + <path value="Bundle.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.link"> + <path value="Bundle.entry.link"/> + <short value="Links related to this entry"/> + <definition value="A series of links that provide context to this entry."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Bundle.entry.link"/> + <min value="0"/> + <max value="*"/> + </base> + <contentReference value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.fullUrl"> + <path value="Bundle.entry.fullUrl"/> + <short value="URI for resource (Absolute URL server address or URI for UUID/OID)"/> + <definition value="The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: 
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified."/> + <comment value="fullUrl might not be [unique in the context of a resource](http://hl7.org/fhir/R4/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/R4/references.html), the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/R4/references.html#regex), then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.fullUrl"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.resource"> + <path value="Bundle.entry.resource"/> + <short value="Information about an individual or animal receiving health care services"/> + <definition value="Demographics and other administrative information about an individual or animal receiving care or other health-related services."/> + <alias value="SubjectOfCare Client Resident"/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.resource"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Patient"/> + <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Patient[classCode=PAT]"/> + </mapping> + <mapping> + <identity value="cda"/> + <map value="ClinicalDocument.recordTarget.patientRole"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search"> + <path value="Bundle.entry.search"/> + <short value="Search related information"/> + <definition value="Information about the search process that lead to the creation of this entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.search.id"> + <path value="Bundle.entry.search.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.extension"> + <path value="Bundle.entry.search.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.modifierExtension"> + <path value="Bundle.entry.search.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.search.mode"> + <path value="Bundle.entry.search.mode"/> + <short value="match | include | outcome - why this is in the result set"/> + <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.mode"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SearchEntryMode"/> + </extension> + <strength value="required"/> + <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process."/> + <valueSet value="http://hl7.org/fhir/ValueSet/search-entry-mode|4.0.1"/> + </binding> + </element> + <element id="Bundle.entry:Patient.search.score"> + <path value="Bundle.entry.search.score"/> + <short value="Search ranking (between 0 and 1)"/> + <definition value="When searching, the server's search ranking score for the entry."/> + <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See [Patient Match](http://hl7.org/fhir/R4/patient-operation-match.html) for the EMPI search which relates to this element."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.search.score"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="decimal"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request"> + <path value="Bundle.entry.request"/> + <short value="Additional execution information (transaction/batch/history)"/> + <definition value="Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-3"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.id"> + <path value="Bundle.entry.request.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.extension"> + <path value="Bundle.entry.request.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.modifierExtension"> + <path value="Bundle.entry.request.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.request.method"> + <path value="Bundle.entry.request.method"/> + <short value="GET | HEAD | POST | PUT | DELETE | PATCH"/> + <definition value="In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.method"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovidePatientActions"/> + </binding> + </element> + <element id="Bundle.entry:Patient.request.url"> + <path value="Bundle.entry.request.url"/> + <short value="URL for HTTP equivalent of this entry"/> + <definition value="The URL for this entry, relative to the root (the address to which the request is posted)."/> + <comment value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]"."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifNoneMatch"> + <path value="Bundle.entry.request.ifNoneMatch"/> + <short value="For managing cache currency"/> + <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifModifiedSince"> + <path value="Bundle.entry.request.ifModifiedSince"/> + <short value="For managing cache currency"/> + <definition value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/R4/http.html#cread)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifModifiedSince"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifMatch"> + <path value="Bundle.entry.request.ifMatch"/> + <short value="For managing update contention"/> + <definition value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/R4/http.html#concurrency)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifMatch"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.request.ifNoneExist"> + <path value="Bundle.entry.request.ifNoneExist"/> + <short value="For conditional creates"/> + <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/R4/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.request.ifNoneExist"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response"> + <path value="Bundle.entry.response"/> + <short value="Results of execution (transaction/batch/history)"/> + <definition value="Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="bdl-4"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.id"> + <path value="Bundle.entry.response.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.extension"> + <path value="Bundle.entry.response.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.modifierExtension"> + <path value="Bundle.entry.response.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Bundle.entry:Patient.response.status"> + <path value="Bundle.entry.response.status"/> + <short value="Status response code (text optional)"/> + <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.location"> + <path value="Bundle.entry.response.location"/> + <short value="The location (if the operation returns a location)"/> + <definition value="The location header created by processing this operation, populated if the operation returns a location."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.location"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.etag"> + <path value="Bundle.entry.response.etag"/> + <short value="The Etag for the resource (if relevant)"/> + <definition value="The Etag for the resource, if the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http://hl7.org/fhir/R4/http.html#versioning) and [Managing Resource Contention](http://hl7.org/fhir/R4/http.html#concurrency))."/> + <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.etag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.lastModified"> + <path value="Bundle.entry.response.lastModified"/> + <short value="Server's date time modified"/> + <definition value="The date/time that the resource was modified on the server."/> + <comment value="This has to match the same time in the meta header (meta.lastUpdated) if a resource is included."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.lastModified"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.entry:Patient.response.outcome"> + <path value="Bundle.entry.response.outcome"/> + <short value="OperationOutcome with hints and warnings (for batch/transaction)"/> + <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction."/> + <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.entry.response.outcome"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="Bundle.signature"> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> + <valueCode value="trial-use"/> + </extension> + <path value="Bundle.signature"/> + <short value="Digital Signature"/> + <definition value="Digital Signature - base64 encoded. XML-DSig or a JWT."/> + <comment value="The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific."/> + <requirements value="A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Bundle.signature"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Signature"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + </snapshot> + <differential> + <element id="Bundle"> + <path value="Bundle"/> + </element> + <element id="Bundle.entry:SubmissionSet"> + <path value="Bundle.entry"/> + <sliceName value="SubmissionSet"/> + </element> + <element id="Bundle.entry:SubmissionSet.resource"> + <path value="Bundle.entry.resource"/> + <type> + <code value="List"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.SubmissionSet"/> + </type> + </element> + <element id="Bundle.entry:DocumentRefs"> + <path value="Bundle.entry"/> + <sliceName value="DocumentRefs"/> + </element> + <element id="Bundle.entry:DocumentRefs.resource"> + <path value="Bundle.entry.resource"/> + <type> + <code value="DocumentReference"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.DocumentReference"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet.xml new file mode 100644 index 0000000000..e60f7a10ce --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet.xml @@ -0,0 +1,1931 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.UnContained.Comprehensive.SubmissionSet"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet-definitions.html#List">List</a><a name="List"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-IHE.MHD.Minimal.SubmissionSet.html">SubmissionSet</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet-definitions.html#List.extension">extension</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">2..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Extension</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet-definitions.html#List.extension:designationType" title="Slice designationType">extension:designationType</a><a name="List.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="StructureDefinition-ihe-designationType.html" title="Extension">DesignationType</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Clinical code of the List</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UnContained.Comprehensive.SubmissionSet-definitions.html#List.subject">subject</a><a name="List.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a style="opacity: 0.5" href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">If all resources have the same subject</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.SubmissionSet"/> + <version value="4.2.1"/> + <name value="SubmissionSetComprehensiveUnContained"/> + <title value="MHD SubmissionSet Comprehensive UnContained"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A profile on the List resource for MHD UnContained Comprehensive SubmissionSet.
- MHD is based on the [IHE Document Sharing](https://profiles.ihe.net/ITI/HIE-Whitepaper/index.html) model, 
- the [3:4.1 Abstract Metadata Model](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.1.html#4.1), and 
- the use defined here is FHIR List for use as a SubmissionSet implementation of the 
- ebRIM implementation at [3:4.2.3.3 SubmissionSet Attributes](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.2.html#4.2.3.3).
- with use-cases and constraints found in [3:4.3.1 Submission Metadata Attribute Optionality](https://profiles.ihe.net/ITI/TF/Volume3/ch-4.3.html#4.3.1) for 
 - MHD Document Source that has implemented both Comprehensive Metadata Option and UnContained References Option"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="w5"/> + <uri value="http://hl7.org/fhir/fivews"/> + <name value="FiveWs Pattern Mapping"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <uri value="XDS"/> + <name value="XDS and MHD Mapping"/> + </mapping> + <kind value="resource"/> + <abstract value="false"/> + <type value="List"/> + <baseDefinition value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"/> + <derivation value="constraint"/> + <snapshot> + <element id="List"> + <path value="List"/> + <short value="A list is a curated collection of resources"/> + <definition value="A list is a curated collection of resources."/> + <alias value="Collection"/> + <alias value="WorkingList"/> + <alias value="Organizer"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List"/> + <min value="0"/> + <max value="*"/> + </base> + <constraint> + <key value="dom-2"/> + <severity value="error"/> + <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> + <expression value="contained.contained.empty()"/> + <xpath value="not(parent::f:contained and f:contained)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-3"/> + <severity value="error"/> + <human value="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"/> + <expression value="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()"/> + <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-4"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> + <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="dom-5"/> + <severity value="error"/> + <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> + <expression value="contained.meta.security.empty()"/> + <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> + <valueBoolean value="true"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> + <valueMarkdown value="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."/> + </extension> + <key value="dom-6"/> + <severity value="warning"/> + <human value="A resource should have narrative for robust management"/> + <expression value="text.`div`.exists()"/> + <xpath value="exists(f:text/h:div)"/> + <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> + </constraint> + <constraint> + <key value="lst-1"/> + <severity value="error"/> + <human value="A list can only have an emptyReason if it is empty"/> + <expression value="emptyReason.empty() or entry.empty()"/> + <xpath value="not(exists(f:emptyReason) and exists(f:entry))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-2"/> + <severity value="error"/> + <human value="The deleted flag can only be used if the mode of the list is "changes""/> + <expression value="mode = 'changes' or entry.deleted.empty()"/> + <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <constraint> + <key value="lst-3"/> + <severity value="error"/> + <human value="An entry date can only be used if the mode of the list is "working""/> + <expression value="mode = 'working' or entry.date.empty()"/> + <xpath value="(f:mode/@value = 'working') or not(exists(f:entry/f:date))"/> + <source value="http://hl7.org/fhir/StructureDefinition/List"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Entity. Role, or Act"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Act[classCode<ORG,moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="XDS SubmissionSet"/> + <comment value="Used in the context of the IHE MHD ImplementationGuide"/> + </mapping> + </element> + <element id="List.id"> + <path value="List.id"/> + <short value="Logical id of this artifact"/> + <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> + <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="id"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta"> + <path value="List.meta"/> + <short value="Metadata about the resource"/> + <definition value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.meta"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Meta"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.id"> + <path value="List.meta.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.extension"> + <path value="List.meta.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.meta.versionId"> + <path value="List.meta.versionId"/> + <short value="Version specific identifier"/> + <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/> + <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.versionId"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="id"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.lastUpdated"> + <path value="List.meta.lastUpdated"/> + <short value="When the resource version last changed"/> + <definition value="When the resource last changed - e.g. when the version changed."/> + <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.lastUpdated"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="instant"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.source"> + <path value="List.meta.source"/> + <short value="Identifies where the resource comes from"/> + <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/> + <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. 

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Meta.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + </element> + <element id="List.meta.profile"> + <path value="List.meta.profile"/> + <short value="Profiles this resource claims to conform to"/> + <definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/> + <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.profile"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="canonical"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.limitedMetadata"/> + </mapping> + </element> + <element id="List.meta.security"> + <path value="List.meta.security"/> + <short value="Security Labels applied to this resource"/> + <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/> + <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.security"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="SecurityLabels"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="Security Labels from the Healthcare Privacy and Security Classification System."/> + <valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/> + </binding> + </element> + <element id="List.meta.tag"> + <path value="List.meta.tag"/> + <short value="Tags applied to this resource"/> + <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/> + <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Meta.tag"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Coding"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Tags"/> + </extension> + <strength value="example"/> + <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/> + <valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/> + </binding> + </element> + <element id="List.implicitRules"> + <path value="List.implicitRules"/> + <short value="A set of rules under which this content was created"/> + <definition value="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."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.implicitRules"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="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 value="true"/> + </element> + <element id="List.language"> + <path value="List.language"/> + <short value="Language of the resource content"/> + <definition value="The base language in which the resource is written."/> + <comment value="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)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Resource.language"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> + <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="Language"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="preferred"/> + <description value="A human language."/> + <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> + </binding> + </element> + <element id="List.text"> + <path value="List.text"/> + <short value="Text summary of the resource, for human interpretation"/> + <definition value="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."/> + <comment value="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."/> + <alias value="narrative"/> + <alias value="html"/> + <alias value="xhtml"/> + <alias value="display"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="DomainResource.text"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Narrative"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="Act.text?"/> + </mapping> + </element> + <element id="List.contained"> + <path value="List.contained"/> + <short value="Contained, inline Resources"/> + <definition value="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."/> + <comment value="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."/> + <alias value="inline resources"/> + <alias value="anonymous resources"/> + <alias value="contained resources"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.contained"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Resource"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.extension"> + <path value="List.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <ordered value="false"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="2"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <short value="Clinical code of the List"/> + <definition value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + </element> + <element id="List.extension:sourceId"> + <path value="List.extension"/> + <sliceName value="sourceId"/> + <short value="Publisher organization identity of the SubmissionSet"/> + <definition value="The globally unique, immutable, identifier of the entity that contributed the SubmissionSet. When a broker is involved in sending SubmissionSets from a collection of client systems, it shall use a different sourceId for submissions from each separate system to allow for tracking. The format of the identifier is an OID."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.sourceId"/> + </mapping> + </element> + <element id="List.extension:intendedRecipient"> + <path value="List.extension"/> + <sliceName value="intendedRecipient"/> + <short value="Intended recipient of the SubmissionSet"/> + <definition value="holds the identity of the organization or person the SubmissionSet is intended. For XDR and eMail (e.g. Direct) this tends to be a Practitioner or Patient with a telecom holding an email, but this is not strictly required."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="DomainResource.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.intendedRecipient"/> + </mapping> + </element> + <element id="List.modifierExtension"> + <path value="List.modifierExtension"/> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="DomainResource.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> + <isSummary value="false"/> + </element> + <element id="List.identifier"> + <path value="List.identifier"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="use"/> + </discriminator> + <rules value="open"/> + </slicing> + <short value="Business identifier"/> + <definition value="Identifier for the List assigned for business purposes outside the context of FHIR."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.identifier"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".id"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.entryUUID and SubmissionSet.uniqueId"/> + </mapping> + </element> + <element id="List.identifier:uniqueId"> + <path value="List.identifier"/> + <sliceName value="uniqueId"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.identifier:entryUUID"> + <path value="List.identifier"/> + <sliceName value="entryUUID"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Identifier"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"/> + </type> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="List.status"> + <path value="List.status"/> + <short value="current | retired | entered-in-error"/> + <definition value="Indicates the current state of this list."/> + <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.status"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="current"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListStatus"/> + </extension> + <strength value="required"/> + <description value="The current state of the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-status|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.status"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".status[current=active;retired=obsolete;entered-in-error=nullified]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.availabilityStatus"/> + </mapping> + </element> + <element id="List.mode"> + <path value="List.mode"/> + <short value="working | snapshot | changes"/> + <definition value="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted."/> + <comment value="This element is labeled as a modifier because a change list must not be misunderstood as a complete list."/> + <requirements value="Lists are used in various ways, and it must be known in what way it is safe to use them."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.mode"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="working"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If set to "changes", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListMode"/> + </extension> + <strength value="required"/> + <description value="The processing mode that applies to this list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-mode|4.0.1"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.class"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="shall be 'working'"/> + </mapping> + </element> + <element id="List.title"> + <path value="List.title"/> + <short value="Descriptive name for the list"/> + <definition value="A label for the list assigned by the author."/> + <requirements value="Allows customization beyond just the code identifying the kind of list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.title"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="Dr. Jane's Patients"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".title"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.title"/> + </mapping> + </element> + <element id="List.code"> + <path value="List.code"/> + <short value="What the purpose of this list is"/> + <definition value="This code defines the purpose of the list - why it was created."/> + <comment value="If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code."/> + <requirements value="Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.code"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <patternCodeableConcept> + <coding> + <system value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <code value="submissionset"/> + </coding> + </patternCodeableConcept> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <strength value="required"/> + <valueSet value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDlistTypesVS"/> + </binding> + <mapping> + <identity value="w5"/> + <map value="FiveWs.what[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".code"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="shall be 'submissionset'"/> + </mapping> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <short value="If all resources have the same subject"/> + <definition value="The common subject (or patient) of the resources that are in the list if there is one."/> + <comment value="Some purely arbitrary lists do not have a common subject, so this is optional."/> + <requirements value="The primary purpose of listing the subject explicitly is to help with finding the right list."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.subject"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject[x]"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<SUB].role (and sometimes .player)"/> + </mapping> + <mapping> + <identity value="w5"/> + <map value="FiveWs.subject"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.patientId"/> + </mapping> + </element> + <element id="List.encounter"> + <path value="List.encounter"/> + <short value="Context in which list created"/> + <definition value="The encounter that is the context in which this list was created."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.encounter"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.context"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.date"> + <path value="List.date"/> + <short value="When the list was prepared"/> + <definition value="The date that the list was prepared."/> + <comment value="The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs."/> + <requirements value="Identifies how current the list is which affects relevance."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.recorded"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].time[type=TS]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.submissionTime"/> + </mapping> + </element> + <element id="List.source"> + <path value="List.source"/> + <short value="Who and/or what defined the list contents (aka Author)"/> + <definition value="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list."/> + <comment value="The primary source is the entity that made the decisions what items are in the list. This may be software or user."/> + <requirements value="Allows follow-up as well as context."/> + <alias value="Author"/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.source"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <mustSupport value="true"/> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="w5"/> + <map value="FiveWs.author"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value=".participation[typeCode<AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode<AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.author"/> + </mapping> + </element> + <element id="List.source.id"> + <path value="List.source.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.source.extension"> + <path value="List.source.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.source.extension:authorOrg"> + <path value="List.source.extension"/> + <sliceName value="authorOrg"/> + <short value="Author organization of the SubmissionSet"/> + <definition value="When the author of the SubmissionSet is an Organization, this extension shall be used."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.author when the author is an Organization"/> + </mapping> + </element> + <element id="List.source.reference"> + <path value="List.source.reference"/> + <short value="Literal reference, Relative, internal or absolute URL"/> + <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."/> + <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.reference"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <condition value="ref-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.source.type"> + <path value="List.source.type"/> + <short value="Type the reference refers to (e.g. "Patient")"/> + <definition value="The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)."/> + <comment value="This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="FHIRResourceTypeExt"/> + </extension> + <strength value="extensible"/> + <description value="Aa resource (or, for logical models, the URI of the logical model)."/> + <valueSet value="http://hl7.org/fhir/ValueSet/resource-types"/> + </binding> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.source.identifier"> + <path value="List.source.identifier"/> + <short value="Logical reference, when literal reference is not known"/> + <definition value="An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."/> + <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. 

When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.identifier"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value=".identifier"/> + </mapping> + </element> + <element id="List.source.display"> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> + <valueBoolean value="true"/> + </extension> + <path value="List.source.display"/> + <short value="Text alternative for the resource"/> + <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> + <comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Reference.display"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.orderedBy"> + <path value="List.orderedBy"/> + <short value="What order the list has"/> + <definition value="What order applies to the items in the list."/> + <comment value="Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order."/> + <requirements value="Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.orderedBy"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListOrder"/> + </extension> + <strength value="preferred"/> + <description value="What order applies to the items in a list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-order"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP].sequenceNumber > 1"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.note"> + <path value="List.note"/> + <short value="Comments about the list"/> + <definition value="Comments that apply to the overall list."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="List.note"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Annotation"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ].act.text"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="SubmissionSet.comments"/> + </mapping> + </element> + <element id="List.entry"> + <path value="List.entry"/> + <short value="Entries in the list"/> + <definition value="Entries in this list."/> + <comment value="If there are no entries in the list, an emptyReason SHOULD be provided."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="List.entry"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="BackboneElement"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]"/> + </mapping> + </element> + <element id="List.entry.id"> + <path value="List.entry.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.extension"> + <path value="List.entry.extension"/> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.modifierExtension"> + <path value="List.entry.modifierExtension"/> + <short value="Extensions that cannot be ignored even if unrecognized"/> + <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> + <comment value="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."/> + <requirements value="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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/> + <alias value="extensions"/> + <alias value="user content"/> + <alias value="modifiers"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="BackboneElement.modifierExtension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> + <isSummary value="true"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="List.entry.flag"> + <path value="List.entry.flag"/> + <short value="Status/Workflow information about this item"/> + <definition value="The flag allows the system constructing the list to indicate the role and significance of the item in the list."/> + <comment value="The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is "changes"."/> + <requirements value="This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.flag"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListItemFlag"/> + </extension> + <strength value="example"/> + <description value="Codes that provide further information about the reason and meaning of the item in the list."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-item-flag"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS"].value"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.deleted"> + <path value="List.entry.deleted"/> + <short value="If this item is actually marked as deleted"/> + <definition value="True if this item is marked as deleted in the list."/> + <comment value="If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is "changes". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list."/> + <requirements value="The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as "deleted"."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.deleted"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="boolean"/> + </type> + <meaningWhenMissing value="List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'"/> + <condition value="lst-2"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="If deleted is true, then the item included in the list isn't actually part of the list anymore"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="added: .updateMode=("A","AR") retained: .updateMode="NC" updated: .updateMode="R" deleted: .updateMode="D""/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.date"> + <path value="List.entry.date"/> + <short value="When item added to list"/> + <definition value="When this item was added to the list."/> + <requirements value="The date may be significant for understanding the meaning of items in a working list."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.entry.date"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="dateTime"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".availabilityTime"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + <element id="List.entry.item"> + <path value="List.entry.item"/> + <short value="Actual entry"/> + <definition value="A reference to the actual resource from which data was derived."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="List.entry.item"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/List"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value=".target or .role or .role.entity"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="references to DocumentReference(s) and Folder List(s)"/> + </mapping> + </element> + <element id="List.emptyReason"> + <path value="List.emptyReason"/> + <short value="Why list is empty"/> + <definition value="If the list is empty, why the list is empty."/> + <comment value="The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases."/> + <requirements value="Allows capturing things like "none exist" or "not asked" which can be important for most lists."/> + <min value="0"/> + <max value="0"/> + <base> + <path value="List.emptyReason"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <condition value="lst-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="ListEmptyReason"/> + </extension> + <strength value="preferred"/> + <description value="If a list is empty, why it is empty."/> + <valueSet value="http://hl7.org/fhir/ValueSet/list-empty-reason"/> + </binding> + <mapping> + <identity value="rim"/> + <map value=".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"/> + </mapping> + <mapping> + <identity value="SubmissionSet-Mapping"/> + <map value="n/a"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="List.extension"> + <path value="List.extension"/> + <min value="2"/> + </element> + <element id="List.extension:designationType"> + <path value="List.extension"/> + <sliceName value="designationType"/> + <min value="1"/> + </element> + <element id="List.subject"> + <path value="List.subject"/> + <min value="1"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UniqueIdIdentifier.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UniqueIdIdentifier.xml new file mode 100644 index 0000000000..0381c8e803 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-IHE.MHD.UniqueIdIdentifier.xml @@ -0,0 +1,451 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="IHE.MHD.UniqueIdIdentifier"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UniqueIdIdentifier-definitions.html#Identifier">Identifier</a><a name="Identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UniqueIdIdentifier-definitions.html#Identifier.use">use</a><a name="Identifier.use"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">usual | official | temp | secondary | old (If known)</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">usual</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UniqueIdIdentifier-definitions.html#Identifier.system">system</a><a name="Identifier.system"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The namespace for the identifier value</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-IHE.MHD.UniqueIdIdentifier-definitions.html#Identifier.value">value</a><a name="Identifier.value"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The value that is unique</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"/> + <version value="4.2.1"/> + <name value="UniqueIdIdentifier"/> + <title value="uniqueId Identifier"/> + <status value="active"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="uniqueId Identifier

- see [Appendix Z](https://profiles.ihe.net/ITI/TF/Volume2/ch-Z.html#z.9.1-identifier-type)"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="v2"/> + <uri value="http://hl7.org/v2"/> + <name value="HL7 v2 Mapping"/> + </mapping> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <mapping> + <identity value="servd"/> + <uri value="http://www.omg.org/spec/ServD/1.0/"/> + <name value="ServD"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <type value="Identifier"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Identifier"/> + <derivation value="constraint"/> + <snapshot> + <element id="Identifier"> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> + <valueCode value="normative"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> + <valueCode value="4.0.0"/> + </extension> + <path value="Identifier"/> + <short value="An identifier intended for computation"/> + <definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Identifier"/> + <min value="0"/> + <max value="*"/> + </base> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + <mapping> + <identity value="v2"/> + <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="Identifier"/> + </mapping> + </element> + <element id="Identifier.id"> + <path value="Identifier.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Identifier.extension"> + <path value="Identifier.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Additional content defined by implementations"/> + <definition value="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."/> + <comment value="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."/> + <alias value="extensions"/> + <alias value="user content"/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Identifier.use"> + <path value="Identifier.use"/> + <short value="usual | official | temp | secondary | old (If known)"/> + <definition value="The purpose of this identifier."/> + <comment value="Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."/> + <requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.use"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="code"/> + </type> + <patternCode value="usual"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="true"/> + <isModifierReason value="This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one."/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="IdentifierUse"/> + </extension> + <strength value="required"/> + <description value="Identifies the purpose for this identifier, if known ."/> + <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="N/A"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.code or implied by context"/> + </mapping> + </element> + <element id="Identifier.type"> + <path value="Identifier.type"/> + <short value="Description of identifier"/> + <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/> + <comment value="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."/> + <requirements value="Allows users to make use of identifiers when the identifier system is not known."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.type"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <binding> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> + <valueString value="IdentifierType"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> + <valueBoolean value="true"/> + </extension> + <strength value="extensible"/> + <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."/> + <valueSet value="http://hl7.org/fhir/ValueSet/identifier-type"/> + </binding> + <mapping> + <identity value="v2"/> + <map value="CX.5"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.code or implied by context"/> + </mapping> + </element> + <element id="Identifier.system"> + <path value="Identifier.system"/> + <short value="The namespace for the identifier value"/> + <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/> + <comment value="Identifier.system is always case sensitive."/> + <requirements value="There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Identifier.system"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="uri"/> + </type> + <example> + <label value="General"/> + <valueUri value="http://www.acme.com/identifiers/patient"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.4 / EI-2-4"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.root or Role.id.root"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./IdentifierType"/> + </mapping> + </element> + <element id="Identifier.value"> + <path value="Identifier.value"/> + <short value="The value that is unique"/> + <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/> + <comment value="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](http://hl7.org/fhir/R4/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."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Identifier.value"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="string"/> + </type> + <example> + <label value="General"/> + <valueString value="123456"/> + </example> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.1 / EI.1"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./Value"/> + </mapping> + </element> + <element id="Identifier.period"> + <path value="Identifier.period"/> + <short value="Time period when id is/was valid for use"/> + <definition value="Time period during which identifier is/was valid for use."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.period"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Period"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.7 + CX.8"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="Role.effectiveTime or implied by context"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./StartDate and ./EndDate"/> + </mapping> + </element> + <element id="Identifier.assigner"> + <path value="Identifier.assigner"/> + <short value="Organization that issued id (may be just text)"/> + <definition value="Organization that issued/manages the identifier."/> + <comment value="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."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Identifier.assigner"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="true"/> + <mapping> + <identity value="v2"/> + <map value="CX.4 / (CX.4,CX.9,CX.10)"/> + </mapping> + <mapping> + <identity value="rim"/> + <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> + </mapping> + <mapping> + <identity value="servd"/> + <map value="./IdentifierIssuingAuthority"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="Identifier.use"> + <path value="Identifier.use"/> + <patternCode value="usual"/> + </element> + <element id="Identifier.system"> + <path value="Identifier.system"/> + <min value="1"/> + </element> + <element id="Identifier.value"> + <path value="Identifier.value"/> + <min value="1"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-authorOrg.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-authorOrg.xml new file mode 100644 index 0000000000..8de1c9fbef --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-authorOrg.xml @@ -0,0 +1,238 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ihe-authorOrg"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ihe-authorOrg-definitions.html#Extension" title="When the author of the SubmissionSet is an Organization, this extension shall be used.">Extension</a><a name="Extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Author organization of the SubmissionSet</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <span style="text-decoration:line-through">extension</span><a name="Extension.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ihe-authorOrg-definitions.html#Extension.url">url</a><a name="Extension.url"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="color: darkgreen">"https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-ihe-authorOrg-definitions.html#Extension.value[x]">value[x]</a><a name="Extension.value_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/organization.html">Organization</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Value of extension</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"/> + <version value="4.2.1"/> + <name value="AuthorOrg"/> + <title value="Author organization of the SubmissionSet"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="When the author of the SubmissionSet is an Organization, this extension shall be used."/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="List.source"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> + <derivation value="constraint"/> + <snapshot> + <element id="Extension"> + <path value="Extension"/> + <short value="Author organization of the SubmissionSet"/> + <definition value="When the author of the SubmissionSet is an Organization, this extension shall be used."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Extension"/> + <min value="0"/> + <max value="*"/> + </base> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + </element> + <element id="Extension.id"> + <path value="Extension.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <representation value="xmlAttr"/> + <short value="identifies the meaning of the extension"/> + <definition value="Source of the definition for the extension code - a logical name or a URL."/> + <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Extension.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="uri"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <fixedUri value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"/> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Extension.value[x]"> + <path value="Extension.value[x]"/> + <short value="Value of extension"/> + <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Extension.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="Extension"> + <path value="Extension"/> + <short value="Author organization of the SubmissionSet"/> + <definition value="When the author of the SubmissionSet is an Organization, this extension shall be used."/> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <max value="0"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <fixedUri value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"/> + </element> + <element id="Extension.value[x]"> + <path value="Extension.value[x]"/> + <min value="1"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-designationType.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-designationType.xml new file mode 100644 index 0000000000..60e9dcd7bc --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-designationType.xml @@ -0,0 +1,236 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ihe-designationType"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ihe-designationType-definitions.html#Extension" title="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED.">Extension</a><a name="Extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Clinical code of the List</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <span style="text-decoration:line-through">extension</span><a name="Extension.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ihe-designationType-definitions.html#Extension.url">url</a><a name="Extension.url"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="color: darkgreen">"https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-ihe-designationType-definitions.html#Extension.value[x]">value[x]</a><a name="Extension.value_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Value of extension</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + <version value="4.2.1"/> + <name value="DesignationType"/> + <title value="Clinical code of the List"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="List"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> + <derivation value="constraint"/> + <snapshot> + <element id="Extension"> + <path value="Extension"/> + <short value="Clinical code of the List"/> + <definition value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Extension"/> + <min value="0"/> + <max value="*"/> + </base> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + </element> + <element id="Extension.id"> + <path value="Extension.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <representation value="xmlAttr"/> + <short value="identifies the meaning of the extension"/> + <definition value="Source of the definition for the extension code - a logical name or a URL."/> + <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Extension.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="uri"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <fixedUri value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Extension.value[x]"> + <path value="Extension.value[x]"/> + <short value="Value of extension"/> + <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Extension.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="CodeableConcept"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="Extension"> + <path value="Extension"/> + <short value="Clinical code of the List"/> + <definition value="Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED."/> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <max value="0"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <fixedUri value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"/> + </element> + <element id="Extension.value[x]"> + <path value="Extension.value[x]"/> + <min value="1"/> + <type> + <code value="CodeableConcept"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-intendedRecipient.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-intendedRecipient.xml new file mode 100644 index 0000000000..5463e23fa0 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-intendedRecipient.xml @@ -0,0 +1,250 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ihe-intendedRecipient"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ihe-intendedRecipient-definitions.html#Extension" title="holds the identity of the organization or person the SubmissionSet is intended. For XDR and eMail (e.g. Direct) this tends to be a Practitioner or Patient with a telecom holding an email, but this is not strictly required.">Extension</a><a name="Extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Intended recipient of the SubmissionSet</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <span style="text-decoration:line-through">extension</span><a name="Extension.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ihe-intendedRecipient-definitions.html#Extension.url">url</a><a name="Extension.url"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="color: darkgreen">"https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-ihe-intendedRecipient-definitions.html#Extension.value[x]">value[x]</a><a name="Extension.value_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="http://hl7.org/fhir/R4/practitioner.html">Practitioner</a> | <a href="http://hl7.org/fhir/R4/organization.html">Organization</a> | <a href="http://hl7.org/fhir/R4/patient.html">Patient</a> | <a href="http://hl7.org/fhir/R4/relatedperson.html">RelatedPerson</a> | <a href="http://hl7.org/fhir/R4/group.html">Group</a> | <a href="http://hl7.org/fhir/R4/device.html">Device</a> | <a href="http://hl7.org/fhir/R4/location.html">Location</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Value of extension</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"/> + <version value="4.2.1"/> + <name value="IntendedRecipient"/> + <title value="Intended recipient of the SubmissionSet"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="holds the identity of the organization or person the SubmissionSet is intended. For XDR and eMail (e.g. Direct) this tends to be a Practitioner or Patient with a telecom holding an email, but this is not strictly required."/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="List"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> + <derivation value="constraint"/> + <snapshot> + <element id="Extension"> + <path value="Extension"/> + <short value="Intended recipient of the SubmissionSet"/> + <definition value="holds the identity of the organization or person the SubmissionSet is intended. For XDR and eMail (e.g. Direct) this tends to be a Practitioner or Patient with a telecom holding an email, but this is not strictly required."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Extension"/> + <min value="0"/> + <max value="*"/> + </base> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + </element> + <element id="Extension.id"> + <path value="Extension.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <representation value="xmlAttr"/> + <short value="identifies the meaning of the extension"/> + <definition value="Source of the definition for the extension code - a logical name or a URL."/> + <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Extension.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="uri"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <fixedUri value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"/> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Extension.value[x]"> + <path value="Extension.value[x]"/> + <short value="Value of extension"/> + <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Extension.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="Extension"> + <path value="Extension"/> + <short value="Intended recipient of the SubmissionSet"/> + <definition value="holds the identity of the organization or person the SubmissionSet is intended. For XDR and eMail (e.g. Direct) this tends to be a Practitioner or Patient with a telecom holding an email, but this is not strictly required."/> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <max value="0"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <fixedUri value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"/> + </element> + <element id="Extension.value[x]"> + <path value="Extension.value[x]"/> + <min value="1"/> + <type> + <code value="Reference"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> + <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-sourceId.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-sourceId.xml new file mode 100644 index 0000000000..ef6592e44c --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/StructureDefinition-ihe-sourceId.xml @@ -0,0 +1,236 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ihe-sourceId"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ihe-sourceId-definitions.html#Extension" title="The globally unique, immutable, identifier of the entity that contributed the SubmissionSet. When a broker is involved in sending SubmissionSets from a collection of client systems, it shall use a different sourceId for submissions from each separate system to allow for tracking. The format of the identifier is an OID.">Extension</a><a name="Extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Publisher organization identity of the SubmissionSet</td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <span style="text-decoration:line-through">extension</span><a name="Extension.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ihe-sourceId-definitions.html#Extension.url">url</a><a name="Extension.url"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="color: darkgreen">"https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"</span></td></tr> +<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-ihe-sourceId-definitions.html#Extension.value[x]">value[x]</a><a name="Extension.value_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Value of extension</span></td></tr> +<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"/> + <version value="4.2.1"/> + <name value="SourceId"/> + <title value="Publisher organization identity of the SubmissionSet"/> + <status value="active"/> + <date value="2023-08-02T10:59:15-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="The globally unique, immutable, identifier of the entity that contributed the SubmissionSet. When a broker is involved in sending SubmissionSets from a collection of client systems, it shall use a different sourceId for submissions from each separate system to allow for tracking. The format of the identifier is an OID."/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1"/> + <mapping> + <identity value="rim"/> + <uri value="http://hl7.org/v3"/> + <name value="RIM Mapping"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="List"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> + <derivation value="constraint"/> + <snapshot> + <element id="Extension"> + <path value="Extension"/> + <short value="Publisher organization identity of the SubmissionSet"/> + <definition value="The globally unique, immutable, identifier of the entity that contributed the SubmissionSet. When a broker is involved in sending SubmissionSets from a collection of client systems, it shall use a different sourceId for submissions from each separate system to allow for tracking. The format of the identifier is an OID."/> + <min value="0"/> + <max value="*"/> + <base> + <path value="Extension"/> + <min value="0"/> + <max value="*"/> + </base> + <condition value="ele-1"/> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + </element> + <element id="Extension.id"> + <path value="Extension.id"/> + <representation value="xmlAttr"/> + <short value="Unique id for inter-element referencing"/> + <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> + <min value="0"/> + <max value="1"/> + <base> + <path value="Element.id"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="string"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="n/a"/> + </mapping> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <description value="Extensions are always sliced by (at least) url"/> + <rules value="open"/> + </slicing> + <short value="Extension"/> + <definition value="An Extension"/> + <min value="0"/> + <max value="0"/> + <base> + <path value="Element.extension"/> + <min value="0"/> + <max value="*"/> + </base> + <type> + <code value="Extension"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <constraint> + <key value="ext-1"/> + <severity value="error"/> + <human value="Must have either extensions or value[x], not both"/> + <expression value="extension.exists() != value.exists()"/> + <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/> + <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <representation value="xmlAttr"/> + <short value="identifies the meaning of the extension"/> + <definition value="Source of the definition for the extension code - a logical name or a URL."/> + <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Extension.url"/> + <min value="1"/> + <max value="1"/> + </base> + <type> + <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> + <valueUrl value="uri"/> + </extension> + <code value="http://hl7.org/fhirpath/System.String"/> + </type> + <fixedUri value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"/> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + <element id="Extension.value[x]"> + <path value="Extension.value[x]"/> + <short value="Value of extension"/> + <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/> + <min value="1"/> + <max value="1"/> + <base> + <path value="Extension.value[x]"/> + <min value="0"/> + <max value="1"/> + </base> + <type> + <code value="Identifier"/> + </type> + <constraint> + <key value="ele-1"/> + <severity value="error"/> + <human value="All FHIR elements must have a @value or children"/> + <expression value="hasValue() or (children().count() > id.count())"/> + <xpath value="@value|f:*|h:div"/> + <source value="http://hl7.org/fhir/StructureDefinition/Element"/> + </constraint> + <isModifier value="false"/> + <isSummary value="false"/> + <mapping> + <identity value="rim"/> + <map value="N/A"/> + </mapping> + </element> + </snapshot> + <differential> + <element id="Extension"> + <path value="Extension"/> + <short value="Publisher organization identity of the SubmissionSet"/> + <definition value="The globally unique, immutable, identifier of the entity that contributed the SubmissionSet. When a broker is involved in sending SubmissionSets from a collection of client systems, it shall use a different sourceId for submissions from each separate system to allow for tracking. The format of the identifier is an OID."/> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <max value="0"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <fixedUri value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"/> + </element> + <element id="Extension.value[x]"> + <path value="Extension.value[x]"/> + <min value="1"/> + <type> + <code value="Identifier"/> + </type> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-DocumentReferenceStats.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-DocumentReferenceStats.xml new file mode 100644 index 0000000000..59879c5a45 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-DocumentReferenceStats.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<ValueSet xmlns="http://hl7.org/fhir"> + <id value="DocumentReferenceStats"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><ul><li>Include these codes as defined in <a href="http://hl7.org/fhir/R4/codesystem-document-reference-status.html"><code>http://hl7.org/fhir/document-reference-status</code></a><table class="none"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td><a href="http://hl7.org/fhir/R4/codesystem-document-reference-status.html#document-reference-status-current">current</a></td><td>Current</td><td>This is the current reference for this document.</td></tr><tr><td><a href="http://hl7.org/fhir/R4/codesystem-document-reference-status.html#document-reference-status-superseded">superseded</a></td><td>Superseded</td><td>This reference has been superseded by another reference.</td></tr></table></li></ul></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/ValueSet/DocumentReferenceStats"/> + <version value="4.2.1"/> + <name value="DocumentReferenceStats"/> + <title value="MHD DocumentReference status codes"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="ValueSet that does not include entered-in-error as that does not map"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <compose> + <include> + <system value="http://hl7.org/fhir/document-reference-status"/> + <concept> + <code value="current"/> + </concept> + <concept> + <code value="superseded"/> + </concept> + </include> + </compose> +</ValueSet> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDlistTypesVS.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDlistTypesVS.xml new file mode 100644 index 0000000000..428ae958e4 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDlistTypesVS.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<ValueSet xmlns="http://hl7.org/fhir"> + <id value="MHDlistTypesVS"/> + <text> + <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><ul><li>Include these codes as defined in <a href="CodeSystem-MHDlistTypes.html"><code>https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes</code></a><table class="none"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td></tr><tr><td><a href="CodeSystem-MHDlistTypes.html#MHDlistTypes-folder">folder</a></td><td>Folder as a FHIR List</td></tr><tr><td><a href="CodeSystem-MHDlistTypes.html#MHDlistTypes-submissionset">submissionset</a></td><td>SubmissionSet as a FHIR List</td></tr></table></li></ul></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDlistTypesVS"/> + <version value="4.2.1"/> + <name value="MHDlistTypesVS"/> + <title value="MHD List Types ValueSet"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="ValueSet of the MHD List Types allowed"/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <compose> + <include> + <system value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <concept> + <code value="folder"/> + </concept> + <concept> + <code value="submissionset"/> + </concept> + </include> + </compose> +</ValueSet> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDprovideFolderActions.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDprovideFolderActions.xml new file mode 100644 index 0000000000..c41ec6227e --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDprovideFolderActions.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<ValueSet xmlns="http://hl7.org/fhir"> + <id value="MHDprovideFolderActions"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><ul><li>Include these codes as defined in <a href="http://hl7.org/fhir/R4/codesystem-http-verb.html"><code>http://hl7.org/fhir/http-verb</code></a><table class="none"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td><a href="http://hl7.org/fhir/R4/codesystem-http-verb.html#http-verb-POST">POST</a></td><td>POST</td><td>HTTP POST Command.</td></tr><tr><td><a href="http://hl7.org/fhir/R4/codesystem-http-verb.html#http-verb-PUT">PUT</a></td><td>PUT</td><td>HTTP PUT Command.</td></tr></table></li></ul></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovideFolderActions"/> + <version value="4.2.1"/> + <name value="MHDprovideFolderActions"/> + <title value="MHD Folder List Types ValueSet"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A ValueSet of the allowed actions in a ITI-65 Provide Document Bundle for the Folder List type Resources. Where Folders are allowed to be Updated in addition to Created."/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <compose> + <include> + <system value="http://hl7.org/fhir/http-verb"/> + <concept> + <code value="POST"/> + </concept> + <concept> + <code value="PUT"/> + </concept> + </include> + </compose> +</ValueSet> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDprovidePatientActions.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDprovidePatientActions.xml new file mode 100644 index 0000000000..257d9ed36c --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-MHDprovidePatientActions.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<ValueSet xmlns="http://hl7.org/fhir"> + <id value="MHDprovidePatientActions"/> + <text> + <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><ul><li>Include these codes as defined in <a href="http://hl7.org/fhir/R4/codesystem-http-verb.html"><code>http://hl7.org/fhir/http-verb</code></a><table class="none"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td><a href="http://hl7.org/fhir/R4/codesystem-http-verb.html#http-verb-GET">GET</a></td><td>GET</td><td>HTTP GET Command.</td></tr><tr><td><a href="http://hl7.org/fhir/R4/codesystem-http-verb.html#http-verb-POST">POST</a></td><td>POST</td><td>HTTP POST Command.</td></tr><tr><td><a href="http://hl7.org/fhir/R4/codesystem-http-verb.html#http-verb-PUT">PUT</a></td><td>PUT</td><td>HTTP PUT Command.</td></tr></table></li></ul></div> + </text> + <url value="https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovidePatientActions"/> + <version value="4.2.1"/> + <name value="MHDprovidePatientActions"/> + <title value="MHD Patient Types ValueSet"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-08-02T11:14:45-05:00"/> + <publisher value="IHE IT Infrastructure Technical Committee"/> + <contact> + <telecom> + <system value="url"/> + <value value="https://www.ihe.net/ihe_domains/it_infrastructure/"/> + </telecom> + </contact> + <contact> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE IT Infrastructure Technical Committee"/> + <telecom> + <system value="email"/> + <value value="iti@ihe.net"/> + </telecom> + </contact> + <description value="A ValueSet of the allowed actions in a ITI-65 Provide Document Bundle for the Patient type Resource. Where Patient would typically be indicated as a GET (read), but might be created or updated depending on policy."/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <compose> + <include> + <system value="http://hl7.org/fhir/http-verb"/> + <concept> + <code value="GET"/> + </concept> + <concept> + <code value="POST"/> + </concept> + <concept> + <code value="PUT"/> + </concept> + </include> + </compose> +</ValueSet> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-formatcode.xml b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-formatcode.xml new file mode 100644 index 0000000000..195f969127 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/resources/META-INF/profiles/v421/ValueSet-formatcode.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<ValueSet xmlns="http://hl7.org/fhir"> + <id value="formatcode"/> + <text> + <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p>This value set includes codes based on the following rules:</p><ul><li>Include codes from <a href="CodeSystem-formatcode.html"><code>http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode</code></a> where notSelectable = false</li><li>Include all codes defined in <code>http://terminology.hl7.org/CodeSystem/hl7-document-format-codes</code></li><li>Include these codes as defined in <a href="http://dicom.nema.org/resources/ontology/DCM"><code>http://dicom.nema.org/resources/ontology/DCM</code></a><table class="none"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td></tr><tr><td>1.2.840.10008.5.1.4.1.1.88.59</td><td>Key Object Selection Document</td></tr></table></li></ul></div> + </text> + <url value="http://ihe.net/fhir/ihe.formatcode.fhir/ValueSet/formatcode"/> + <identifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:oid:1.3.6.1.4.1.19376.1.2.7.1"/> + </identifier> + <version value="1.1.0"/> + <name value="IHE_FormatCode_vs"/> + <title value="IHE ValueSet of Format Codes for use with Document Sharing"/> + <status value="active"/> + <experimental value="false"/> + <date value="2020-07-23"/> + <publisher value="Integrating the Healthcare Enterprise (IHE)"/> + <contact> + <name value="IHE"/> + <telecom> + <system value="url"/> + <value value="http://ihe.net"/> + </telecom> + </contact> + <contact> + <name value="IHE Secretary"/> + <telecom> + <system value="email"/> + <value value="secretary@ihe.net"/> + </telecom> + </contact> + <description value="The IHE FormatCode Value set is defined to be the set of FormatCode(s) defined by IHE, DICOM and HL7. These codes are intended to be preferred."/> + <jurisdiction> + <coding> + <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> + <code value="001"/> + </coding> + </jurisdiction> + <immutable value="false"/> + <copyright value="IHE http://www.ihe.net/Governance/#Intellectual_Property"/> + <compose> + <include> + <system value="http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode"/> + <filter> + <property value="notSelectable"/> + <op value="="/> + <value value="false"/> + </filter> + </include> + <include> + <system value="http://terminology.hl7.org/CodeSystem/hl7-document-format-codes"/> + </include> + <include> + <system value="http://dicom.nema.org/resources/ontology/DCM"/> + <concept> + <code value="1.2.840.10008.5.1.4.1.1.88.59"/> + <display value="Key Object Selection Document"/> + </concept> + </include> + </compose> +</ValueSet> \ No newline at end of file diff --git a/commons/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidatorTest.java b/commons/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidatorTest.java new file mode 100644 index 0000000000..d607c331b6 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidatorTest.java @@ -0,0 +1,134 @@ +/* + * Copyright 2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.commons.ihe.fhir.mhd; + +import ca.uhn.fhir.context.FhirContext; +import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException; +import org.hl7.fhir.r4.model.*; +import org.ietf.jgss.Oid; +import org.junit.jupiter.api.Test; +import org.openehealth.ipf.commons.ihe.fhir.mhd.MhdValidator; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveDocumentReference; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveProvideDocumentBundle; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveSubmissionSetList; + +import java.security.MessageDigest; +import java.util.Collections; +import java.util.Date; +import java.util.Scanner; +import java.util.UUID; + +import static org.openehealth.ipf.commons.ihe.fhir.Constants.URN_IETF_RFC_3986; + +/** + * @author Christian Ohr + */ +public class MhdValidatorTest { + + private static final String BINARY_FULL_URL = "urn:uuid:8da1cfcc-05db-4aca-86ad-82aa756a64bb"; + private static final String REFERENCE_FULL_URL = "urn:uuid:8da1cfcc-05db-4aca-86ad-82aa756a64bc"; + private static final String MANIFEST_FULL_URL = "urn:uuid:8da1cfcc-05db-4aca-86ad-82aa756a64bd"; + + @Test + public void testBundle() throws Exception { + var context = FhirContext.forR4(); + var bundle = provideAndRegister(); + try { + var iti65Validator = new MhdValidator(context); + iti65Validator.validateRequest(bundle, Collections.emptyMap()); + } catch (UnprocessableEntityException e) { + var oo = (OperationOutcome) e.getOperationOutcome(); + oo.getIssue() + .forEach(ooc -> System.out.println(ooc.getSeverity().getDisplay() + " : " + ooc.getDiagnostics())); + } + } + + private Bundle provideAndRegister() throws Exception { + + var practitioner = new Practitioner(); + practitioner.getText().setStatus(Narrative.NarrativeStatus.EMPTY); + practitioner.getText().setDivAsString("<div>empty</div>"); + + var sourcePatient = new Patient(); + sourcePatient.getText().setStatus(Narrative.NarrativeStatus.EMPTY); + sourcePatient.getText().setDivAsString("<div>empty</div>"); + + var submissionSetList = new ComprehensiveSubmissionSetList(); + submissionSetList + .linkDocumentReference(REFERENCE_FULL_URL) + .setSubmissionSetUniqueIdIdentifier(new Oid("1.2.58.92.23")) + .setEntryUuidIdentifier(UUID.randomUUID()) + .setSourceId(new Oid("1.2.58.92.24")) + .setDesignationType(new CodeableConcept( + new Coding("http://snomed.info/sct", "225728007", "") + )) + .addIntendedRecipient(new Reference(practitioner)) + .setSubject(new Reference("Patient/a2")) + .setTitle("description"); + submissionSetList.getText().setStatus(Narrative.NarrativeStatus.EMPTY); + submissionSetList.getText().setDivAsString("<div>empty</div>"); + + var documentContent = "YXNkYXNkYXNkYXNkYXNk".getBytes(); + var documentReference = new ComprehensiveDocumentReference(); + documentReference + .setUniqueIdIdentifier(URN_IETF_RFC_3986, "urn:oid:129.6.58.92.88336") + .setEntryUuidIdentifier(UUID.randomUUID()) + .addAuthor(practitioner) + .addCategory(new CodeableConcept( + new Coding("http://loinc.org", "11369-6", "History of Immunization Narrative"))) + .addSecurityLabel(new CodeableConcept( + new Coding("http://terminology.hl7.org/CodeSystem/v3-Confidentiality", "N", "normal") + )) + .setContext(new DocumentReference.DocumentReferenceContextComponent() + .addEvent(new CodeableConcept( + new Coding("http://terminology.hl7.org/CodeSystem/v3-ActCode", "PATDOC", "PATDOC"))) + .setPracticeSetting(new CodeableConcept( + new Coding("http://snomed.info/sct", "408467006", "Adult mental illness"))) + .setFacilityType(new CodeableConcept( + new Coding("http://snomed.info/sct", "82242000", "Hospital-children's"))) + .setSourcePatientInfo(new Reference(sourcePatient)) + ) + .setDescription("Physical") + .setSubject(new Reference("Patient/a2")); + documentReference.getType().addCoding() + .setSystem("http://ihe.net/connectathon/classCodes") + .setCode("History and Physical") + .setDisplay("History and Physical"); + documentReference.addContent() + .setAttachment( + new Attachment() + .setCreation(new Date()) + .setContentType("text/plain") + .setLanguage("en/us") + .setSize(documentContent.length) + .setHash(MessageDigest.getInstance("SHA-1").digest(documentContent)) + .setUrl(BINARY_FULL_URL)) + .setFormat(new Coding("http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode", "urn:ihe:iti:xds-sd:text:2008", "ITI XDS-SD TEXT")); + documentReference.getText().setStatus(Narrative.NarrativeStatus.EMPTY); + documentReference.getText().setDivAsString("<div>empty</div>"); + + // Binary + + var binary = new Binary().setContentType("text/plain"); + binary.setContent(documentContent); + + return new ComprehensiveProvideDocumentBundle() + .addSubmissionSetList(MANIFEST_FULL_URL, submissionSetList) + .addDocumentReference(REFERENCE_FULL_URL, documentReference) + .addBinary(BINARY_FULL_URL, binary); + } +} diff --git a/commons/ihe/fhir/r4/mhd/src/test/resources/test.json b/commons/ihe/fhir/r4/mhd/src/test/resources/test.json new file mode 100644 index 0000000000..e913316018 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/test/resources/test.json @@ -0,0 +1,184 @@ +{ + "resourceType" : "Bundle", + "id" : "ex-comprehensiveProvideDocumentBundleSimple", + "meta" : { + "profile" : ["https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle"], + "security" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code" : "HTEST" + }] + }, + "type" : "transaction", + "timestamp" : "2004-10-25T23:50:50-05:00", + "entry" : [{ + "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300001", + "resource" : { + "resourceType" : "List", + "id" : "aaaaaaaa-bbbb-cccc-dddd-e00333300001", + "meta" : { + "profile" : ["https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"], + "security" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code" : "HTEST" + }] + }, + "text" : { + "status" : "extensions", + "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">SubmissionSet with Patient</div>" + }, + "extension" : [{ + "url" : "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType", + "valueCodeableConcept" : { + "coding" : [{ + "system" : "http://snomed.info/sct", + "code" : "225728007" + }] + } + }, + { + "url" : "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId", + "valueIdentifier" : { + "value" : "urn:oid:1.2.3.4" + } + }], + "identifier" : [{ + "use" : "usual", + "system" : "urn:ietf:rfc:3986", + "value" : "urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46346" + }], + "status" : "current", + "mode" : "working", + "code" : { + "coding" : [{ + "system" : "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", + "code" : "submissionset" + }] + }, + "subject" : { + "reference" : "Patient/ex-patient" + }, + "date" : "2004-10-25T23:50:50-05:00", + "entry" : [{ + "item" : { + "reference" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300002" + } + }] + }, + "request" : { + "method" : "POST", + "url" : "List" + } + }, + { + "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300002", + "resource" : { + "resourceType" : "DocumentReference", + "id" : "aaaaaaaa-bbbb-cccc-dddd-e00333300002", + "meta" : { + "profile" : ["https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"], + "security" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code" : "HTEST" + }] + }, + "text" : { + "status" : "generated", + "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: DocumentReference</b><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300002\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource DocumentReference "aaaaaaaa-bbbb-cccc-dddd-e00333300002" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.html\">MHD DocumentReference Comprehensive</a></p><p style=\"margin-bottom: 0px\">Security Labels: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActReason http://terminology.hl7.org/CodeSystem/v3-ActReason}\">http://terminology.hl7.org/CodeSystem/v3-ActReason</span></p></div><p><b>masterIdentifier</b>: id:\u00a0urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012</p><p><b>status</b>: current</p><p><b>type</b>: Patient summary Document <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#60591-5)</span></p><p><b>category</b>: History of Immunization Narrative <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#11369-6)</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">Patient/ex-patient</a> " SCHMIDT"</p><p><b>date</b>: Feb 1, 2020, 10:50:50 PM</p><p><b>securityLabel</b>: restricted <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-Confidentiality.html\">Confidentiality</a>#R)</span></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Language</b></td><td><b>Url</b></td><td><b>Size</b></td><td><b>Hash</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>text/plain</td><td>en</td><td><code>urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003</code></td><td>11</td><td>(base64 data - 40 bytes)</td><td>Hello World</td><td>2020-02-01 23:50:50-0500</td></tr></table><p><b>format</b>: ITI XDS-SD TEXT (Details: http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode code urn:ihe:iti:xds-sd:text:2008 = 'ITI XDS-SD TEXT', stated as 'null')</p></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>FacilityType</b></td><td><b>PracticeSetting</b></td><td><b>SourcePatientInfo</b></td></tr><tr><td style=\"display: none\">*</td><td>Children's hospital <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#82242000)</span></td><td>Adult mental illness - specialty (qualifier value) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#408467006)</span></td><td><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300004\"> </a><blockquote><p/><p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300004\"> </a></p><p><b>identifier</b>: id:\u00a0mrn-1234</p><p><b>name</b>: Dee Schmidt </p></blockquote></td></tr></table><hr/><blockquote><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\"><b>Dee Schmidt </b> (no stated gender), DoB Unknown ( id:\u00a0mrn-1234)</p><hr/></blockquote></div>" + }, + "contained" : [{ + "resourceType" : "Patient", + "id" : "aaaaaaaa-bbbb-cccc-dddd-e00333300004", + "identifier" : [{ + "system" : "http://example.org/patients", + "value" : "mrn-1234" + }], + "name" : [{ + "family" : "Schmidt", + "given" : ["Dee"] + }] + }], + "masterIdentifier" : { + "system" : "urn:ietf:rfc:3986", + "value" : "urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012" + }, + "status" : "current", + "type" : { + "coding" : [{ + "system" : "http://loinc.org", + "code" : "60591-5" + }] + }, + "category" : [{ + "coding" : [{ + "system" : "http://loinc.org", + "code" : "11369-6" + }] + }], + "subject" : { + "reference" : "Patient/ex-patient" + }, + "date" : "2020-02-01T23:50:50-05:00", + "securityLabel" : [{ + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality", + "code" : "R" + }] + }], + "content" : [{ + "attachment" : { + "contentType" : "text/plain", + "language" : "en", + "url" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003", + "size" : 11, + "hash" : "MGE0ZDU1YThkNzc4ZTUwMjJmYWI3MDE5NzdjNWQ4NDBiYmM0ODZkMA==", + "title" : "Hello World", + "creation" : "2020-02-01T23:50:50-05:00" + }, + "format" : { + "system" : "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode", + "code" : "urn:ihe:iti:xds-sd:text:2008" + } + }], + "context" : { + "facilityType" : { + "coding" : [{ + "system" : "http://snomed.info/sct", + "code" : "82242000" + }] + }, + "practiceSetting" : { + "coding" : [{ + "system" : "http://snomed.info/sct", + "code" : "408467006" + }] + }, + "sourcePatientInfo" : { + "reference" : "#aaaaaaaa-bbbb-cccc-dddd-e00333300004" + } + } + }, + "request" : { + "method" : "POST", + "url" : "DocumentReference" + } + }, + { + "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003", + "resource" : { + "resourceType" : "Binary", + "id" : "aaaaaaaa-bbbb-cccc-dddd-e00333300003", + "meta" : { + "security" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code" : "HTEST" + }] + }, + "contentType" : "text/plain", + "data" : "SGVsbG8gV29ybGQ=" + }, + "request" : { + "method" : "POST", + "url" : "Binary" + } + }] +} \ No newline at end of file diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/AbstractTestIti65.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/AbstractTestIti65.java new file mode 100644 index 0000000000..b2e894a92a --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/AbstractTestIti65.java @@ -0,0 +1,159 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti65.v421; + +import ca.uhn.fhir.context.FhirVersionEnum; +import ca.uhn.fhir.rest.client.interceptor.LoggingInterceptor; +import org.hl7.fhir.instance.model.api.IBaseResource; +import org.hl7.fhir.r4.model.*; +import org.ietf.jgss.Oid; +import org.openehealth.ipf.commons.core.URN; +import org.openehealth.ipf.commons.ihe.fhir.Constants; +import org.openehealth.ipf.commons.ihe.fhir.IpfFhirServlet; +import org.openehealth.ipf.commons.ihe.fhir.SslAwareMethanolRestfulClientFactory; +import org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveDocumentReference; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveProvideDocumentBundle; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveSubmissionSetList; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.Source; +import org.openehealth.ipf.platform.camel.ihe.fhir.test.FhirTestContainer; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.security.MessageDigest; +import java.time.LocalDate; +import java.time.LocalTime; +import java.time.ZoneId; +import java.time.ZonedDateTime; +import java.util.Date; +import java.util.UUID; + +/** + * + */ +abstract class AbstractTestIti65 extends FhirTestContainer { + + private static final Logger LOG = LoggerFactory.getLogger(AbstractTestIti65.class); + + private static final String BINARY_FULL_URL = "urn:uuid:8da1cfcc-05db-4aca-86ad-82aa756a64bb"; + private static final String REFERENCE_FULL_URL = "urn:uuid:8da1cfcc-05db-4aca-86ad-82aa756a64bc"; + private static final String MANIFEST_FULL_URL = "urn:uuid:8da1cfcc-05db-4aca-86ad-82aa756a64bd"; + + public static void setup(String contextDescriptor) { + var servlet = new IpfFhirServlet(FhirVersionEnum.R4); + startServer(servlet, contextDescriptor, false, DEMO_APP_PORT, "FhirServlet"); + MhdProfile.registerDefaultTypes(serverFhirContext); + servlet.setFhirContext(serverFhirContext); + + var loggingInterceptor = new LoggingInterceptor(); + loggingInterceptor.setLogRequestSummary(false); + loggingInterceptor.setLogRequestBody(true); + loggingInterceptor.setLogResponseBody(true); + startClient(String.format("http://localhost:%d/", DEMO_APP_PORT), fhirContext -> { + var clientFactory = new SslAwareMethanolRestfulClientFactory(fhirContext); + clientFactory.setAsync(true); + fhirContext.setRestfulClientFactory(clientFactory); + }).registerInterceptor(loggingInterceptor); + } + + protected Bundle provideAndRegister() throws Exception { + var bundle = new ComprehensiveProvideDocumentBundle(); + + // SubmissionSet + + var manifest = new ComprehensiveSubmissionSetList(); + manifest + .linkDocumentReference(REFERENCE_FULL_URL) + .setSource(new Source().setAuthorOrg(new Reference("author")).setReference("source")) + .setSubject(new Reference("Patient/a2")); + bundle.addSubmissionSetList(MANIFEST_FULL_URL, manifest); + + // Reference + + var documentContent = "YXNkYXNkYXNkYXNkYXNk".getBytes(); + + var instant = ZonedDateTime.of( + LocalDate.of(2013, 7, 1), + LocalTime.of(13, 11, 13), + ZoneId.of("UTC") + ).toInstant(); + + var timestamp = Date.from(instant); + + var reference = new ComprehensiveDocumentReference(); + reference.getMeta().setLastUpdated(timestamp); + reference + .setUniqueIdIdentifier( + Constants.URN_IETF_RFC_3986, + new URN(new Oid("1.6.58.92.88336")).toString()) + .setEntryUuidIdentifier(UUID.randomUUID()) + .addAuthor(new Reference("Practitioner/a3")) + .addAuthor(new Reference("Practitioner/a4")) + .setDate(timestamp) // creation of document reference resource + .setDescription("Physical") + .setSubject(new Reference("Patient/a2")) + .setStatus(Enumerations.DocumentReferenceStatus.CURRENT); + reference.getText() + .setStatus(Narrative.NarrativeStatus.EMPTY) + .setDivAsString("<div>empty</div>"); + reference.getType().addCoding() + .setSystem("http://ihe.net/connectathon/classCodes") + .setCode("History and Physical") + .setDisplay("History and Physical"); + reference.addContent() + .setAttachment( + new Attachment() + .setContentType("text/plain") + .setLanguage("en/us") + .setSize(documentContent.length) + .setHash(MessageDigest.getInstance("SHA-1").digest(documentContent)) + .setUrl(BINARY_FULL_URL)) + .setFormat(new Coding("urn:oid:1.3.6.1.4.1.19376.1.2.3", "urn:ihe:pcc:handp:2008", null)); + + bundle.addDocumentReference(REFERENCE_FULL_URL, reference); + + // Binary + + var binary = new Binary() + .setContentType("text/plain"); + binary.setContent(documentContent); + binary.getMeta().setLastUpdated(timestamp); + bundle.addBinary(BINARY_FULL_URL, binary); + + return bundle; + } + + protected Bundle thisSucks() { + var bundle = new Bundle().setType(Bundle.BundleType.TRANSACTION); + bundle.getMeta().addProfile("http://thissucks.com"); + return bundle; + } + + protected Bundle sendManually(Bundle bundle) { + return client.transaction().withBundle(bundle).encodedXml().execute(); + } + + protected Bundle sendViaProducer(Bundle bundle) { + return producerTemplate.requestBody("direct:input", bundle, Bundle.class); + } + + protected void printAsXML(IBaseResource resource) { + LOG.info(clientFhirContext.newXmlParser().setPrettyPrint(true).encodeResourceToString(resource)); + } + + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65Error.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65Error.java new file mode 100644 index 0000000000..f5001bbb72 --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65Error.java @@ -0,0 +1,50 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti65.v421; + +import ca.uhn.fhir.rest.server.exceptions.InternalErrorException; +import org.hl7.fhir.r4.model.OperationOutcome; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +/** + * + */ +public class TestIti65Error extends AbstractTestIti65 { + + private static final String CONTEXT_DESCRIPTOR = "iti-65-error.xml"; + + @BeforeAll + public static void setUpClass() { + setup(CONTEXT_DESCRIPTOR); + } + + @Test + public void testSendManuallyReturningError() { + Assertions.assertThrows(InternalErrorException.class, () -> { + try { + sendManually(provideAndRegister()); + } catch (InternalErrorException e) { + assertAndRethrow(e, OperationOutcome.IssueType.PROCESSING); + } + }); + + + } + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65OtherTransaction.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65OtherTransaction.java new file mode 100644 index 0000000000..e59b596745 --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65OtherTransaction.java @@ -0,0 +1,50 @@ +/* + * Copyright 2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti65.v421; + +import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; + +/** + * Test for sending a different transaction request that is handled by + * a different route. + */ +public class TestIti65OtherTransaction extends AbstractTestIti65 { + + private static final String CONTEXT_DESCRIPTOR = "iti-65.xml"; + + @BeforeAll + public static void setUpClass() { + setup(CONTEXT_DESCRIPTOR); + } + + @Test + public void testSendManuallyReturningError() { + try { + sendManually(thisSucks()); + fail("expected UnprocessableEntityException"); + } catch (UnprocessableEntityException e) { + assertTrue(e.getMessage().endsWith("This sucks")); + } + + } + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65Success.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65Success.java new file mode 100644 index 0000000000..aa8064522c --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti65/v421/TestIti65Success.java @@ -0,0 +1,111 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti65.v421; + +import org.hl7.fhir.r4.model.CapabilityStatement; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.openehealth.ipf.commons.audit.codes.*; +import org.openehealth.ipf.commons.audit.utils.AuditUtils; +import org.openehealth.ipf.commons.ihe.fhir.audit.codes.FhirEventTypeCode; + +import static org.junit.jupiter.api.Assertions.*; + +/** + * + */ +public class TestIti65Success extends AbstractTestIti65 { + + private static final String CONTEXT_DESCRIPTOR = "iti-65.xml"; + + @BeforeAll + public static void setUpClass() { + setup(CONTEXT_DESCRIPTOR); + } + + @Test + public void testGetConformance() { + var conf = client.capabilities().ofType(CapabilityStatement.class).execute(); + var component = conf.getRest().iterator().next(); + assertEquals(CapabilityStatement.SystemRestfulInteraction.TRANSACTION, component.getInteraction().get(0).getCode()); + } + + @Test + public void testSendManualMhd() throws Exception { + + var result = sendManually(provideAndRegister()); + // printAsXML(result); + + // Check ATNA Audit + var sender = getAuditSender(); + assertEquals(1, sender.getMessages().size()); + var event = sender.getMessages().get(0); + + // Event + assertEquals( + EventOutcomeIndicator.Success, + event.getEventIdentification().getEventOutcomeIndicator()); + assertEquals( + EventActionCode.Create, + event.getEventIdentification().getEventActionCode()); + + assertEquals(EventIdCode.Import, event.getEventIdentification().getEventID()); + assertEquals(FhirEventTypeCode.ProvideDocumentBundle, event.getEventIdentification().getEventTypeCode().get(0)); + + // ActiveParticipant Source + var source = event.getActiveParticipants().get(0); + assertTrue(source.isUserIsRequestor()); + assertEquals("127.0.0.1", source.getNetworkAccessPointID()); + assertEquals(NetworkAccessPointTypeCode.IPAddress, source.getNetworkAccessPointTypeCode()); + + // ActiveParticipant Destination + var destination = event.getActiveParticipants().get(1); + assertFalse(destination.isUserIsRequestor()); + assertEquals("http://localhost:" + DEMO_APP_PORT + "/", destination.getUserID()); + assertEquals(AuditUtils.getLocalIPAddress(), destination.getNetworkAccessPointID()); + + // Patient + var patient = event.getParticipantObjectIdentifications().get(0); + assertEquals(ParticipantObjectTypeCode.Person, patient.getParticipantObjectTypeCode()); + assertEquals(ParticipantObjectTypeCodeRole.Patient, patient.getParticipantObjectTypeCodeRole()); + assertEquals(ParticipantObjectIdTypeCode.PatientNumber, patient.getParticipantObjectIDTypeCode()); + assertEquals("Patient/a2", patient.getParticipantObjectID()); + + // SubmissionSet + var poit = event.getParticipantObjectIdentifications().get(1); + assertEquals(ParticipantObjectTypeCode.System, poit.getParticipantObjectTypeCode()); + assertEquals(ParticipantObjectTypeCodeRole.Job, poit.getParticipantObjectTypeCodeRole()); + + // No real instructions how this should look like, so for now we take the XDS stuff + var poitTypeCode = poit.getParticipantObjectIDTypeCode(); + assertEquals("urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd", poitTypeCode.getCode()); + assertEquals("IHE XDS Metadata", poitTypeCode.getCodeSystemName()); + } + + @Test + public void testSendEndpointMhd() throws Exception { + var bundle = provideAndRegister(); + var result = sendViaProducer(bundle); + // printAsXML(result); + + // Check ATNA Audit + var sender = getAuditSender(); + assertEquals(2, sender.getMessages().size()); + } + + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/AbstractTestIti66.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/AbstractTestIti66.java new file mode 100644 index 0000000000..8661b4611d --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/AbstractTestIti66.java @@ -0,0 +1,105 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti66.v421; + +import ca.uhn.fhir.context.FhirVersionEnum; +import ca.uhn.fhir.rest.client.interceptor.LoggingInterceptor; +import ca.uhn.fhir.rest.gclient.ICriterion; +import ca.uhn.fhir.rest.gclient.ReferenceClientParam; +import ca.uhn.fhir.rest.gclient.TokenClientParam; +import org.hl7.fhir.r4.model.Bundle; +import org.hl7.fhir.r4.model.ListResource; +import org.openehealth.ipf.commons.ihe.fhir.IpfFhirServlet; +import org.openehealth.ipf.commons.ihe.fhir.SslAwareMethanolRestfulClientFactory; +import org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile; +import org.openehealth.ipf.platform.camel.ihe.fhir.test.FhirTestContainer; + +/** + * + */ +abstract class AbstractTestIti66 extends FhirTestContainer { + + public static void startServer(String contextDescriptor) { + var servlet = new IpfFhirServlet(FhirVersionEnum.R4); + startServer(servlet, contextDescriptor, false, DEMO_APP_PORT, "FhirServlet"); + MhdProfile.registerDefaultTypes(serverFhirContext); + servlet.setFhirContext(serverFhirContext); + + var loggingInterceptor = new LoggingInterceptor(); + loggingInterceptor.setLogRequestSummary(false); + loggingInterceptor.setLogRequestHeaders(true); + loggingInterceptor.setLogResponseBody(true); + startClient(String.format("http://localhost:%d/", DEMO_APP_PORT), fhirContext -> { + var clientFactory = new SslAwareMethanolRestfulClientFactory(fhirContext); + clientFactory.setAsync(true); + fhirContext.setRestfulClientFactory(clientFactory); + }).registerInterceptor(loggingInterceptor); + } + + protected ICriterion<?> listPatientIdentifierParameter() { + return new TokenClientParam("patient.identifier").exactly() + .systemAndIdentifier("urn:oid:2.16.840.1.113883.3.37.4.1.1.2.1.1", "1"); + } + + protected ICriterion<?> listPatientIdentifierMissingParameter() { + return new TokenClientParam("status").exactly().code("current"); + } + + protected ICriterion<?> statusParameter() { + return new TokenClientParam("status").exactly().code("active"); + } + + protected ICriterion<?> listPatientReferenceParameter() { + return new ReferenceClientParam("patient").hasId("http://fhirserver.org/Patient/1"); + } + + protected Bundle sendManually(ICriterion<?>... requestData) { + var query = client.search() + .forResource(ListResource.class); + + if (requestData != null && requestData.length > 0) { + query = query.where(requestData[0]); + if (requestData.length > 1) { + for (var i = 1; i < requestData.length; i++) { + query = query.and(requestData[i]); + } + } + } + return query + .returnBundle(Bundle.class) + .encodedXml() + .execute(); + } + + protected Bundle sendViaProducer(ICriterion<?>... requestData) { + return producerTemplate.requestBody("direct:input", requestData, Bundle.class); + } + + protected Bundle nextPage(Bundle bundle) { + return client.loadPage() + .next(bundle) + .execute(); + } + + protected Bundle previousPage(Bundle bundle) { + return client.loadPage() + .previous(bundle) + .execute(); + } + + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/Iti66TestRouteBuilder.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/Iti66TestRouteBuilder.java new file mode 100644 index 0000000000..c28dced1f0 --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/Iti66TestRouteBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti66.v421; + +import ca.uhn.fhir.context.FhirContext; +import ca.uhn.fhir.rest.server.exceptions.InternalErrorException; +import org.apache.camel.Exchange; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.support.ExpressionAdapter; +import org.hl7.fhir.r4.model.Bundle; +import org.openehealth.ipf.platform.camel.ihe.fhir.test.FhirTestContainer; + +import java.io.InputStreamReader; +import java.util.stream.Collectors; + +/** + * + */ +public class Iti66TestRouteBuilder extends RouteBuilder { + + private final boolean returnError; + + public Iti66TestRouteBuilder(boolean returnError) { + this.returnError = returnError; + } + + @Override + public void configure() throws Exception { + + from("direct:input") + .toF("mhd-iti66:localhost:%d", FhirTestContainer.DEMO_APP_PORT); + + from("mhd-iti66:translation?audit=true&iheOptions=COMPATIBILITY") + .errorHandler(noErrorHandler()) + .transform(new Iti66Responder()); + } + + + private class Iti66Responder extends ExpressionAdapter { + + @Override + public Object evaluate(Exchange exchange) { + if (!returnError) { + var resource = FhirContext.forR4().newXmlParser() + .parseResource(Bundle.class, new InputStreamReader(getClass().getResourceAsStream("/v421/FindSubmissionSetsResponse.xml"))); + // The endpoint expects a list of resources rather than a bundle + return resource.getEntry().stream() + .map(Bundle.BundleEntryComponent::getResource) + .collect(Collectors.toList()); + } else { + throw new InternalErrorException("Something went wrong"); + } + } + } + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66Error.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66Error.java new file mode 100644 index 0000000000..b95ed8552a --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66Error.java @@ -0,0 +1,49 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti66.v421; + +import ca.uhn.fhir.rest.server.exceptions.InternalErrorException; +import org.hl7.fhir.r4.model.OperationOutcome; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertThrows; + +/** + * + */ +public class TestIti66Error extends AbstractTestIti66 { + + private static final String CONTEXT_DESCRIPTOR = "v421/iti-66-error.xml"; + + @BeforeAll + public static void setUpClass() { + startServer(CONTEXT_DESCRIPTOR); + } + + @Test + public void testSendManuallyReturningError() { + assertThrows(InternalErrorException.class, ()-> { + try { + sendManually(listPatientIdentifierParameter(), statusParameter()); + } catch (InternalErrorException e) { + assertAndRethrow(e, OperationOutcome.IssueType.PROCESSING); + } + }); + } + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66MissingParameter.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66MissingParameter.java new file mode 100644 index 0000000000..f3fd7ea893 --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66MissingParameter.java @@ -0,0 +1,42 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti66.v421; + +import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertThrows; + +/** + * + */ +public class TestIti66MissingParameter extends AbstractTestIti66 { + + private static final String CONTEXT_DESCRIPTOR = "v421/iti-66-error.xml"; + + @BeforeAll + public static void setUpClass() { + startServer(CONTEXT_DESCRIPTOR); + } + + @Test + public void testSendManuallyReturningError() { + assertThrows(InvalidRequestException.class, ()-> sendManually(listPatientIdentifierMissingParameter())); + } + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66Success.java b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66Success.java new file mode 100644 index 0000000000..6e9b0e9a7c --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/iti66/v421/TestIti66Success.java @@ -0,0 +1,133 @@ +/* + * Copyright 2016 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openehealth.ipf.platform.camel.ihe.fhir.iti66.v421; + +import org.hl7.fhir.r4.model.Bundle; +import org.hl7.fhir.r4.model.DocumentManifest; +import org.hl7.fhir.r4.model.ListResource; +import org.hl7.fhir.r4.model.ResourceType; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.openehealth.ipf.commons.audit.codes.*; +import org.openehealth.ipf.commons.audit.utils.AuditUtils; +import org.openehealth.ipf.commons.ihe.fhir.audit.codes.FhirEventTypeCode; +import org.openehealth.ipf.commons.ihe.fhir.audit.codes.FhirParticipantObjectIdTypeCode; + +import java.nio.charset.StandardCharsets; + +import static org.junit.jupiter.api.Assertions.*; + +/** + * + */ +public class TestIti66Success extends AbstractTestIti66 { + + private static final String CONTEXT_DESCRIPTOR = "v421/iti-66.xml"; + + @BeforeAll + public static void setUpClass() { + startServer(CONTEXT_DESCRIPTOR); + } + + @Test + public void testGetConformance() { + assertConformance("List"); + } + + @Test + public void testSendManualIti66() { + var result = sendManually(listPatientIdentifierParameter(), statusParameter()); + + assertEquals(Bundle.BundleType.SEARCHSET, result.getType()); + assertEquals(ResourceType.Bundle, result.getResourceType()); + assertEquals(1, result.getTotal()); + + var p = (ListResource) result.getEntry().get(0).getResource(); + assertEquals("9bc72458-49b0-11e6-8a1c-3c1620524153", p.getIdElement().getIdPart()); + + // Check ATNA Audit + + var sender = getAuditSender(); + assertEquals(1, sender.getMessages().size()); + var event = sender.getMessages().get(0); + + // Event + assertEquals( + EventOutcomeIndicator.Success, + event.getEventIdentification().getEventOutcomeIndicator()); + assertEquals( + EventActionCode.Execute, + event.getEventIdentification().getEventActionCode()); + + assertEquals(EventIdCode.Query, event.getEventIdentification().getEventID()); + assertEquals(FhirEventTypeCode.MobileDocumentManifestQuery, event.getEventIdentification().getEventTypeCode().get(0)); + + // ActiveParticipant Source + var source = event.getActiveParticipants().get(0); + assertTrue(source.isUserIsRequestor()); + assertEquals("127.0.0.1", source.getNetworkAccessPointID()); + assertEquals(NetworkAccessPointTypeCode.IPAddress, source.getNetworkAccessPointTypeCode()); + + // ActiveParticipant Destination + var destination = event.getActiveParticipants().get(1); + assertFalse(destination.isUserIsRequestor()); + assertEquals("http://localhost:" + DEMO_APP_PORT + "/List", destination.getUserID()); + assertEquals(AuditUtils.getLocalIPAddress(), destination.getNetworkAccessPointID()); + + // Audit Source + var sourceIdentificationType = event.getAuditSourceIdentification(); + assertEquals("IPF", sourceIdentificationType.getAuditSourceID()); + assertEquals("IPF", sourceIdentificationType.getAuditEnterpriseSiteID()); + + // Patient + var patient = event.getParticipantObjectIdentifications().get(0); + assertEquals(ParticipantObjectTypeCode.Person, patient.getParticipantObjectTypeCode()); + assertEquals(ParticipantObjectTypeCodeRole.Patient, patient.getParticipantObjectTypeCodeRole()); + assertEquals("urn:oid:2.16.840.1.113883.3.37.4.1.1.2.1.1|1", patient.getParticipantObjectID()); + + // Query Parameters + var query = event.getParticipantObjectIdentifications().get(1); + assertEquals(ParticipantObjectTypeCode.System, query.getParticipantObjectTypeCode()); + assertEquals(ParticipantObjectTypeCodeRole.Query, query.getParticipantObjectTypeCodeRole()); + assertEquals("patient.identifier=urn:oid:2.16.840.1.113883.3.37.4.1.1.2.1.1|1&status=active&_format=xml", + new String(query.getParticipantObjectQuery(), StandardCharsets.UTF_8)); + + assertEquals(FhirParticipantObjectIdTypeCode.MobileDocumentManifestQuery, query.getParticipantObjectIDTypeCode()); + } + + @Test + public void testSendIti66WithPatientReference() { + var result = sendViaProducer(listPatientReferenceParameter(), statusParameter()); + assertEquals(Bundle.BundleType.SEARCHSET, result.getType()); + assertEquals(ResourceType.Bundle, result.getResourceType()); + assertEquals(1, result.getTotal()); + + var p = (ListResource) result.getEntry().get(0).getResource(); + assertEquals("9bc72458-49b0-11e6-8a1c-3c1620524153", p.getIdElement().getIdPart()); + } + + @Test + public void testGetResource() { + var p = client.read() + .resource(ListResource.class) + .withId("9bc72458-49b0-11e6-8a1c-3c1620524153") + .execute(); + assertEquals(String.format("http://localhost:%d/List/9bc72458-49b0-11e6-8a1c-3c1620524153", DEMO_APP_PORT), p.getId()); + } + + +} diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/FindSubmissionSetsResponse.xml b/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/FindSubmissionSetsResponse.xml new file mode 100644 index 0000000000..bc5a71ac23 --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/FindSubmissionSetsResponse.xml @@ -0,0 +1,75 @@ +<!-- + ~ Copyright 2016 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + + +<!-- TODO --> + +<Bundle xmlns="http://hl7.org/fhir"> + <meta> + <profile + value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentListsResponseMessage"/> + </meta> + <type value="searchset"/> + <total value="1"/> + <entry> + <resource> + <List xmlns="http://hl7.org/fhir"> + <id value="9bc72458-49b0-11e6-8a1c-3c1620524153"/> + <meta> + <profile value="https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"/> + </meta> + <extension + url="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <code value="225728007"/> + </coding> + </valueCodeableConcept> + </extension> + <extension + url="https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"> + <valueIdentifier> + <value value="urn:oid:1.2.3.4"/> + </valueIdentifier> + </extension> + <identifier> + <use value="usual"/> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46348"/> + </identifier> + <status value="current"/> + <mode value="working"/> + <code> + <coding> + <system + value="https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"/> + <code value="submissionset"/> + </coding> + </code> + <subject> + <reference value="Patient/8294784675"/> + </subject> + <date value="2011-01-03T11:00:41+01:00"/> + <entry> + <item> + <reference value="DocumentReference/aaaaaaaa-bbbb-cccc-dddd-e00444400002"/> + </item> + </entry> + </List> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/iti-66-error.xml b/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/iti-66-error.xml new file mode 100644 index 0000000000..15b79036f6 --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/iti-66-error.xml @@ -0,0 +1,30 @@ +<!-- + ~ Copyright 2016 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation=" +http://www.springframework.org/schema/beans +http://www.springframework.org/schema/beans/spring-beans.xsd"> + + <import resource="../common-fhir-beans.xml"/> + + <bean id="routeBuilder" + class="org.openehealth.ipf.platform.camel.ihe.fhir.iti66.v421.Iti66TestRouteBuilder"> + <constructor-arg value="true"/> + </bean> + +</beans> \ No newline at end of file diff --git a/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/iti-66.xml b/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/iti-66.xml new file mode 100644 index 0000000000..278a8dd727 --- /dev/null +++ b/platform-camel/ihe/fhir/r4/mhd/src/test/resources/v421/iti-66.xml @@ -0,0 +1,30 @@ +<!-- + ~ Copyright 2016 the original author or authors. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation=" +http://www.springframework.org/schema/beans +http://www.springframework.org/schema/beans/spring-beans.xsd"> + + <import resource="../common-fhir-beans.xml"/> + + <bean id="routeBuilder" + class="org.openehealth.ipf.platform.camel.ihe.fhir.iti66.v421.Iti66TestRouteBuilder"> + <constructor-arg value="false"/> + </bean> + +</beans> \ No newline at end of file From 189d41e1d8f6349aa926d76bbac1f5ca3460e0a6 Mon Sep 17 00:00:00 2001 From: Christian Ohr <christian.ohr@x-tention.de> Date: Tue, 19 Dec 2023 12:35:43 +0100 Subject: [PATCH 2/3] #414: fix list search parameters, regisdter custom types, misnamed methods in SubmissionSetList --- .../fhir/iti66/Iti66ListSearchParameters.java | 32 ++++--------------- .../ipf/commons/ihe/fhir/mhd/MhdProfile.java | 3 ++ .../ihe/fhir/mhd/model/SubmissionSetList.java | 10 ++---- 3 files changed, 11 insertions(+), 34 deletions(-) diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListSearchParameters.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListSearchParameters.java index d87e68be20..24b26cee24 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListSearchParameters.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti66/Iti66ListSearchParameters.java @@ -21,9 +21,8 @@ import ca.uhn.fhir.rest.api.SortSpec; import ca.uhn.fhir.rest.param.*; import lombok.*; -import org.hl7.fhir.r4.model.DocumentManifest; +import org.hl7.fhir.r4.model.ListResource; import org.hl7.fhir.r4.model.Practitioner; -import org.hl7.fhir.r4.model.PractitionerRole; import org.openehealth.ipf.commons.ihe.fhir.FhirSearchAndSortParameters; import java.util.*; @@ -37,7 +36,7 @@ @Builder @ToString @AllArgsConstructor -public class Iti66ListSearchParameters extends FhirSearchAndSortParameters<DocumentManifest> { +public class Iti66ListSearchParameters extends FhirSearchAndSortParameters<ListResource> { @Getter @Setter private DateRangeParam date; @Getter @Setter private StringParam authorFamilyName; @@ -83,32 +82,13 @@ public Iti66ListSearchParameters setAuthor(ReferenceAndListParam author) { } @Override - public Optional<Comparator<DocumentManifest>> comparatorFor(String paramName) { - if (DocumentManifest.SP_CREATED.equals(paramName)) { - return Optional.of(CP_CREATED); - } else if (DocumentManifest.SP_AUTHOR.equals(paramName)) { - return Optional.of(CP_AUTHOR); + public Optional<Comparator<ListResource>> comparatorFor(String paramName) { + if (ListResource.SP_DATE.equals(paramName)) { + return Optional.of(CP_DATE); } return Optional.empty(); } - private static final Comparator<DocumentManifest> CP_CREATED = nullsLast(comparing(DocumentManifest::getCreated)); + private static final Comparator<ListResource> CP_DATE = nullsLast(comparing(ListResource::getDate)); - private static final Comparator<DocumentManifest> CP_AUTHOR = nullsLast(comparing(documentManifest -> { - if (!documentManifest.hasAuthor()) return null; - var author = documentManifest.getAuthorFirstRep(); - if (author.getResource() instanceof PractitionerRole) { - var practitionerRole = (PractitionerRole) author.getResource(); - if (!practitionerRole.hasPractitioner()) return null; - author = practitionerRole.getPractitioner(); - } - if (author.getResource() == null) return null; - if (author.getResource() instanceof Practitioner) { - var practitioner = (Practitioner) author.getResource(); - if (!practitioner.hasName()) return null; - var name = practitioner.getNameFirstRep(); - return name.getFamilyElement().getValueNotNull() + name.getGivenAsSingleString(); - } - return null; - })); } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java index 1f154a9b5c..f2172f039a 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java @@ -217,6 +217,9 @@ public static void registerDefaultTypes(FhirContext fhirContext) { Arrays.stream(MhdProfile.values()) .filter(profile -> profile.resourceClass != null) .forEach(profile -> fhirContext.setDefaultTypeForProfile(profile.url, profile.resourceClass)); + fhirContext.registerCustomTypes(Arrays.asList( + Source.class, EntryUuidIdentifier.class, SubmissionSetUniqueIdIdentifier.class, UniqueIdIdentifier.class + )); } public static Optional<MhdProfile> profileForResource(IBaseResource resource) { diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java index 6ca4b4c97c..1ee30125f9 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java @@ -84,7 +84,7 @@ public boolean hasSourceId() { return this.sourceId != null && !this.sourceId.isEmpty(); } - public List<Reference> getCitizenship() { + public List<Reference> getIntendedRecipient() { if (intendedRecipient == null) { intendedRecipient = new ArrayList<>(); } @@ -92,7 +92,7 @@ public List<Reference> getCitizenship() { } public Reference getIntendedRecipientFirstRep() { - return this.getCitizenship().get(0); + return this.getIntendedRecipient().get(0); } @SuppressWarnings("unchecked") @@ -119,12 +119,6 @@ public T addIntendedRecipient(Reference r) { return (T)this; } - @SuppressWarnings("unchecked") - public T setSource(Source value) { - super.setSource(value); - return (T)this; - } - @SuppressWarnings("unchecked") public T linkDocumentReference(String fullUrl) { addEntry().setItem(new Reference(fullUrl)); From 347fa6ba844d1c1264523dc14db93bc64a7ec175 Mon Sep 17 00:00:00 2001 From: Christian Ohr <christian.ohr@x-tention.de> Date: Wed, 20 Dec 2023 11:13:35 +0100 Subject: [PATCH 3/3] #414: fix extensions and profiles --- .../commons/ihe/fhir/mhd/MhdConstants.java | 64 --- .../ipf/commons/ihe/fhir/mhd/MhdProfile.java | 105 +++-- .../mhd/model/AbstractDocumentReference.java | 53 +++ .../model/AbstractProvideDocumentBundle.java | 19 +- .../model/ComprehensiveDocumentReference.java | 9 +- .../mhd/model/ComprehensiveFolderList.java | 7 + .../ComprehensiveProvideDocumentBundle.java | 7 +- .../model/ComprehensiveSubmissionSetList.java | 9 +- .../DocumentReferencePatchParameters.java | 9 +- .../fhir/mhd/model/EntryUuidIdentifier.java | 9 +- ...nsiveDocumentReferencesResponseBundle.java | 7 + .../FindDocumentListsResponseBundle.java | 7 + ...nimalDocumentReferencesResponseBundle.java | 7 + .../ihe/fhir/mhd/model/FolderList.java | 5 +- .../model/GenerateMetadataInParameters.java | 7 + .../model/GenerateMetadataOutParameters.java | 7 + .../commons/ihe/fhir/mhd/model/MhdList.java | 25 +- .../mhd/model/MinimalDocumentReference.java | 31 +- .../ihe/fhir/mhd/model/MinimalFolderList.java | 7 + .../model/MinimalProvideDocumentBundle.java | 7 + .../mhd/model/MinimalSubmissionSetList.java | 8 + .../model/ProvideDocumentBundleResponse.java | 9 +- .../SimplifiedPublishDocumentReference.java | 7 +- .../commons/ihe/fhir/mhd/model/Source.java | 45 +- .../ihe/fhir/mhd/model/SubmissionSetList.java | 27 +- .../SubmissionSetUniqueIdIdentifier.java | 9 +- ...ntainedComprehensiveDocumentReference.java | 9 +- ...nedComprehensiveProvideDocumentBundle.java | 7 + ...ntainedComprehensiveSubmissionSetList.java | 10 +- .../fhir/mhd/model/UniqueIdIdentifier.java | 10 +- .../ihe/fhir/mhd/MhdValidatorTest.java | 5 +- .../fhir/r4/mhd/src/test/resources/test.json | 414 +++++++++++------- 32 files changed, 640 insertions(+), 321 deletions(-) delete mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdConstants.java create mode 100644 commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractDocumentReference.java diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdConstants.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdConstants.java deleted file mode 100644 index e2cede2b82..0000000000 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdConstants.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2023 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.openehealth.ipf.commons.ihe.fhir.mhd; - -interface MhdConstants { - - // Bundle Profiles V4 - - String ITI65_MINIMAL_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle"; - String ITI65_COMPREHENSIVE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle"; - String ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.ProvideBundle"; - String ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideDocumentBundleResponse"; - String ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentListsResponseMessage"; - String ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesResponseMessage"; - String ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage"; - - // DocumentManifest/List profiles - - String MHD_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.List"; - String COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"; - String UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.SubmissionSet"; - String MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"; - - // List Profile - - String MINIMAL_FOLDER_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"; - String COMPREHENSIVE_FOLDER_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.Folder"; - - // DocumentReference profiles - - String COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"; - String UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.DocumentReference"; - String MINIMAL_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"; - String SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SimplifiedPublish.DocumentReference"; - - // Parameters - - String DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters"; - String GENERATE_METADATA_PARAMETERS_IN_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Parameters.In"; - String GENERATE_METADATA_PARAMETERS_OUT_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Parameters.Out"; - - // Datatypes - - String DESIGNATION_TYPE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"; - String AUTHOR_ORG_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"; - String INTENDED_RECIPIENT_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"; - String SOURCE_ID_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"; - String SUBMISSIONSET_UNIQUE_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"; - String UNIQUE_ID_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"; - String ENTRY_UUID_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"; -} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java index f2172f039a..7ee7b2d285 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdProfile.java @@ -27,155 +27,201 @@ import java.util.List; import java.util.Optional; -public enum MhdProfile implements MhdConstants, Mhd421 { +public enum MhdProfile implements Mhd421 { // Bundle Profiles V421 ITI65_MINIMAL_BUNDLE( - ITI65_MINIMAL_BUNDLE_PROFILE, + MhdProfile.ITI65_MINIMAL_BUNDLE_PROFILE, MinimalProvideDocumentBundle.class, "IHE.MHD.Minimal.ProvideBundle"), ITI65_COMPREHENSIVE_BUNDLE( - ITI65_COMPREHENSIVE_BUNDLE_PROFILE, + MhdProfile.ITI65_COMPREHENSIVE_BUNDLE_PROFILE, ComprehensiveProvideDocumentBundle.class, "IHE.MHD.Comprehensive.ProvideBundle"), ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE( - ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE_PROFILE, + MhdProfile.ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE_PROFILE, UncontainedComprehensiveProvideDocumentBundle.class, "IHE.MHD.UnContained.Comprehensive.ProvideBundle"), ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE( - ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE, + MhdProfile.ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE, ProvideDocumentBundleResponse.class, "IHE.MHD.ProvideDocumentBundleResponse"), ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE( - ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE_PROFILE, + MhdProfile.ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE_PROFILE, FindDocumentListsResponseBundle.class, "IHE.MHD.FindDocumentListsResponseMessage"), ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE( - ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE_PROFILE, + MhdProfile.ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE_PROFILE, FindMinimalDocumentReferencesResponseBundle.class, "IHE.MHD.FindDocumentReferencesResponseMessage" ), ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE( - ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE_PROFILE, + MhdProfile.ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE_PROFILE, FindComprehensiveDocumentReferencesResponseBundle.class, "IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage"), // List profiles v421 MHD_LIST( - MHD_LIST_PROFILE, + MhdProfile.MHD_LIST_PROFILE, MhdList.class, "IHE.MHD.List"), COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST( - COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE, + MhdProfile.COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE, ComprehensiveSubmissionSetList.class, "IHE.MHD.Comprehensive.SubmissionSet"), UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST( - UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE, + MhdProfile.UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE, UncontainedComprehensiveProvideDocumentBundle.class, "IHE.MHD.UnContained.Comprehensive.SubmissionSet"), MINIMAL_SUBMISSIONSET_TYPE_LIST( - MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE, + MhdProfile.MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE, MinimalSubmissionSetList.class, "IHE.MHD.Minimal.SubmissionSet"), MINIMAL_FOLDER_TYPE_LIST( - MINIMAL_FOLDER_TYPE_LIST_PROFILE, + MhdProfile.MINIMAL_FOLDER_TYPE_LIST_PROFILE, MinimalFolderList.class, "IHE.MHD.Minimal.Folder"), COMPREHENSIVE_FOLDER_TYPE_LIST( - COMPREHENSIVE_FOLDER_TYPE_LIST_PROFILE, + MhdProfile.COMPREHENSIVE_FOLDER_TYPE_LIST_PROFILE, ComprehensiveFolderList.class, "IHE.MHD.Comprehensive.Folder"), // DocumentReference profiles v421 COMPREHENSIVE_DOCUMENT_REFERENCE( - COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE, + MhdProfile.COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE, ComprehensiveDocumentReference.class, "IHE.MHD.Comprehensive.DocumentReference"), UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE( - UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE, + MhdProfile.UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE, UncontainedComprehensiveDocumentReference.class, "IHE.MHD.UnContained.Comprehensive.DocumentReference"), MINIMAL_DOCUMENT_REFERENCE( - MINIMAL_DOCUMENT_REFERENCE_PROFILE, + MhdProfile.MINIMAL_DOCUMENT_REFERENCE_PROFILE, MinimalDocumentReference.class, "IHE.MHD.Minimal.DocumentReference"), SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE( - SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE_PROFILE, + MhdProfile.SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE_PROFILE, SimplifiedPublishDocumentReference.class, "IHE.MHD.SimplifiedPublish.DocumentReference"), // Parameters DOCUMENT_REFERENCE_PATCH_PARAMETERS( - DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE, + MhdProfile.DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE, DocumentReferencePatchParameters.class, "IHE.MHD.Patch.Parameters"), GENERATE_METADATA_PARAMETERS_IN( - GENERATE_METADATA_PARAMETERS_IN_PROFILE, + MhdProfile.GENERATE_METADATA_PARAMETERS_IN_PROFILE, GenerateMetadataInParameters.class, "IHE.MHD.GenerateMetadata.Parameters.In"), GENERATE_METADATA_PARAMETERS_OUT( - GENERATE_METADATA_PARAMETERS_OUT_PROFILE, + MhdProfile.GENERATE_METADATA_PARAMETERS_OUT_PROFILE, GenerateMetadataOutParameters.class, "IHE.MHD.GenerateMetadata.Parameters.Out"), // Datatypes etc. DESIGNATION_TYPE( - DESIGNATION_TYPE_PROFILE, + MhdProfile.DESIGNATION_TYPE_PROFILE, null, "ihe-designationType"), AUTHOR_ORG( - AUTHOR_ORG_PROFILE, + MhdProfile.AUTHOR_ORG_PROFILE, null, "ihe-authorOrg"), INTENDED_RECIPIENT( - INTENDED_RECIPIENT_PROFILE, + MhdProfile.INTENDED_RECIPIENT_PROFILE, null, "ihe-intendedRecipient"), SOURCE_ID( - SOURCE_ID_PROFILE, + MhdProfile.SOURCE_ID_PROFILE, null, "ihe-sourceId"), SUBMISSIONSET_UNIQUE_IDENTIFIER( - SUBMISSIONSET_UNIQUE_IDENTIFIER_PROFILE, + MhdProfile.SUBMISSIONSET_UNIQUE_IDENTIFIER_PROFILE, null, "IHE.MHD.SubmissionSetUniqueIdIdentifier"), UNIQUE_ID_IDENTIFIER( - UNIQUE_ID_IDENTIFIER_PROFILE, + MhdProfile.UNIQUE_ID_IDENTIFIER_PROFILE, null, "IHE.MHD.UniqueIdIdentifier"), ENTRY_UUID_IDENTIFIER( - ENTRY_UUID_IDENTIFIER_PROFILE, + MhdProfile.ENTRY_UUID_IDENTIFIER_PROFILE, null, "IHE.MHD.EntryUUID.Identifier"); + // Bundle Profiles V4 + + public static final String ITI65_MINIMAL_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle"; + public static final String ITI65_COMPREHENSIVE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle"; + public static final String ITI65_UNCONTAINED_COMPREHENSIVE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.ProvideBundle"; + public static final String ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideDocumentBundleResponse"; + public static final String ITI66_FIND_DOCUMENT_LISTS_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentListsResponseMessage"; + public static final String ITI67_FIND_DOCUMENT_REFERENCES_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesResponseMessage"; + public static final String ITI67_FIND_DOCUMENT_REFERENCES_COMPREHENSIVE_RESPONSE_BUNDLE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage"; + + // DocumentManifest/List profiles + + public static final String MHD_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.List"; + public static final String COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"; + public static final String UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.SubmissionSet"; + public static final String MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet"; + + // List Profile + + public static final String MINIMAL_FOLDER_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder"; + public static final String COMPREHENSIVE_FOLDER_TYPE_LIST_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.Folder"; + + // DocumentReference profiles + + public static final String COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"; + public static final String UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UnContained.Comprehensive.DocumentReference"; + public static final String MINIMAL_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"; + public static final String SIMPLIFIED_PUBLISH_DOCUMENT_REFERENCE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SimplifiedPublish.DocumentReference"; + + // Parameters + + public static final String DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters"; + public static final String GENERATE_METADATA_PARAMETERS_IN_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Parameters.In"; + public static final String GENERATE_METADATA_PARAMETERS_OUT_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.GenerateMetadata.Parameters.Out"; + + // Datatypes + + public static final String DESIGNATION_TYPE_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"; + public static final String AUTHOR_ORG_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg"; + public static final String INTENDED_RECIPIENT_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient"; + public static final String SOURCE_ID_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"; + public static final String SUBMISSIONSET_UNIQUE_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier"; + public static final String UNIQUE_ID_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier"; + public static final String ENTRY_UUID_IDENTIFIER_PROFILE = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier"; + + @Getter private final String url; @@ -218,7 +264,8 @@ public static void registerDefaultTypes(FhirContext fhirContext) { .filter(profile -> profile.resourceClass != null) .forEach(profile -> fhirContext.setDefaultTypeForProfile(profile.url, profile.resourceClass)); fhirContext.registerCustomTypes(Arrays.asList( - Source.class, EntryUuidIdentifier.class, SubmissionSetUniqueIdIdentifier.class, UniqueIdIdentifier.class + EntryUuidIdentifier.class, SubmissionSetUniqueIdIdentifier.class, UniqueIdIdentifier.class + // , Source.class )); } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractDocumentReference.java new file mode 100644 index 0000000000..89487591b2 --- /dev/null +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractDocumentReference.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openehealth.ipf.commons.ihe.fhir.mhd.model; + +import org.hl7.fhir.r4.model.DocumentReference; +import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; + +import java.util.UUID; + +abstract class AbstractDocumentReference<T extends AbstractDocumentReference<T>> + extends DocumentReference + implements Mhd421 { + + /** + * Sets the MasterIdentifier to be a Unique Id as required by the profile + * + * @param system system value + * @param value identifier value + * @return this object + */ + @SuppressWarnings("unchecked") + public T setUniqueIdIdentifier(String system, String value) { + setMasterIdentifier(new UniqueIdIdentifier() + .setSystem(system) + .setValue(value)); + return (T)this; + } + + /** + * Adds an identifier to be a EntryUuid as required by the profile + * @param uuid UUID + * @return this object + */ + @SuppressWarnings("unchecked") + public T setEntryUuidIdentifier(UUID uuid) { + getIdentifier().add(new EntryUuidIdentifier(uuid)); + return (T)this; + } + +} diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractProvideDocumentBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractProvideDocumentBundle.java index da0712cf44..dafe0c503b 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractProvideDocumentBundle.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/AbstractProvideDocumentBundle.java @@ -1,10 +1,25 @@ +/* + * Copyright 2023 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.openehealth.ipf.commons.ihe.fhir.mhd.model; import org.hl7.fhir.r4.model.Binary; import org.hl7.fhir.r4.model.Bundle; import org.hl7.fhir.r4.model.Resource; -public class AbstractProvideDocumentBundle<T extends AbstractProvideDocumentBundle<T>> extends Bundle { +abstract class AbstractProvideDocumentBundle<T extends AbstractProvideDocumentBundle<T>> extends Bundle { public T addEntry(String fullUrl, Resource resource) { addEntry() @@ -17,7 +32,7 @@ public T addEntry(String fullUrl, Resource resource) { return (T)this; } - public T addFolder(String fullUrl, FolderList<?> folderList) { + public T addFolderList(String fullUrl, FolderList<?> folderList) { return addEntry(fullUrl, folderList); } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveDocumentReference.java index f6bb5270c9..758dac54fb 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveDocumentReference.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveDocumentReference.java @@ -23,7 +23,7 @@ @ResourceDef(name = "DocumentReference", id = "mhdComprehensiveDocumentReference", profile = COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE) -public class ComprehensiveDocumentReference extends UncontainedComprehensiveDocumentReference<ComprehensiveDocumentReference> { +public class ComprehensiveDocumentReference extends AbstractDocumentReference<ComprehensiveDocumentReference> { public ComprehensiveDocumentReference() { super(); @@ -80,4 +80,11 @@ public ComprehensiveDocumentReference setSourcePatientInfo(Patient patient) { return this; } + @Override + public ComprehensiveDocumentReference copy() { + var dst = new ComprehensiveDocumentReference(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveFolderList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveFolderList.java index 891ee59d6c..9473842c4a 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveFolderList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveFolderList.java @@ -27,4 +27,11 @@ public ComprehensiveFolderList() { super(); COMPREHENSIVE_FOLDER_TYPE_LIST.setProfile(this); } + + @Override + public ComprehensiveFolderList copy() { + var dst = new ComprehensiveFolderList(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveProvideDocumentBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveProvideDocumentBundle.java index d785f3d555..b92ecf3705 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveProvideDocumentBundle.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveProvideDocumentBundle.java @@ -63,5 +63,10 @@ public List<FolderList> getFolders() { return FhirUtils.getResources(this, FolderList.class); } - + @Override + public ComprehensiveProvideDocumentBundle copy() { + var dst = new ComprehensiveProvideDocumentBundle(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveSubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveSubmissionSetList.java index 9810e28f65..a555c2d3ec 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveSubmissionSetList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ComprehensiveSubmissionSetList.java @@ -21,10 +21,17 @@ import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE; @ResourceDef(name = "List", id = "mhdComprehensiveSubmissionSet", profile = COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE) -public class ComprehensiveSubmissionSetList extends UncontainedComprehensiveSubmissionSetList<ComprehensiveSubmissionSetList> { +public class ComprehensiveSubmissionSetList extends SubmissionSetList<ComprehensiveSubmissionSetList> { public ComprehensiveSubmissionSetList() { super(); COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST.setProfile(this); } + + @Override + public ComprehensiveSubmissionSetList copy() { + var dst = new ComprehensiveSubmissionSetList(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/DocumentReferencePatchParameters.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/DocumentReferencePatchParameters.java index 4fe0ae484e..467ac6a923 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/DocumentReferencePatchParameters.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/DocumentReferencePatchParameters.java @@ -18,8 +18,8 @@ import ca.uhn.fhir.model.api.annotation.ResourceDef; import org.hl7.fhir.r4.model.Parameters; -import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE; import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.DOCUMENT_REFERENCE_PATCH_PARAMETERS; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE; @ResourceDef(name = "Parameters", id = "mhdDocumentReferencePatchParameters", profile = DOCUMENT_REFERENCE_PATCH_PARAMETERS_PROFILE) public class DocumentReferencePatchParameters extends Parameters { @@ -28,4 +28,11 @@ public DocumentReferencePatchParameters() { DOCUMENT_REFERENCE_PATCH_PARAMETERS.setProfile(this); } + @Override + public DocumentReferencePatchParameters copy() { + var dst = new DocumentReferencePatchParameters(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/EntryUuidIdentifier.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/EntryUuidIdentifier.java index a4e830bd38..b435511f70 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/EntryUuidIdentifier.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/EntryUuidIdentifier.java @@ -24,7 +24,7 @@ // https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.EntryUUID.Identifier -@DatatypeDef(name = "EntryUuidIdentifier", profileOf = Identifier.class) +@DatatypeDef(name = "EntryUuidIdentifier", profileOf = Identifier.class, isSpecialization = true) public class EntryUuidIdentifier extends Identifier { public EntryUuidIdentifier() { @@ -42,4 +42,11 @@ public EntryUuidIdentifier setValue(UUID uuid) { setValue(new URN(uuid).toString()); return this; } + + @Override + public EntryUuidIdentifier copy() { + var dst = new EntryUuidIdentifier(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindComprehensiveDocumentReferencesResponseBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindComprehensiveDocumentReferencesResponseBundle.java index 3460fcb36d..312c3bb179 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindComprehensiveDocumentReferencesResponseBundle.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindComprehensiveDocumentReferencesResponseBundle.java @@ -38,4 +38,11 @@ public List<ComprehensiveDocumentReference> getComprehensiveDocumentReferences() return getResources(this, ComprehensiveDocumentReference.class); } + @Override + public FindComprehensiveDocumentReferencesResponseBundle copy() { + var dst = new FindComprehensiveDocumentReferencesResponseBundle(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindDocumentListsResponseBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindDocumentListsResponseBundle.java index a53ac18931..b9e668b714 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindDocumentListsResponseBundle.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindDocumentListsResponseBundle.java @@ -42,4 +42,11 @@ public List<FolderList> getFolders() { return getResources(this, FolderList.class); } + @Override + public FindDocumentListsResponseBundle copy() { + var dst = new FindDocumentListsResponseBundle(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindMinimalDocumentReferencesResponseBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindMinimalDocumentReferencesResponseBundle.java index a2c815d3aa..e517716f5d 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindMinimalDocumentReferencesResponseBundle.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FindMinimalDocumentReferencesResponseBundle.java @@ -38,4 +38,11 @@ public List<MinimalDocumentReference> getMinimalDocumentReferences() { return getResources(this, MinimalDocumentReference.class); } + @Override + public FindMinimalDocumentReferencesResponseBundle copy() { + var dst = new FindMinimalDocumentReferencesResponseBundle(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FolderList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FolderList.java index c5c821e553..3a658e25c6 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FolderList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/FolderList.java @@ -17,9 +17,10 @@ import org.hl7.fhir.r4.model.CodeableConcept; import org.hl7.fhir.r4.model.Coding; +import org.hl7.fhir.r4.model.ListResource; import org.ietf.jgss.Oid; -public class FolderList<T extends FolderList<T>> extends MhdList<T> { +public abstract class FolderList<T extends FolderList<T>> extends MhdList<T> { public FolderList() { super(); @@ -40,7 +41,7 @@ public T setUniqueIdIdentifier(String system, String value) { return (T)this; } - private static final Coding FOLDER_LIST_CODING = new Coding( + public static final Coding FOLDER_LIST_CODING = new Coding( "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", "folder", "folder" diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataInParameters.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataInParameters.java index a0204e3e18..5396ab550d 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataInParameters.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataInParameters.java @@ -29,4 +29,11 @@ public GenerateMetadataInParameters() { GENERATE_METADATA_PARAMETERS_IN.setProfile(this); } + @Override + public GenerateMetadataInParameters copy() { + var dst = new GenerateMetadataInParameters(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataOutParameters.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataOutParameters.java index f225716969..14955b0ca2 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataOutParameters.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/GenerateMetadataOutParameters.java @@ -29,4 +29,11 @@ public GenerateMetadataOutParameters() { GENERATE_METADATA_PARAMETERS_OUT.setProfile(this); } + @Override + public GenerateMetadataOutParameters copy() { + var dst = new GenerateMetadataOutParameters(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MhdList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MhdList.java index 3f25b986e8..d4d538991c 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MhdList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MhdList.java @@ -20,20 +20,18 @@ import ca.uhn.fhir.model.api.annotation.Extension; import ca.uhn.fhir.model.api.annotation.ResourceDef; import ca.uhn.fhir.util.ElementUtil; +import org.hl7.fhir.r4.model.Base; import org.hl7.fhir.r4.model.CodeableConcept; -import org.hl7.fhir.r4.model.Identifier; import org.hl7.fhir.r4.model.ListResource; -import org.ietf.jgss.Oid; -import org.openehealth.ipf.commons.core.URN; -import org.openehealth.ipf.commons.ihe.fhir.Constants; import org.openehealth.ipf.commons.ihe.fhir.mhd.Mhd421; import java.util.Date; import java.util.UUID; -import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MHD_LIST_PROFILE; import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MHD_LIST; +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MHD_LIST_PROFILE; +@SuppressWarnings("unchecked") @ResourceDef(name = "List", id = "mhdList", profile = MHD_LIST_PROFILE) public class MhdList<T extends MhdList<T>> extends ListResource implements Mhd421 { @@ -84,10 +82,25 @@ public boolean hasDesignationType() { * @param uuid uuid * @return this object */ - @SuppressWarnings("unchecked") public T setEntryUuidIdentifier(UUID uuid) { getIdentifier().add(new EntryUuidIdentifier(uuid)); return (T)this; } + @Override + public void copyValues(ListResource dst) { + super.copyValues(dst); + ((MhdList<T>)dst).designationType = designationType == null ? null : designationType.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof MhdList)) + return false; + MhdList<T> o = (MhdList<T>) other_; + return compareDeep(designationType, o.designationType, true); + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalDocumentReference.java index eabfb4941a..783a338505 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalDocumentReference.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalDocumentReference.java @@ -27,7 +27,7 @@ import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_DOCUMENT_REFERENCE_PROFILE; @ResourceDef(name = "DocumentReference", id = "mhdMinimalDocumentReference", profile = MINIMAL_DOCUMENT_REFERENCE_PROFILE) -public class MinimalDocumentReference<T extends MinimalDocumentReference<T>> extends DocumentReference implements Mhd421 { +public class MinimalDocumentReference extends AbstractDocumentReference<MinimalDocumentReference> { public MinimalDocumentReference() { super(); @@ -36,29 +36,10 @@ public MinimalDocumentReference() { setStatus(Enumerations.DocumentReferenceStatus.CURRENT); } - /** - * Sets the MasterIdentifier to be a Unique Id as required by the profile - * - * @param system system value - * @param value identifier value - * @return this object - */ - @SuppressWarnings("unchecked") - public T setUniqueIdIdentifier(String system, String value) { - setMasterIdentifier(new UniqueIdIdentifier() - .setSystem(system) - .setValue(value)); - return (T)this; - } - - /** - * Adds an identifier to be a EntryUuid as required by the profile - * @param uuid UUID - * @return this object - */ - @SuppressWarnings("unchecked") - public T setEntryUuidIdentifier(UUID uuid) { - getIdentifier().add(new EntryUuidIdentifier(uuid)); - return (T)this; + @Override + public MinimalDocumentReference copy() { + var dst = new MinimalDocumentReference(); + copyValues(dst); + return dst; } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalFolderList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalFolderList.java index 608dc794bf..d329e3855f 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalFolderList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalFolderList.java @@ -27,4 +27,11 @@ public MinimalFolderList() { super(); MINIMAL_FOLDER_TYPE_LIST.setProfile(this); } + + @Override + public MinimalFolderList copy() { + var dst = new MinimalFolderList(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalProvideDocumentBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalProvideDocumentBundle.java index c1cec6536f..8136914281 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalProvideDocumentBundle.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalProvideDocumentBundle.java @@ -51,4 +51,11 @@ public Optional<Binary> getBinary() { public List<FolderList> getFolders() { return FhirUtils.getResources(this, FolderList.class); } + + @Override + public MinimalProvideDocumentBundle copy() { + var dst = new MinimalProvideDocumentBundle(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalSubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalSubmissionSetList.java index 2f13447fb0..6fc0c11ba4 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalSubmissionSetList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/MinimalSubmissionSetList.java @@ -16,6 +16,7 @@ package org.openehealth.ipf.commons.ihe.fhir.mhd.model; import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.ListResource; import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_SUBMISSIONSET_TYPE_LIST; import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.MINIMAL_SUBMISSIONSET_TYPE_LIST_PROFILE; @@ -27,4 +28,11 @@ public MinimalSubmissionSetList() { super(); MINIMAL_SUBMISSIONSET_TYPE_LIST.setProfile(this); } + + @Override + public MinimalSubmissionSetList copy() { + var dst = new MinimalSubmissionSetList(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ProvideDocumentBundleResponse.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ProvideDocumentBundleResponse.java index 8729bf4ab5..59abe2d9ae 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ProvideDocumentBundleResponse.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/ProvideDocumentBundleResponse.java @@ -22,7 +22,7 @@ import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE; import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE; -@ResourceDef(name = "Bundle", id = "mhdMinimalBundle", profile = ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE) +@ResourceDef(name = "Bundle", id = "mhdProvideDocumentBundleResponse", profile = ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE_PROFILE) public class ProvideDocumentBundleResponse extends Bundle implements Mhd421 { public ProvideDocumentBundleResponse() { @@ -31,4 +31,11 @@ public ProvideDocumentBundleResponse() { ITI65_PROVIDE_DOCUMENT_BUNDLE_RESPONSE.setProfile(this); } + @Override + public ProvideDocumentBundleResponse copy() { + var dst = new ProvideDocumentBundleResponse(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SimplifiedPublishDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SimplifiedPublishDocumentReference.java index 071696387a..0feed1fbaa 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SimplifiedPublishDocumentReference.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SimplifiedPublishDocumentReference.java @@ -67,5 +67,10 @@ public SimplifiedPublishDocumentReference setContent(String contentType, byte[] } } - + @Override + public SimplifiedPublishDocumentReference copy() { + var dst = new SimplifiedPublishDocumentReference(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/Source.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/Source.java index 2435b41dc9..f1e461b667 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/Source.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/Source.java @@ -20,19 +20,26 @@ import ca.uhn.fhir.model.api.annotation.Extension; import ca.uhn.fhir.util.ElementUtil; import lombok.Getter; +import org.hl7.fhir.r4.model.Base; import org.hl7.fhir.r4.model.Reference; -@Getter -@DatatypeDef(name = "Source", profileOf = Reference.class) +import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.AUTHOR_ORG_PROFILE; + +/** + * Source data type extension. Unfortunately we cannot register this datatype with the FhirCOntext + * right now as parsing/rendering won't work anymore afterwards. It can be used, however, to + * assemble resources. + */ +@DatatypeDef(name = "Source", profileOf = Reference.class, isSpecialization = true) public class Source extends Reference { @Child(name = "authorOrg") - @Extension(url = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg", definedLocally = false) + @Extension(url = AUTHOR_ORG_PROFILE, definedLocally = false) private Reference authorOrg; @Override public boolean isEmpty() { - return super.isEmpty() && ElementUtil.isEmpty(authorOrg, reference); + return super.isEmpty() && ElementUtil.isEmpty(authorOrg); } public Source setAuthorOrg(Reference authorOrg) { @@ -40,14 +47,34 @@ public Source setAuthorOrg(Reference authorOrg) { return this; } + public boolean hasAuthorOrg() { + return authorOrg != null && !authorOrg.isEmpty(); + } + + public Reference getAuthorOrg() { + return authorOrg; + } + @Override - public Source setReference(String value) { - super.setReference(value); - return this; + public Source copy() { + var dst = new Source(); + copyValues(dst); + return dst; } - public boolean hasAuthorOrg() { - return authorOrg != null && !authorOrg.isEmpty(); + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof Source)) + return false; + Source o = (Source) other_; + return compareDeep(authorOrg, o.authorOrg, true); } + @Override + public void copyValues(Reference dst) { + super.copyValues(dst); + ((Source)dst).authorOrg = authorOrg == null ? null : authorOrg.copy(); + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java index 1ee30125f9..be9ff04bb3 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetList.java @@ -19,17 +19,15 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Extension; import ca.uhn.fhir.util.ElementUtil; -import org.hl7.fhir.r4.model.CodeableConcept; -import org.hl7.fhir.r4.model.Coding; -import org.hl7.fhir.r4.model.Identifier; -import org.hl7.fhir.r4.model.Reference; +import org.hl7.fhir.r4.model.*; import org.ietf.jgss.Oid; import org.openehealth.ipf.commons.core.URN; import java.util.ArrayList; import java.util.List; -public class SubmissionSetList<T extends SubmissionSetList<T>> extends MhdList<T> { +@SuppressWarnings("unchecked") +public abstract class SubmissionSetList<T extends SubmissionSetList<T>> extends MhdList<T> { public SubmissionSetList() { super(); @@ -58,7 +56,6 @@ public Identifier getSourceId() { return sourceId; } - @SuppressWarnings("unchecked") public T setSourceId(Identifier sourceId) { this.sourceId = sourceId; return (T)this; @@ -74,7 +71,6 @@ public T setSourceId(Oid oid) { * @param oid oid * @return this object */ - @SuppressWarnings("unchecked") public T setSubmissionSetUniqueIdIdentifier(Oid oid) { getIdentifier().add(new SubmissionSetUniqueIdIdentifier(oid)); return (T)this; @@ -95,7 +91,6 @@ public Reference getIntendedRecipientFirstRep() { return this.getIntendedRecipient().get(0); } - @SuppressWarnings("unchecked") public T setIntendedRecipient(List<Reference> intendedRecipient) { this.intendedRecipient = intendedRecipient; return (T)this; @@ -109,7 +104,6 @@ public Reference addIntendedRecipient() { return r; } - @SuppressWarnings("unchecked") public T addIntendedRecipient(Reference r) { if (r == null) return (T)this; @@ -119,7 +113,6 @@ public T addIntendedRecipient(Reference r) { return (T)this; } - @SuppressWarnings("unchecked") public T linkDocumentReference(String fullUrl) { addEntry().setItem(new Reference(fullUrl)); return (T)this; @@ -134,7 +127,19 @@ public boolean hasIntendedRecipient() { return false; } - private static final Coding SUBMISSIONSET_LIST_CODING = new Coding( + @Override + public void copyValues(ListResource dst) { + super.copyValues(dst); + var submissionSetList = (SubmissionSetList<?>)dst; + submissionSetList.sourceId = sourceId == null ? null : sourceId.copy(); + if (intendedRecipient != null) { + submissionSetList.intendedRecipient = new ArrayList<>(); + for (Reference r : intendedRecipient) + ((SubmissionSetList<?>) dst).intendedRecipient.add(r.copy()); + } + } + + public static final Coding SUBMISSIONSET_LIST_CODING = new Coding( "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", "submissionset", "submissionset" diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetUniqueIdIdentifier.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetUniqueIdIdentifier.java index dcbf2a4729..767d627cc2 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetUniqueIdIdentifier.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/SubmissionSetUniqueIdIdentifier.java @@ -23,7 +23,7 @@ // https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.SubmissionSetUniqueIdIdentifier -@DatatypeDef(name = "SubmissionSetUniqueIdIdentifier", profileOf = Identifier.class) +@DatatypeDef(name = "SubmissionSetUniqueIdIdentifier", profileOf = Identifier.class, isSpecialization = true) public class SubmissionSetUniqueIdIdentifier extends UniqueIdIdentifier { public SubmissionSetUniqueIdIdentifier() { @@ -40,4 +40,11 @@ public SubmissionSetUniqueIdIdentifier setValue(Oid oid) { setValue(new URN(oid).toString()); return this; } + + @Override + public SubmissionSetUniqueIdIdentifier copy() { + var dst = new SubmissionSetUniqueIdIdentifier(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveDocumentReference.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveDocumentReference.java index 006b9276e7..1abef57612 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveDocumentReference.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveDocumentReference.java @@ -21,11 +21,18 @@ import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE; @ResourceDef(name = "DocumentReference", id = "mhdUncontainedComprehensiveDocumentReference", profile = UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE) -public class UncontainedComprehensiveDocumentReference<T extends UncontainedComprehensiveDocumentReference<T>> extends MinimalDocumentReference<T> { +public class UncontainedComprehensiveDocumentReference extends AbstractDocumentReference<UncontainedComprehensiveDocumentReference> { public UncontainedComprehensiveDocumentReference() { super(); UNCONTAINED_COMPREHENSIVE_DOCUMENT_REFERENCE.setProfile(this); } + @Override + public UncontainedComprehensiveDocumentReference copy() { + var dst = new UncontainedComprehensiveDocumentReference(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveProvideDocumentBundle.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveProvideDocumentBundle.java index aebc8e528f..26b47f6627 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveProvideDocumentBundle.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveProvideDocumentBundle.java @@ -53,4 +53,11 @@ public List<FolderList> getFolders() { return FhirUtils.getResources(this, FolderList.class); } + @Override + public UncontainedComprehensiveProvideDocumentBundle copy() { + var dst = new UncontainedComprehensiveProvideDocumentBundle(); + copyValues(dst); + return dst; + } + } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveSubmissionSetList.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveSubmissionSetList.java index 14faa37ec0..b0ef23da82 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveSubmissionSetList.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UncontainedComprehensiveSubmissionSetList.java @@ -16,15 +16,23 @@ package org.openehealth.ipf.commons.ihe.fhir.mhd.model; import ca.uhn.fhir.model.api.annotation.ResourceDef; +import org.hl7.fhir.r4.model.ListResource; import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST; import static org.openehealth.ipf.commons.ihe.fhir.mhd.MhdProfile.UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE; @ResourceDef(name = "List", id = "mhdUncontainedComprehensiveSubmissionSet", profile = UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST_PROFILE) -public class UncontainedComprehensiveSubmissionSetList<T extends UncontainedComprehensiveSubmissionSetList<T>> extends SubmissionSetList<T> { +public class UncontainedComprehensiveSubmissionSetList extends SubmissionSetList<UncontainedComprehensiveSubmissionSetList> { public UncontainedComprehensiveSubmissionSetList() { super(); UNCONTAINED_COMPREHENSIVE_SUBMISSIONSET_TYPE_LIST.setProfile(this); } + + @Override + public UncontainedComprehensiveSubmissionSetList copy() { + var dst = new UncontainedComprehensiveSubmissionSetList(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UniqueIdIdentifier.java b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UniqueIdIdentifier.java index 03c6455a4e..e948604373 100644 --- a/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UniqueIdIdentifier.java +++ b/commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/mhd/model/UniqueIdIdentifier.java @@ -16,16 +16,22 @@ package org.openehealth.ipf.commons.ihe.fhir.mhd.model; import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import lombok.Getter; import org.hl7.fhir.r4.model.Identifier; // https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.UniqueIdIdentifier -@DatatypeDef(name = "UniqueIdIdentifier", profileOf = Identifier.class) +@DatatypeDef(name = "UniqueIdIdentifier", profileOf = Identifier.class, isSpecialization = true) public class UniqueIdIdentifier extends Identifier { public UniqueIdIdentifier() { super(); setUse(IdentifierUse.USUAL); } + + @Override + public UniqueIdIdentifier copy() { + var dst = new UniqueIdIdentifier(); + copyValues(dst); + return dst; + } } diff --git a/commons/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidatorTest.java b/commons/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidatorTest.java index d607c331b6..f6f45b2d10 100644 --- a/commons/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidatorTest.java +++ b/commons/ihe/fhir/r4/mhd/src/test/java/org/openehealth/ipf/commons/ihe/fhir/mhd/MhdValidatorTest.java @@ -25,6 +25,7 @@ import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveDocumentReference; import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveProvideDocumentBundle; import org.openehealth.ipf.commons.ihe.fhir.mhd.model.ComprehensiveSubmissionSetList; +import org.openehealth.ipf.commons.ihe.fhir.mhd.model.Source; import java.security.MessageDigest; import java.util.Collections; @@ -46,6 +47,7 @@ public class MhdValidatorTest { @Test public void testBundle() throws Exception { var context = FhirContext.forR4(); + MhdProfile.registerDefaultTypes(context); var bundle = provideAndRegister(); try { var iti65Validator = new MhdValidator(context); @@ -78,7 +80,8 @@ private Bundle provideAndRegister() throws Exception { )) .addIntendedRecipient(new Reference(practitioner)) .setSubject(new Reference("Patient/a2")) - .setTitle("description"); + .setTitle("description") + .setSource(new Source().setAuthorOrg(new Reference("Organization/4711")).setReference("Practitioner/1234")); submissionSetList.getText().setStatus(Narrative.NarrativeStatus.EMPTY); submissionSetList.getText().setDivAsString("<div>empty</div>"); diff --git a/commons/ihe/fhir/r4/mhd/src/test/resources/test.json b/commons/ihe/fhir/r4/mhd/src/test/resources/test.json index e913316018..5436b2b7dc 100644 --- a/commons/ihe/fhir/r4/mhd/src/test/resources/test.json +++ b/commons/ihe/fhir/r4/mhd/src/test/resources/test.json @@ -1,184 +1,278 @@ { - "resourceType" : "Bundle", - "id" : "ex-comprehensiveProvideDocumentBundleSimple", - "meta" : { - "profile" : ["https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle"], - "security" : [{ - "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason", - "code" : "HTEST" - }] + "resourceType": "Bundle", + "id": "ex-comprehensiveProvideDocumentBundleSimple", + "meta": { + "profile": [ + "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle" + ], + "security": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code": "HTEST" + } + ] }, - "type" : "transaction", - "timestamp" : "2004-10-25T23:50:50-05:00", - "entry" : [{ - "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300001", - "resource" : { - "resourceType" : "List", - "id" : "aaaaaaaa-bbbb-cccc-dddd-e00333300001", - "meta" : { - "profile" : ["https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"], - "security" : [{ - "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason", - "code" : "HTEST" - }] - }, - "text" : { - "status" : "extensions", - "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">SubmissionSet with Patient</div>" - }, - "extension" : [{ - "url" : "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType", - "valueCodeableConcept" : { - "coding" : [{ - "system" : "http://snomed.info/sct", - "code" : "225728007" - }] - } - }, - { - "url" : "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId", - "valueIdentifier" : { - "value" : "urn:oid:1.2.3.4" + "type": "transaction", + "timestamp": "2004-10-25T23:50:50-05:00", + "entry": [ + { + "fullUrl": "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300001", + "resource": { + "resourceType": "List", + "id": "aaaaaaaa-bbbb-cccc-dddd-e00333300001", + "meta": { + "profile": [ + "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet" + ], + "security": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code": "HTEST" + } + ] + }, + "text": { + "status": "extensions", + "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">SubmissionSet with Patient</div>" + }, + "contained" : [ + { + "resourceType" : "Practitioner", + "id" : "in-practitionerRecipient", + "telecom" : [ + { + "system" : "email", + "value" : "JohnMoehrke@gmail.com" + } + ] + }, + { + "resourceType" : "Practitioner", + "id" : "in-practitionerAuthor", + "telecom" : [ + { + "system" : "email", + "value" : "iti@ihe.net" + } + ] + }, + { + "resourceType" : "Organization", + "id" : "in-organizationAuthor", + "name" : "my Hospital" } - }], - "identifier" : [{ - "use" : "usual", - "system" : "urn:ietf:rfc:3986", - "value" : "urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46346" - }], - "status" : "current", - "mode" : "working", - "code" : { - "coding" : [{ - "system" : "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", - "code" : "submissionset" - }] - }, - "subject" : { - "reference" : "Patient/ex-patient" + ], + "extension": [ + { + "url": "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "225728007" + } + ] + } + }, + { + "url": "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId", + "valueIdentifier": { + "value": "urn:oid:1.2.3.4" + } + }, + { + "url" : "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient", + "valueReference" : { + "reference" : "#in-practitionerRecipient" + } + } + ], + "identifier": [ + { + "use": "usual", + "system": "urn:ietf:rfc:3986", + "value": "urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46346" + } + ], + "status": "current", + "mode": "working", + "code": { + "coding": [ + { + "system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", + "code": "submissionset" + } + ] + }, + "subject": { + "reference": "Patient/ex-patient" + }, + "date": "2004-10-25T23:50:50-05:00", + "source" : { + "extension" : [ + { + "url" : "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-authorOrg", + "valueReference" : { + "reference" : "#in-organizationAuthor" + } + } + ], + "reference" : "#in-practitionerAuthor" + }, + "entry": [ + { + "item": { + "reference": "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300002" + } + } + ] }, - "date" : "2004-10-25T23:50:50-05:00", - "entry" : [{ - "item" : { - "reference" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300002" - } - }] + "request": { + "method": "POST", + "url": "List" + } }, - "request" : { - "method" : "POST", - "url" : "List" - } - }, { - "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300002", - "resource" : { - "resourceType" : "DocumentReference", - "id" : "aaaaaaaa-bbbb-cccc-dddd-e00333300002", - "meta" : { - "profile" : ["https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"], - "security" : [{ - "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason", - "code" : "HTEST" - }] + "fullUrl": "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300002", + "resource": { + "resourceType": "DocumentReference", + "id": "aaaaaaaa-bbbb-cccc-dddd-e00333300002", + "meta": { + "profile": [ + "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference" + ], + "security": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code": "HTEST" + } + ] }, - "text" : { - "status" : "generated", - "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: DocumentReference</b><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300002\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource DocumentReference "aaaaaaaa-bbbb-cccc-dddd-e00333300002" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.html\">MHD DocumentReference Comprehensive</a></p><p style=\"margin-bottom: 0px\">Security Labels: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActReason http://terminology.hl7.org/CodeSystem/v3-ActReason}\">http://terminology.hl7.org/CodeSystem/v3-ActReason</span></p></div><p><b>masterIdentifier</b>: id:\u00a0urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012</p><p><b>status</b>: current</p><p><b>type</b>: Patient summary Document <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#60591-5)</span></p><p><b>category</b>: History of Immunization Narrative <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#11369-6)</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">Patient/ex-patient</a> " SCHMIDT"</p><p><b>date</b>: Feb 1, 2020, 10:50:50 PM</p><p><b>securityLabel</b>: restricted <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-Confidentiality.html\">Confidentiality</a>#R)</span></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Language</b></td><td><b>Url</b></td><td><b>Size</b></td><td><b>Hash</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>text/plain</td><td>en</td><td><code>urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003</code></td><td>11</td><td>(base64 data - 40 bytes)</td><td>Hello World</td><td>2020-02-01 23:50:50-0500</td></tr></table><p><b>format</b>: ITI XDS-SD TEXT (Details: http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode code urn:ihe:iti:xds-sd:text:2008 = 'ITI XDS-SD TEXT', stated as 'null')</p></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>FacilityType</b></td><td><b>PracticeSetting</b></td><td><b>SourcePatientInfo</b></td></tr><tr><td style=\"display: none\">*</td><td>Children's hospital <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#82242000)</span></td><td>Adult mental illness - specialty (qualifier value) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#408467006)</span></td><td><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300004\"> </a><blockquote><p/><p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300004\"> </a></p><p><b>identifier</b>: id:\u00a0mrn-1234</p><p><b>name</b>: Dee Schmidt </p></blockquote></td></tr></table><hr/><blockquote><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\"><b>Dee Schmidt </b> (no stated gender), DoB Unknown ( id:\u00a0mrn-1234)</p><hr/></blockquote></div>" + "text": { + "status": "generated", + "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: DocumentReference</b><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300002\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource DocumentReference "aaaaaaaa-bbbb-cccc-dddd-e00333300002" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.html\">MHD DocumentReference Comprehensive</a></p><p style=\"margin-bottom: 0px\">Security Labels: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActReason http://terminology.hl7.org/CodeSystem/v3-ActReason}\">http://terminology.hl7.org/CodeSystem/v3-ActReason</span></p></div><p><b>masterIdentifier</b>: id:\u00a0urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012</p><p><b>status</b>: current</p><p><b>type</b>: Patient summary Document <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#60591-5)</span></p><p><b>category</b>: History of Immunization Narrative <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#11369-6)</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">Patient/ex-patient</a> " SCHMIDT"</p><p><b>date</b>: Feb 1, 2020, 10:50:50 PM</p><p><b>securityLabel</b>: restricted <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-Confidentiality.html\">Confidentiality</a>#R)</span></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Language</b></td><td><b>Url</b></td><td><b>Size</b></td><td><b>Hash</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>text/plain</td><td>en</td><td><code>urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003</code></td><td>11</td><td>(base64 data - 40 bytes)</td><td>Hello World</td><td>2020-02-01 23:50:50-0500</td></tr></table><p><b>format</b>: ITI XDS-SD TEXT (Details: http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode code urn:ihe:iti:xds-sd:text:2008 = 'ITI XDS-SD TEXT', stated as 'null')</p></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>FacilityType</b></td><td><b>PracticeSetting</b></td><td><b>SourcePatientInfo</b></td></tr><tr><td style=\"display: none\">*</td><td>Children's hospital <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#82242000)</span></td><td>Adult mental illness - specialty (qualifier value) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#408467006)</span></td><td><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300004\"> </a><blockquote><p/><p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00333300004\"> </a></p><p><b>identifier</b>: id:\u00a0mrn-1234</p><p><b>name</b>: Dee Schmidt </p></blockquote></td></tr></table><hr/><blockquote><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\"><b>Dee Schmidt </b> (no stated gender), DoB Unknown ( id:\u00a0mrn-1234)</p><hr/></blockquote></div>" }, - "contained" : [{ - "resourceType" : "Patient", - "id" : "aaaaaaaa-bbbb-cccc-dddd-e00333300004", - "identifier" : [{ - "system" : "http://example.org/patients", - "value" : "mrn-1234" - }], - "name" : [{ - "family" : "Schmidt", - "given" : ["Dee"] - }] - }], - "masterIdentifier" : { - "system" : "urn:ietf:rfc:3986", - "value" : "urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012" + "contained": [ + { + "resourceType": "Patient", + "id": "aaaaaaaa-bbbb-cccc-dddd-e00333300004", + "identifier": [ + { + "system": "http://example.org/patients", + "value": "mrn-1234" + } + ], + "name": [ + { + "family": "Schmidt", + "given": [ + "Dee" + ] + } + ] + } + ], + "masterIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012" }, - "status" : "current", - "type" : { - "coding" : [{ - "system" : "http://loinc.org", - "code" : "60591-5" - }] + "status": "current", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "60591-5" + } + ] }, - "category" : [{ - "coding" : [{ - "system" : "http://loinc.org", - "code" : "11369-6" - }] - }], - "subject" : { - "reference" : "Patient/ex-patient" + "category": [ + { + "coding": [ + { + "system": "http://loinc.org", + "code": "11369-6" + } + ] + } + ], + "subject": { + "reference": "Patient/ex-patient" }, - "date" : "2020-02-01T23:50:50-05:00", - "securityLabel" : [{ - "coding" : [{ - "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality", - "code" : "R" - }] - }], - "content" : [{ - "attachment" : { - "contentType" : "text/plain", - "language" : "en", - "url" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003", - "size" : 11, - "hash" : "MGE0ZDU1YThkNzc4ZTUwMjJmYWI3MDE5NzdjNWQ4NDBiYmM0ODZkMA==", - "title" : "Hello World", - "creation" : "2020-02-01T23:50:50-05:00" - }, - "format" : { - "system" : "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode", - "code" : "urn:ihe:iti:xds-sd:text:2008" + "date": "2020-02-01T23:50:50-05:00", + "securityLabel": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality", + "code": "R" + } + ] + } + ], + "content": [ + { + "attachment": { + "contentType": "text/plain", + "language": "en", + "url": "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003", + "size": 11, + "hash": "MGE0ZDU1YThkNzc4ZTUwMjJmYWI3MDE5NzdjNWQ4NDBiYmM0ODZkMA==", + "title": "Hello World", + "creation": "2020-02-01T23:50:50-05:00" + }, + "format": { + "system": "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode", + "code": "urn:ihe:iti:xds-sd:text:2008" + } } - }], - "context" : { - "facilityType" : { - "coding" : [{ - "system" : "http://snomed.info/sct", - "code" : "82242000" - }] + ], + "context": { + "facilityType": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "82242000" + } + ] }, - "practiceSetting" : { - "coding" : [{ - "system" : "http://snomed.info/sct", - "code" : "408467006" - }] + "practiceSetting": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "408467006" + } + ] }, - "sourcePatientInfo" : { - "reference" : "#aaaaaaaa-bbbb-cccc-dddd-e00333300004" + "sourcePatientInfo": { + "reference": "#aaaaaaaa-bbbb-cccc-dddd-e00333300004" } } }, - "request" : { - "method" : "POST", - "url" : "DocumentReference" + "request": { + "method": "POST", + "url": "DocumentReference" } }, { - "fullUrl" : "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003", - "resource" : { - "resourceType" : "Binary", - "id" : "aaaaaaaa-bbbb-cccc-dddd-e00333300003", - "meta" : { - "security" : [{ - "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason", - "code" : "HTEST" - }] + "fullUrl": "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00333300003", + "resource": { + "resourceType": "Binary", + "id": "aaaaaaaa-bbbb-cccc-dddd-e00333300003", + "meta": { + "security": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code": "HTEST" + } + ] }, - "contentType" : "text/plain", - "data" : "SGVsbG8gV29ybGQ=" + "contentType": "text/plain", + "data": "SGVsbG8gV29ybGQ=" }, - "request" : { - "method" : "POST", - "url" : "Binary" + "request": { + "method": "POST", + "url": "Binary" } - }] + } + ] } \ No newline at end of file