{
  "resourceType": "StructureDefinition",
  "id": "ncr-ehr-data-document",
  "url": "http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-data-document",
  "name": "NcrEhrDataDocument",
  "status": "draft",
  "date": "2024-03-06T14:12:13.893908+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.status",
        "path": "DocumentReference.status",
        "fixedCode": "current"
      },
      {
        "id": "DocumentReference.date",
        "path": "DocumentReference.date",
        "min": 1
      },
      {
        "id": "DocumentReference.author",
        "path": "DocumentReference.author",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-healthcare-provider"
            ]
          }
        ]
      },
      {
        "id": "DocumentReference.description",
        "path": "DocumentReference.description",
        "min": 1
      },
      {
        "id": "DocumentReference.content.attachment.contentType",
        "path": "DocumentReference.content.attachment.contentType",
        "min": 1,
        "fixedCode": "application/json"
      },
      {
        "id": "DocumentReference.content.attachment.data",
        "path": "DocumentReference.content.attachment.data",
        "min": 1
      },
      {
        "id": "DocumentReference.context",
        "path": "DocumentReference.context",
        "min": 1
      },
      {
        "id": "DocumentReference.context.related",
        "path": "DocumentReference.context.related",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "DocumentReference.context.related:schema",
        "path": "DocumentReference.context.related",
        "sliceName": "schema",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-schema-document"
            ]
          }
        ]
      }
    ]
  }
}