{
  "resourceType": "StructureDefinition",
  "id": "zib-MedicalDeviceRequest",
  "url": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceRequest",
  "version": "2.1.3",
  "name": "Zib MedicalDevice Request",
  "title": "HCIM MedicalDevice Request",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "email",
          "value": "info@nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "MedicalDevice Request as defined by the Dutch Health and Care Information model for PlannedCareActivity (Dutch: Zorginformatiebouwsteen or ZIB) version 3.1, release 2017.",
  "purpose": "Recording planned appointments, referrals, treatments, diagnostic procedures, open orders and orders of which the results are not yet known gives every recipient, user or healthcare facility insight in the planned healthcare for this patient. This can prevent situations in which diagnostics and treatment can conflict with each other.\r\nThis will give the recipient the option to place an order, cancel the order or act in any other way in accordance with their own policy.\r\nFor orders that do not yet have results, the recipient is informed of the fact that potentially relevant results will be made available (which have to be requested).",
  "copyright": "CC0",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "hcim-plannedcareactivityfortransfer-v1.2.1-2015EN",
      "uri": "https://zibs.nl/wiki/PlannedCareActivityForTransfer-v1.2.1(2015EN)",
      "name": "HCIM PlannedCareActivityForTransfer-v1.2.1(2015EN)"
    },
    {
      "identity": "hcim-plannedcareactivityfortransfer-v3.0-2016EN",
      "uri": "https://zibs.nl/wiki/PlannedCareActivityForTransfer-v3.0(2016EN)",
      "name": "HCIM PlannedCareActivityForTransfer-v3.0(2016EN)"
    },
    {
      "identity": "hcim-plannedcareactivityfortransfer-v3.1-2017EN",
      "uri": "https://zibs.nl/wiki/PlannedCareActivityForTransfer-v3.1(2017EN)",
      "name": "HCIM PlannedCareActivityForTransfer-v3.1(2017EN)"
    },
    {
      "identity": "hcim-medicaldevice-v1.2-2015EN",
      "uri": "https://zibs.nl/wiki/MedicalDevice-v1.2(2015EN)",
      "name": "HCIM MedicalDevice-v1.2(2015EN)"
    },
    {
      "identity": "hcim-medicaldevice-v3.0-2016EN",
      "uri": "https://zibs.nl/wiki/MedicalDevice-v3.0(2016EN)",
      "name": "HCIM MedicalDevice-v3.0(2016EN)"
    },
    {
      "identity": "hcim-medicaldevice-v3.1-2017EN",
      "uri": "https://zibs.nl/wiki/MedicalDevice-v3.1(2017EN)",
      "name": "HCIM MedicalDevice-v3.1(2017EN)"
    },
    {
      "identity": "hcim-healthprofessional-v1.2.1-2015EN",
      "uri": "https://zibs.nl/wiki/HealthProfessional-v1.2.1(2015EN)",
      "name": "HCIM HealthProfessional-v1.2.1(2015EN)"
    },
    {
      "identity": "hcim-healthprofessional-v3.0-2016EN",
      "uri": "https://zibs.nl/wiki/HealthProfessional-v3.0(2016EN)",
      "name": "HCIM HealthProfessional-v3.0(2016EN)"
    },
    {
      "identity": "hcim-healthprofessional-v3.2-2017EN",
      "uri": "https://zibs.nl/wiki/HealthProfessional-v3.2(2017EN)",
      "name": "HCIM HealthProfessional-v3.2(2017EN)"
    },
    {
      "identity": "hcim-basicelements-v1.0-2017EN",
      "uri": "https://zibs.nl/wiki/BasicElements-v1.0(2017EN)",
      "name": "HCIM BasicElements-v1.0(2017EN)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "DeviceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DeviceRequest",
        "path": "DeviceRequest",
        "mapping": [
          {
            "identity": "hcim-plannedcareactivityfortransfer-v1.2.1-2015EN",
            "map": "NL-CM:16.1.7",
            "comment": "MedicalAid"
          },
          {
            "identity": "hcim-plannedcareactivityfortransfer-v3.0-2016EN",
            "map": "NL-CM:16.1.7",
            "comment": "MedicalAid"
          },
          {
            "identity": "hcim-plannedcareactivityfortransfer-v3.1-2017EN",
            "map": "NL-CM:16.1.7",
            "comment": "MedicalDevice"
          }
        ]
      },
      {
        "id": "DeviceRequest.identifier",
        "path": "DeviceRequest.identifier",
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.6",
            "comment": "IdentificationNumber"
          }
        ]
      },
      {
        "id": "DeviceRequest.status.extension",
        "path": "DeviceRequest.status.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DeviceRequest.status.extension:orderStatus",
        "path": "DeviceRequest.status.extension",
        "sliceName": "orderStatus",
        "short": "OrderStatus",
        "definition": "The status of the order.",
        "alias": [
          "OrderStatus"
        ],
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/code-specification"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "hcim-plannedcareactivityfortransfer-v1.2.1-2015EN",
            "map": "NL-CM:16.1.9",
            "comment": "OrderStatus"
          },
          {
            "identity": "hcim-plannedcareactivityfortransfer-v3.0-2016EN",
            "map": "NL-CM:16.1.9",
            "comment": "OrderStatus"
          },
          {
            "identity": "hcim-plannedcareactivityfortransfer-v3.1-2017EN",
            "map": "NL-CM:16.1.9",
            "comment": "OrderStatus"
          }
        ]
      },
      {
        "id": "DeviceRequest.status.extension:orderStatus.valueCodeableConcept:valueCodeableConcept",
        "path": "DeviceRequest.status.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "binding": {
          "strength": "extensible",
          "description": "The status of the order."
        }
      },
      {
        "id": "DeviceRequest.code[x]",
        "path": "DeviceRequest.code[x]",
        "short": "ProductType",
        "definition": "The code of the type of product.",
        "alias": [
          "ProductType"
        ],
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct"
            ]
          },
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DeviceRequestCode"
            }
          ],
          "strength": "extensible",
          "description": "ProductTypeCodelist"
        },
        "mapping": [
          {
            "identity": "hcim-medicaldevice-v1.2-2015EN",
            "map": "NL-CM:10.1.3",
            "comment": "ProductType"
          },
          {
            "identity": "hcim-medicaldevice-v3.0-2016EN",
            "map": "NL-CM:10.1.3",
            "comment": "ProductType"
          },
          {
            "identity": "hcim-medicaldevice-v3.1-2017EN",
            "map": "NL-CM:10.1.3",
            "comment": "ProductType"
          }
        ]
      },
      {
        "id": "DeviceRequest.subject",
        "path": "DeviceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Group"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-location"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.11",
            "comment": "Subject"
          }
        ]
      },
      {
        "id": "DeviceRequest.context",
        "path": "DeviceRequest.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://nictiz.nl/fhir/StructureDefinition/zib-Encounter"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare"
            ]
          }
        ]
      },
      {
        "id": "DeviceRequest.occurrence[x]",
        "path": "DeviceRequest.occurrence[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.14",
            "comment": "DateTime"
          }
        ]
      },
      {
        "id": "DeviceRequest.occurrence[x]:occurrencePeriod",
        "path": "DeviceRequest.occurrence[x]",
        "sliceName": "occurrencePeriod",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "DeviceRequest.occurrence[x]:occurrencePeriod.start",
        "path": "DeviceRequest.occurrence[x].start",
        "short": "StartDate",
        "definition": "Planned or requested date. Clinical reminders can be used to indicate from when the procedure can take place. A vague date (such as only the month and year) is permitted.",
        "alias": [
          "BeginDatum"
        ],
        "mapping": [
          {
            "identity": "hcim-plannedcareactivityfortransfer-v1.2.1-2015EN",
            "map": "NL-CM:16.1.10",
            "comment": "StartDate"
          },
          {
            "identity": "hcim-plannedcareactivityfortransfer-v3.0-2016EN",
            "map": "NL-CM:16.1.10",
            "comment": "StartDate"
          },
          {
            "identity": "hcim-plannedcareactivityfortransfer-v3.1-2017EN",
            "map": "NL-CM:16.1.10",
            "comment": "StartDate"
          }
        ]
      },
      {
        "id": "DeviceRequest.occurrence[x]:occurrencePeriod.end",
        "path": "DeviceRequest.occurrence[x].end",
        "short": "EndDate",
        "definition": "The planned end date of the procedure can be included as well if needed. Depending on the type of procedure, this can also be used to indicate before which time it has to have been completed.",
        "alias": [
          "EindDatum"
        ],
        "mapping": [
          {
            "identity": "hcim-plannedcareactivityfortransfer-v1.2.1-2015EN",
            "map": "NL-CM:16.1.11",
            "comment": "EndDate"
          },
          {
            "identity": "hcim-plannedcareactivityfortransfer-v3.0-2016EN",
            "map": "NL-CM:16.1.11",
            "comment": "EndDate"
          },
          {
            "identity": "hcim-plannedcareactivityfortransfer-v3.1-2017EN",
            "map": "NL-CM:16.1.11",
            "comment": "EndDate"
          }
        ]
      },
      {
        "id": "DeviceRequest.occurrence[x]:occurrenceDateTime",
        "path": "DeviceRequest.occurrence[x]",
        "sliceName": "occurrenceDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "DeviceRequest.occurrence[x]:occurrenceTiming",
        "path": "DeviceRequest.occurrence[x]",
        "sliceName": "occurrenceTiming",
        "type": [
          {
            "code": "Timing"
          }
        ]
      },
      {
        "id": "DeviceRequest.requester",
        "path": "DeviceRequest.requester",
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.7",
            "comment": "Author"
          }
        ]
      },
      {
        "id": "DeviceRequest.requester.agent",
        "path": "DeviceRequest.requester.agent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
            ]
          }
        ]
      },
      {
        "id": "DeviceRequest.requester.agent.extension",
        "path": "DeviceRequest.requester.agent.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DeviceRequest.requester.agent.extension:practitionerRole",
        "path": "DeviceRequest.requester.agent.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
            ]
          }
        ]
      },
      {
        "id": "DeviceRequest.requester.onBehalfOf",
        "path": "DeviceRequest.requester.onBehalfOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
            ]
          }
        ]
      },
      {
        "id": "DeviceRequest.performerType.coding",
        "path": "DeviceRequest.performerType.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DeviceRequest.performerType.coding:healthProfessionalRole",
        "path": "DeviceRequest.performerType.coding",
        "sliceName": "healthProfessionalRole",
        "short": "HealthProfessionalRole",
        "definition": "The role the healthcare provider fulfils in the healthcare process. For healthcare providers, this could be for example main practitioner, referrer or general practitioner.",
        "alias": [
          "ZorgverlenerRol"
        ],
        "binding": {
          "strength": "required"
        },
        "mapping": [
          {
            "identity": "hcim-healthprofessional-v1.2.1-2015EN",
            "map": "NL-CM:17.1.5",
            "comment": "HealthcareProviderRole"
          },
          {
            "identity": "hcim-healthprofessional-v3.0-2016EN",
            "map": "NL-CM:17.1.5",
            "comment": "HealthcareProviderRole"
          },
          {
            "identity": "hcim-healthprofessional-v3.2-2017EN",
            "map": "NL-CM:17.1.5",
            "comment": "HealthProfessionalRole"
          }
        ]
      },
      {
        "id": "DeviceRequest.performer",
        "path": "DeviceRequest.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-healthcareservice"
            ]
          }
        ]
      },
      {
        "id": "DeviceRequest.performer.extension",
        "path": "DeviceRequest.performer.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DeviceRequest.performer.extension:practitionerRole",
        "path": "DeviceRequest.performer.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
            ]
          }
        ]
      },
      {
        "id": "DeviceRequest.note.author[x]",
        "path": "DeviceRequest.note.author[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
            ]
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "DeviceRequest.note.author[x]:authorReference",
        "path": "DeviceRequest.note.author[x]",
        "sliceName": "authorReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "DeviceRequest.note.author[x]:authorReference.extension",
        "path": "DeviceRequest.note.author[x].extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DeviceRequest.note.author[x]:authorReference.extension:practitionerRole",
        "path": "DeviceRequest.note.author[x].extension",
        "sliceName": "practitionerRole",
        "comment": "Relevant only in combination with Reference(Practitioner)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
            ]
          }
        ]
      },
      {
        "id": "DeviceRequest.note.author[x]:authorString",
        "path": "DeviceRequest.note.author[x]",
        "sliceName": "authorString",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}