{
  "resourceType": "StructureDefinition",
  "url": "https://aicentre.co.uk/flip/DocumentReference",
  "name": "FLIPDocumentReference",
  "status": "draft",
  "date": "2022-11-25T10:22:19.6408127+00:00",
  "fhirVersion": "4.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",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier",
        "path": "DocumentReference.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.identifier.use",
        "path": "DocumentReference.identifier.use",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.type",
        "path": "DocumentReference.identifier.type",
        "min": 1
      },
      {
        "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,
        "fixedUri": "https://aicentre.co.uk/flip/DocMan"
      },
      {
        "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,
        "fixedCode": "DOCM"
      },
      {
        "id": "DocumentReference.identifier.type.coding.display",
        "path": "DocumentReference.identifier.type.coding.display",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.type.coding.userSelected",
        "path": "DocumentReference.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.type.text",
        "path": "DocumentReference.identifier.type.text",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier.system",
        "path": "DocumentReference.identifier.system",
        "max": "0"
      },
      {
        "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.status",
        "path": "DocumentReference.status",
        "fixedCode": "current"
      },
      {
        "id": "DocumentReference.docStatus",
        "path": "DocumentReference.docStatus",
        "min": 1,
        "fixedCode": "final"
      },
      {
        "id": "DocumentReference.type",
        "path": "DocumentReference.type",
        "min": 1
      },
      {
        "id": "DocumentReference.type.coding",
        "path": "DocumentReference.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.type.coding.system",
        "path": "DocumentReference.type.coding.system",
        "min": 1,
        "fixedUri": "https://aicentre.co.uk/flip/DocMan"
      },
      {
        "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",
        "path": "DocumentReference.type.coding.display",
        "min": 1
      },
      {
        "id": "DocumentReference.type.coding.userSelected",
        "path": "DocumentReference.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DocumentReference.type.text",
        "path": "DocumentReference.type.text",
        "max": "0"
      },
      {
        "id": "DocumentReference.category",
        "path": "DocumentReference.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.category.coding",
        "path": "DocumentReference.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.category.coding.system",
        "path": "DocumentReference.category.coding.system",
        "min": 1,
        "fixedUri": "https://aicentre.co.uk/flip/DocMan"
      },
      {
        "id": "DocumentReference.category.coding.version",
        "path": "DocumentReference.category.coding.version",
        "max": "0"
      },
      {
        "id": "DocumentReference.category.coding.code",
        "path": "DocumentReference.category.coding.code",
        "min": 1
      },
      {
        "id": "DocumentReference.category.coding.display",
        "path": "DocumentReference.category.coding.display",
        "min": 1
      },
      {
        "id": "DocumentReference.category.coding.userSelected",
        "path": "DocumentReference.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DocumentReference.category.text",
        "path": "DocumentReference.category.text",
        "max": "0"
      },
      {
        "id": "DocumentReference.subject",
        "path": "DocumentReference.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "DocumentReference.subject.reference",
        "path": "DocumentReference.subject.reference",
        "min": 1
      },
      {
        "id": "DocumentReference.subject.type",
        "path": "DocumentReference.subject.type",
        "max": "0"
      },
      {
        "id": "DocumentReference.subject.identifier",
        "path": "DocumentReference.subject.identifier",
        "max": "0"
      },
      {
        "id": "DocumentReference.subject.identifier.use",
        "path": "DocumentReference.subject.identifier.use",
        "max": "0"
      },
      {
        "id": "DocumentReference.subject.identifier.type",
        "path": "DocumentReference.subject.identifier.type",
        "max": "0"
      },
      {
        "id": "DocumentReference.subject.identifier.type.coding",
        "path": "DocumentReference.subject.identifier.type.coding",
        "max": "0"
      },
      {
        "id": "DocumentReference.date",
        "path": "DocumentReference.date",
        "min": 1
      },
      {
        "id": "DocumentReference.author",
        "path": "DocumentReference.author",
        "max": "0"
      },
      {
        "id": "DocumentReference.authenticator",
        "path": "DocumentReference.authenticator",
        "max": "0"
      },
      {
        "id": "DocumentReference.custodian",
        "path": "DocumentReference.custodian",
        "max": "0"
      },
      {
        "id": "DocumentReference.relatesTo",
        "path": "DocumentReference.relatesTo",
        "max": "0"
      },
      {
        "id": "DocumentReference.description",
        "path": "DocumentReference.description",
        "max": "0"
      },
      {
        "id": "DocumentReference.securityLabel",
        "path": "DocumentReference.securityLabel",
        "max": "0"
      },
      {
        "id": "DocumentReference.content",
        "path": "DocumentReference.content",
        "max": "1"
      },
      {
        "id": "DocumentReference.content.attachment.contentType",
        "path": "DocumentReference.content.attachment.contentType",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.language",
        "path": "DocumentReference.content.attachment.language",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.data",
        "path": "DocumentReference.content.attachment.data",
        "min": 1
      },
      {
        "id": "DocumentReference.content.attachment.url",
        "path": "DocumentReference.content.attachment.url",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.size",
        "path": "DocumentReference.content.attachment.size",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.hash",
        "path": "DocumentReference.content.attachment.hash",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.title",
        "path": "DocumentReference.content.attachment.title",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.creation",
        "path": "DocumentReference.content.attachment.creation",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.format",
        "path": "DocumentReference.content.format",
        "max": "0"
      },
      {
        "id": "DocumentReference.context",
        "path": "DocumentReference.context",
        "max": "0"
      }
    ]
  }
}