{
  "resourceType": "StructureDefinition",
  "id": "PLNiphSourceDocumentReference",
  "meta": {
    "lastUpdated": "2019-05-30T15:59:17.0303399+00:00"
  },
  "url": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphSourceDocumentReference",
  "version": "1.0",
  "name": "PLNiphSourceDocumentReference",
  "status": "active",
  "date": "2019-05-30T15:59:16.216871+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DocumentReference",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DocumentReference.masterIdentifier",
        "path": "DocumentReference.masterIdentifier",
        "min": 1,
        "mustSupport": false
      },
      {
        "id": "DocumentReference.masterIdentifier.use",
        "path": "DocumentReference.masterIdentifier.use",
        "max": "0"
      },
      {
        "id": "DocumentReference.masterIdentifier.type",
        "path": "DocumentReference.masterIdentifier.type",
        "max": "0"
      },
      {
        "id": "DocumentReference.masterIdentifier.system",
        "path": "DocumentReference.masterIdentifier.system",
        "min": 1
      },
      {
        "id": "DocumentReference.masterIdentifier.value",
        "path": "DocumentReference.masterIdentifier.value",
        "min": 1
      },
      {
        "id": "DocumentReference.masterIdentifier.period",
        "path": "DocumentReference.masterIdentifier.period",
        "max": "0"
      },
      {
        "id": "DocumentReference.masterIdentifier.assigner",
        "path": "DocumentReference.masterIdentifier.assigner",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier",
        "path": "DocumentReference.identifier",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.identifier.use",
        "path": "DocumentReference.identifier.use",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.type.coding",
        "path": "DocumentReference.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.identifier.type.coding.system",
        "path": "DocumentReference.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "DocumentReference.identifier.type.coding.version",
        "path": "DocumentReference.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.type.coding.code",
        "path": "DocumentReference.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "DocumentReference.identifier.type.coding.userSelected",
        "path": "DocumentReference.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DocumentReference.identifier.type.text",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.system",
        "path": "DocumentReference.identifier.system",
        "min": 1
      },
      {
        "id": "DocumentReference.identifier.value",
        "path": "DocumentReference.identifier.value",
        "min": 1
      },
      {
        "id": "DocumentReference.identifier.period",
        "path": "DocumentReference.identifier.period",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.assigner",
        "path": "DocumentReference.identifier.assigner",
        "max": "0"
      },
      {
        "id": "DocumentReference.docStatus",
        "path": "DocumentReference.docStatus",
        "max": "0"
      },
      {
        "id": "DocumentReference.type.coding",
        "path": "DocumentReference.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.type.coding.system",
        "path": "DocumentReference.type.coding.system",
        "min": 1
      },
      {
        "id": "DocumentReference.type.coding.version",
        "path": "DocumentReference.type.coding.version",
        "max": "0"
      },
      {
        "id": "DocumentReference.type.coding.code",
        "path": "DocumentReference.type.coding.code",
        "min": 1
      },
      {
        "id": "DocumentReference.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DocumentReference.type.coding.display",
        "min": 1
      },
      {
        "id": "DocumentReference.type.coding.userSelected",
        "path": "DocumentReference.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DocumentReference.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DocumentReference.type.text",
        "max": "0"
      },
      {
        "id": "DocumentReference.class",
        "path": "DocumentReference.class",
        "max": "0"
      },
      {
        "id": "DocumentReference.subject",
        "path": "DocumentReference.subject",
        "max": "0"
      },
      {
        "id": "DocumentReference.created",
        "path": "DocumentReference.created",
        "min": 1
      },
      {
        "id": "DocumentReference.author",
        "path": "DocumentReference.author",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphOrganizationalEntity",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DocumentReference.author.reference",
        "path": "DocumentReference.author.reference",
        "min": 1
      },
      {
        "id": "DocumentReference.author.identifier",
        "path": "DocumentReference.author.identifier",
        "max": "0"
      },
      {
        "id": "DocumentReference.author.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DocumentReference.author.display",
        "max": "0"
      },
      {
        "id": "DocumentReference.authenticator",
        "path": "DocumentReference.authenticator",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphOrganizationalEntity"
          }
        ]
      },
      {
        "id": "DocumentReference.authenticator.reference",
        "path": "DocumentReference.authenticator.reference",
        "min": 1
      },
      {
        "id": "DocumentReference.authenticator.identifier",
        "path": "DocumentReference.authenticator.identifier",
        "max": "0"
      },
      {
        "id": "DocumentReference.authenticator.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DocumentReference.authenticator.display",
        "max": "0"
      },
      {
        "id": "DocumentReference.custodian",
        "path": "DocumentReference.custodian",
        "min": 1
      },
      {
        "id": "DocumentReference.custodian.reference",
        "path": "DocumentReference.custodian.reference",
        "max": "0"
      },
      {
        "id": "DocumentReference.custodian.identifier",
        "path": "DocumentReference.custodian.identifier",
        "min": 1
      },
      {
        "id": "DocumentReference.custodian.identifier.use",
        "path": "DocumentReference.custodian.identifier.use",
        "max": "0"
      },
      {
        "id": "DocumentReference.custodian.identifier.type",
        "path": "DocumentReference.custodian.identifier.type",
        "max": "0"
      },
      {
        "id": "DocumentReference.custodian.identifier.system",
        "path": "DocumentReference.custodian.identifier.system",
        "min": 1
      },
      {
        "id": "DocumentReference.custodian.identifier.value",
        "path": "DocumentReference.custodian.identifier.value",
        "min": 1
      },
      {
        "id": "DocumentReference.custodian.identifier.period",
        "path": "DocumentReference.custodian.identifier.period",
        "max": "0"
      },
      {
        "id": "DocumentReference.custodian.identifier.assigner",
        "path": "DocumentReference.custodian.identifier.assigner",
        "max": "0"
      },
      {
        "id": "DocumentReference.custodian.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DocumentReference.custodian.display",
        "max": "0"
      },
      {
        "id": "DocumentReference.relatesTo",
        "path": "DocumentReference.relatesTo",
        "max": "1",
        "mustSupport": false
      },
      {
        "id": "DocumentReference.relatesTo.target",
        "path": "DocumentReference.relatesTo.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://pzh.gov.pl/fhir/StructureDefinition/PLNiphSourceDocumentReference",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "DocumentReference.relatesTo.target.reference",
        "path": "DocumentReference.relatesTo.target.reference",
        "min": 1
      },
      {
        "id": "DocumentReference.relatesTo.target.identifier",
        "path": "DocumentReference.relatesTo.target.identifier",
        "max": "0"
      },
      {
        "id": "DocumentReference.relatesTo.target.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DocumentReference.relatesTo.target.display",
        "max": "0"
      },
      {
        "id": "DocumentReference.securityLabel",
        "path": "DocumentReference.securityLabel",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.contentType",
        "path": "DocumentReference.content.attachment.contentType",
        "min": 1
      },
      {
        "id": "DocumentReference.content.attachment.language",
        "path": "DocumentReference.content.attachment.language",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.data",
        "path": "DocumentReference.content.attachment.data",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.url",
        "path": "DocumentReference.content.attachment.url",
        "min": 1
      },
      {
        "id": "DocumentReference.content.attachment.size",
        "path": "DocumentReference.content.attachment.size",
        "min": 1
      },
      {
        "id": "DocumentReference.content.attachment.hash",
        "path": "DocumentReference.content.attachment.hash",
        "min": 1
      },
      {
        "id": "DocumentReference.content.attachment.creation",
        "path": "DocumentReference.content.attachment.creation",
        "min": 1
      },
      {
        "id": "DocumentReference.content.format",
        "path": "DocumentReference.content.format",
        "min": 1
      },
      {
        "id": "DocumentReference.content.format.system",
        "path": "DocumentReference.content.format.system",
        "min": 1
      },
      {
        "id": "DocumentReference.content.format.version",
        "path": "DocumentReference.content.format.version",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.format.code",
        "path": "DocumentReference.content.format.code",
        "min": 1
      },
      {
        "id": "DocumentReference.content.format.userSelected",
        "path": "DocumentReference.content.format.userSelected",
        "max": "0"
      },
      {
        "id": "DocumentReference.context",
        "path": "DocumentReference.context",
        "max": "0"
      }
    ]
  }
}