{
  "resourceType": "StructureDefinition",
  "id": "IHE.MHD.DocumentManifest",
  "text": {
    "status": "additional",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\tStructureDefinition for DocumentManifest as represented in the Provide and Query interactions 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. 2.3</a>.\n\tThe IHE MHD Profile text is Normative, this conformance resource is Informative.</div>"
  },
  "url": "http://nictiz.nl/fhir/StructureDefinition/IHE.MHD.DocumentManifest",
  "name": "Nictiz.IHE.MHD.DocumentManifest",
  "title": "Nictiz IHE MHD Profile on DocumentManifest (SubmissionSet)",
  "status": "active",
  "experimental": false,
  "date": "2019-07-29",
  "publisher": "HL7 Netherlands",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Profile on DocumentManifest based on IHE IT Infrastructure Technical Framework Supplement - Mobile access to Health Documents (MHD) Rev. 2.3,  revised by Nictiz to:\r\n* add a correct slicing on .content.p[x]\r\n* replace incorrect references\r\n* open up restrictions on .author\r\n\r\nSee http://wiki.ihe.net/index.php/Mobile_access_to_Health_Documents_(MHD)  The IHE MHD Profile text is Normative, this conformance resource is Informative.",
  "purpose": "Copied profile from IHE MHD - revised by Nictiz to add a correct slicing on .content.p[x] and replaces incorrect references.",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "DocumentManifest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentManifest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DocumentManifest.text",
        "path": "DocumentManifest.text",
        "mapping": [
          {
            "identity": "XDS",
            "map": "SubmissionSet.comment"
          }
        ]
      },
      {
        "id": "DocumentManifest.masterIdentifier",
        "path": "DocumentManifest.masterIdentifier",
        "min": 1
      },
      {
        "id": "DocumentManifest.identifier",
        "path": "DocumentManifest.identifier",
        "min": 1
      },
      {
        "id": "DocumentManifest.status",
        "path": "DocumentManifest.status",
        "comment": "approved -> status=current"
      },
      {
        "id": "DocumentManifest.type",
        "path": "DocumentManifest.type",
        "min": 1
      },
      {
        "id": "DocumentManifest.subject",
        "path": "DocumentManifest.subject",
        "comment": "Not a contained resource. URL Points to an existing Patient resource representing Affinity Domain Patient",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "DocumentManifest.created",
        "path": "DocumentManifest.created",
        "min": 1
      },
      {
        "id": "DocumentManifest.author",
        "path": "DocumentManifest.author",
        "comment": "Contained resource of type Practitioner or Organization with:\r\n* authorInstitution: Organization\r\nFor Practionioner, also with:\r\n* authorPerson: Practitioner.identifier and Practitioner.name\r\n* authorRole:—Not supported in STU3\r\n* authorSpecialty: Practitioner.qualification\r\n* authorTelecommunication: Practitioner.telecom",
        "mustSupport": true
      },
      {
        "id": "DocumentManifest.source",
        "path": "DocumentManifest.source",
        "min": 1
      },
      {
        "id": "DocumentManifest.content.p[x]",
        "path": "DocumentManifest.content.p[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "comment": "DocumentManifest.content.pAttachment is not used in XDS, therefore would not be present. Added a type slice and set the rules to closed to enforce constraining of pAttachment."
      },
      {
        "id": "DocumentManifest.content.p[x]:pReference",
        "path": "DocumentManifest.content.p[x]",
        "sliceName": "pReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/IHE.MHD.Minimal.DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          }
        ]
      },
      {
        "id": "DocumentManifest.related",
        "path": "DocumentManifest.related",
        "comment": "These HL7 FHIR STU3 elements are not used in XDS, therefore would not be present.",
        "max": "0"
      }
    ]
  }
}