{
  "resourceType": "StructureDefinition",
  "url": "http://bookplan.dk/fhir/StructureDefinition/DocumentReference",
  "version": "1.0",
  "name": "DocumentReference",
  "status": "active",
  "publisher": "Capgemini Danmark A/S",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "constrainedType": "DocumentReference",
  "abstract": false,
  "contextType": "resource",
  "base": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
  "differential": {
    "element": [
      {
        "path": "DocumentReference.id",
        "min": 0,
        "max": "1",
        "maxLength": 36
      },
      {
        "path": "DocumentReference.meta",
        "min": 0,
        "max": "1"
      },
      {
        "path": "DocumentReference.meta.id",
        "max": "0"
      },
      {
        "path": "DocumentReference.meta.versionId",
        "min": 1
      },
      {
        "path": "DocumentReference.meta.lastUpdated",
        "max": "0"
      },
      {
        "path": "DocumentReference.meta.profile",
        "max": "0"
      },
      {
        "path": "DocumentReference.meta.security",
        "max": "0"
      },
      {
        "path": "DocumentReference.meta.tag",
        "max": "0"
      },
      {
        "path": "DocumentReference.implicitRules",
        "max": "0"
      },
      {
        "path": "DocumentReference.language",
        "max": "0"
      },
      {
        "path": "DocumentReference.text",
        "max": "0"
      },
      {
        "path": "DocumentReference.contained",
        "max": "0"
      },
      {
        "path": "DocumentReference.masterIdentifier",
        "max": "0"
      },
      {
        "path": "DocumentReference.identifier",
        "max": "0"
      },
      {
        "path": "DocumentReference.subject",
        "max": "0"
      },
      {
        "path": "DocumentReference.type",
        "min": 1
      },
      {
        "path": "DocumentReference.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "path": "DocumentReference.type.coding.system",
        "max": "0"
      },
      {
        "path": "DocumentReference.type.coding.version",
        "max": "0"
      },
      {
        "path": "DocumentReference.type.coding.code",
        "min": 1
      },
      {
        "path": "DocumentReference.type.coding.display",
        "max": "0"
      },
      {
        "path": "DocumentReference.type.coding.userSelected",
        "max": "0"
      },
      {
        "path": "DocumentReference.type.text",
        "max": "0"
      },
      {
        "path": "DocumentReference.class",
        "max": "0"
      },
      {
        "path": "DocumentReference.author",
        "max": "0"
      },
      {
        "path": "DocumentReference.custodian",
        "max": "0"
      },
      {
        "path": "DocumentReference.authenticator",
        "max": "0"
      },
      {
        "path": "DocumentReference.created",
        "max": "0"
      },
      {
        "path": "DocumentReference.indexed",
        "min": 1
      },
      {
        "path": "DocumentReference.status",
        "min": 1
      },
      {
        "path": "DocumentReference.docStatus",
        "min": 1
      },
      {
        "path": "DocumentReference.docStatus.coding",
        "min": 1,
        "max": "1"
      },
      {
        "path": "DocumentReference.docStatus.coding.system",
        "max": "0"
      },
      {
        "path": "DocumentReference.docStatus.coding.version",
        "max": "0"
      },
      {
        "path": "DocumentReference.docStatus.coding.code",
        "min": 1
      },
      {
        "path": "DocumentReference.docStatus.coding.display",
        "max": "0"
      },
      {
        "path": "DocumentReference.docStatus.coding.userSelected",
        "max": "0"
      },
      {
        "path": "DocumentReference.docStatus.text",
        "max": "0"
      },
      {
        "path": "DocumentReference.relatesTo",
        "min": 0,
        "max": "1"
      },
      {
        "path": "DocumentReference.relatesTo.code",
        "min": 0,
        "max": "1"
      },
      {
        "path": "DocumentReference.relatesTo.target",
        "min": 0,
        "max": "1"
      },
      {
        "path": "DocumentReference.relatesTo.target.id",
        "max": "0"
      },
      {
        "path": "DocumentReference.relatesTo.target.reference",
        "min": 0,
        "max": "1",
        "maxLength": 36
      },
      {
        "path": "DocumentReference.relatesTo.target.display",
        "max": "0"
      },
      {
        "path": "DocumentReference.description",
        "max": "0"
      },
      {
        "path": "DocumentReference.securityLabel",
        "max": "0"
      },
      {
        "path": "DocumentReference.content",
        "min": 1,
        "max": "1"
      },
      {
        "path": "DocumentReference.content.attachment",
        "min": 1
      },
      {
        "path": "DocumentReference.content.attachment.contentType",
        "min": 1
      },
      {
        "path": "DocumentReference.content.attachment.language",
        "max": "0"
      },
      {
        "path": "DocumentReference.content.attachment.data",
        "min": 1
      },
      {
        "path": "DocumentReference.content.attachment.url",
        "max": "0"
      },
      {
        "path": "DocumentReference.content.attachment.size",
        "max": "0"
      },
      {
        "path": "DocumentReference.content.attachment.hash",
        "max": "0"
      },
      {
        "path": "DocumentReference.content.attachment.title",
        "min": 1
      },
      {
        "path": "DocumentReference.content.attachment.creation",
        "max": "0"
      },
      {
        "path": "DocumentReference.content.format",
        "max": "0"
      },
      {
        "path": "DocumentReference.context.encounter",
        "max": "0"
      },
      {
        "path": "DocumentReference.context.event",
        "max": "0"
      },
      {
        "path": "DocumentReference.context.period",
        "max": "0"
      },
      {
        "path": "DocumentReference.context.facilityType",
        "max": "0"
      },
      {
        "path": "DocumentReference.context.practiceSetting",
        "max": "0"
      },
      {
        "path": "DocumentReference.context.sourcePatientInfo",
        "max": "0"
      },
      {
        "path": "DocumentReference.context.related",
        "min": 0,
        "max": "1"
      },
      {
        "path": "DocumentReference.context.related.identifier",
        "max": "0"
      },
      {
        "path": "DocumentReference.context.related.ref",
        "min": 1
      },
      {
        "path": "DocumentReference.context.related.ref.id",
        "max": "0"
      },
      {
        "path": "DocumentReferencecontext.related.ref.reference",
        "min": 1,
        "maxLength": 36
      },
      {
        "path": "DocumentReference.context.related.ref.display",
        "max": "0"
      }
    ]
  }
}