{
  "resourceType": "StructureDefinition",
  "id": "IHE.MHD.Provide.Minimal.DocumentReference",
  "meta": {
    "lastUpdated": "2020-09-02T11:59:20.703+00:00"
  },
  "text": {
    "status": "additional",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\tStructureDefinition for DocumentRefererence as represented in the Provide Document Bundle (ITI-65) transaction with Minimal Metadata compliance in the  \n    IHE IT Infrastructure Technical Framework Supplement <a href=\"http://wiki.ihe.net/index.php/Mobile_access_to_Health_Documents_(MHD)\">Mobile access to Health Documents (MHD) Rev. 3.1</a>. \n\tThe IHE MHD Profile text is Normative, this conformance resource is Informative.\n\t\t</div>"
  },
  "url": "http://ihe.net/fhir/ihe.mhd.fhir/StructureDefinition/IHE.MHD.Provide.Minimal.DocumentReference",
  "version": "3.1.1",
  "name": "IHE_MHD_Provide_Minimal_DocumentReference",
  "title": "Provide Minimal DocumentReference",
  "status": "active",
  "experimental": false,
  "date": "2019-12-31",
  "publisher": "Integrating the Healthcare Enterprise (IHE)",
  "contact": [
    {
      "name": "IHE",
      "telecom": [
        {
          "system": "url",
          "value": "http://ihe.net"
        }
      ]
    },
    {
      "name": "John Moehrke",
      "telecom": [
        {
          "system": "email",
          "value": "JohnMoehrke@gmail.com"
        }
      ]
    }
  ],
  "description": "IHE MHD Profile on DocumentReference (DocumentEntry) when used in the Provide Transaction with Minimal Metadata.",
  "copyright": "IHE http://www.ihe.net/Governance/#Intellectual_Property",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "DocumentReference",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DocumentReference.text",
        "path": "DocumentReference.text",
        "comment": "DocumentEntry comment"
      },
      {
        "id": "DocumentReference.masterIdentifier",
        "path": "DocumentReference.masterIdentifier",
        "comment": "See ITI TF-2x: Z.9.1.1 Identifier and CDA root plus extension.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DocumentReference.identifier",
        "path": "DocumentReference.identifier",
        "comment": "When the DocumentReference.identifier carries the entryUUID then the DocumentReference.identifier use shall be ‘official’.",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.status",
        "path": "DocumentReference.status",
        "comment": "approved -> status=current\r\ndeprecated -> status=superseded"
      },
      {
        "id": "DocumentReference.docStatus",
        "path": "DocumentReference.docStatus",
        "comment": "These HL7 FHIR elements are not used in XDS, therefore would not be present. Document Consumers\r\nshould be robust to these elements holding values",
        "max": "0"
      },
      {
        "id": "DocumentReference.type",
        "path": "DocumentReference.type",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.category",
        "path": "DocumentReference.category",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.subject",
        "path": "DocumentReference.subject",
        "comment": "Not a contained resource. URL Points to an existing Patient Resource representing the XDS Affinity Domain Patient.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ],
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.date",
        "path": "DocumentReference.date",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.author",
        "path": "DocumentReference.author",
        "comment": "Contained resource of type Practitioner with:\r\n* authorInstitution: Organization\r\n* authorPerson: Practitioner.identifier and Practitioner.name\r\n* authorSpecialty: Practitioner.qualification\r\n* authorTelecommunication: Practitioner.telecom",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.authenticator",
        "path": "DocumentReference.authenticator",
        "comment": "Contained resource",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "mustSupport": false
      },
      {
        "id": "DocumentReference.custodian",
        "path": "DocumentReference.custodian",
        "comment": "These HL7 FHIR elements are not used in XDS, therefore would not be present. Document Consumers should be robust to these elements holding values.",
        "max": "0"
      },
      {
        "id": "DocumentReference.relatesTo",
        "path": "DocumentReference.relatesTo",
        "comment": "See ITI TF-2c: 3.65.4.1.2.3",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.description",
        "path": "DocumentReference.description",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.securityLabel",
        "path": "DocumentReference.securityLabel",
        "comment": "Note: This is NOT the DocumentReference.meta, as that holds the meta tags for the DocumentReference itself.",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.content",
        "path": "DocumentReference.content",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.content.attachment",
        "path": "DocumentReference.content.attachment",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.content.attachment.contentType",
        "path": "DocumentReference.content.attachment.contentType",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DocumentReference.content.attachment.language",
        "path": "DocumentReference.content.attachment.language",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.content.attachment.data",
        "path": "DocumentReference.content.attachment.data",
        "comment": "These HL7 FHIR elements are not used in XDS, therefore would not be present. Document Consumers should be robust to these elements holding values.",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.url",
        "path": "DocumentReference.content.attachment.url",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DocumentReference.content.attachment.size",
        "path": "DocumentReference.content.attachment.size",
        "comment": "The size is calculated on the data prior to base64 encoding, if the data is base64 encoded.",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.content.attachment.hash",
        "path": "DocumentReference.content.attachment.hash",
        "comment": "The IHE Document Sharing metadata element hash holds the SHA1 hash of the document. The hash is encoded in FHIR in base64Binary, whereas in XDS hexbinary is used. The hash is calculated on the data prior to base64 encoding, if the data is base64 encoded.",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.content.attachment.title",
        "path": "DocumentReference.content.attachment.title",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.content.attachment.creation",
        "path": "DocumentReference.content.attachment.creation",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.content.format",
        "path": "DocumentReference.content.format",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "valueSet": "http://ihe.net/fhir/ihe.formatcode.fhir/ValueSet/formatcode"
        }
      },
      {
        "id": "DocumentReference.context",
        "path": "DocumentReference.context",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.context.encounter",
        "path": "DocumentReference.context.encounter",
        "comment": "When referenceIdList contains an encounter, and a FHIR Encounter is available, it may be referenced.",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.context.event",
        "path": "DocumentReference.context.event",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.context.period",
        "path": "DocumentReference.context.period",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context.facilityType",
        "path": "DocumentReference.context.facilityType",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context.practiceSetting",
        "path": "DocumentReference.context.practiceSetting",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context.sourcePatientInfo",
        "path": "DocumentReference.context.sourcePatientInfo",
        "comment": "Contained Patient resource with Patient.identifier.use element set to ‘usual’.\r\n\r\nIndicates that the data within the XDS document entry be represented as a contained resource. See Section 4.5.4.4.7",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context.related",
        "path": "DocumentReference.context.related",
        "comment": "May be filled with URL pointers to Resources or Identifiers found in referenceIdList",
        "mustSupport": false
      }
    ]
  }
}