{
  "resourceType": "StructureDefinition",
  "id": "aaeba1e7-d630-4a64-96b7-c8bb6c011a60",
  "meta": {
    "lastUpdated": "2017-09-19T09:09:49.937+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "oo"
    }
  ],
  "url": "http://helse-nord.no/FHIR/profiles/CareProvision.ProcedureRequest/ProcedureRequest",
  "version": "1.0",
  "name": "ProcedureRequest",
  "title": "ProcedureRequest",
  "status": "draft",
  "date": "2017-11-30",
  "publisher": "Helse Nord IKT",
  "description": "ProcedureRequest",
  "purpose": "ProcedureRequest",
  "fhirVersion": "3.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "ProcedureRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ProcedureRequest",
        "path": "ProcedureRequest",
        "definition": "A record of a request for diagnostic investigations, treatments, or operations to be performed. <0>",
        "comment": "No comment"
      },
      {
        "id": "ProcedureRequest.identifier",
        "path": "ProcedureRequest.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "openAtEnd"
        },
        "min": 1,
        "max": "2"
      },
      {
        "id": "ProcedureRequest.identifier:requsitionid",
        "path": "ProcedureRequest.identifier",
        "sliceName": "requsitionid",
        "short": "DIPS: requsition id",
        "definition": "Identifiers assigned to this order instance by the orderer and/or  the receiver and/or order fulfiller.",
        "max": "2"
      },
      {
        "id": "ProcedureRequest.identifier:requsitionid.use",
        "path": "ProcedureRequest.identifier.use",
        "short": "DIPS: 'secondary' (usual | official | temp | secondary (If known))",
        "fixedCode": "secondary"
      },
      {
        "id": "ProcedureRequest.identifier:requsitionid.type",
        "path": "ProcedureRequest.identifier.type",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier:requsitionid.system",
        "path": "ProcedureRequest.identifier.system",
        "short": "DIPS: OID for DIPS requisition id",
        "fixedUri": "urn:oid:1.3.6.1.4.1.9038.60.1"
      },
      {
        "id": "ProcedureRequest.identifier:requsitionid.value",
        "path": "ProcedureRequest.identifier.value",
        "short": "DIPS: requisition id",
        "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986."
      },
      {
        "id": "ProcedureRequest.identifier:requsitionid.period",
        "path": "ProcedureRequest.identifier.period",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier:requsitionid.assigner",
        "path": "ProcedureRequest.identifier.assigner",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier:requisitionnumber",
        "path": "ProcedureRequest.identifier",
        "sliceName": "requisitionnumber",
        "short": "DIPS: requisition number",
        "max": "1"
      },
      {
        "id": "ProcedureRequest.identifier:requisitionnumber.use",
        "path": "ProcedureRequest.identifier.use",
        "short": "DIPS: 'official' (usual | official | temp | secondary (If known))",
        "fixedCode": "official"
      },
      {
        "id": "ProcedureRequest.identifier:requisitionnumber.type",
        "path": "ProcedureRequest.identifier.type",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier:requisitionnumber.system",
        "path": "ProcedureRequest.identifier.system",
        "short": "DIPS: OID for DIPS requisition number",
        "definition": "Establishes the namespace in which set of possible id values is unique.",
        "fixedUri": "urn:oid:1.3.6.1.4.1.9038.60.2"
      },
      {
        "id": "ProcedureRequest.identifier:requisitionnumber.value",
        "path": "ProcedureRequest.identifier.value",
        "short": "DIPS: requisition number",
        "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986."
      },
      {
        "id": "ProcedureRequest.identifier:requisitionnumber.period",
        "path": "ProcedureRequest.identifier.period",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.identifier:requisitionnumber.assigner",
        "path": "ProcedureRequest.identifier.assigner",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.definition",
        "path": "ProcedureRequest.definition",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.basedOn",
        "path": "ProcedureRequest.basedOn",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.replaces",
        "path": "ProcedureRequest.replaces",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.requisition",
        "path": "ProcedureRequest.requisition",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.status",
        "path": "ProcedureRequest.status",
        "short": "DIPS: External report status. Mapped from code list 3431 ROS-EKSTERNSTATUS (proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed)",
        "definition": "The status of the order.\r\n\r\nMapping from 3431 ROS-EKSTERNSTATUS:\r\n223587 Ferdig       'final'\r\n223589 Foreløpig    'partial'\r\n223591 IG  \r\n223593 IF\r\n263295 Revidert     'appended'\r\n263297 Foreløpig    'partial'\r\n263299 Endelig      'final'\r\n263301 Tillegg      'appended'\r\n263303 Henv.Reg.\r\n263305 Pro.RegPla\r\n263307 Tild.Time\r\n263309 Und.Gjen.\r\n263311 Diktert\r\n263313 Skr.UsFor\r\n263315 Signert\r\n263317 Korrigert    'corrected'\r\n263319 Sign/Korr    'corrected'\r\n263321 Us.slettet   'cancelled'"
      },
      {
        "id": "ProcedureRequest.priority",
        "path": "ProcedureRequest.priority",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.doNotPerform",
        "path": "ProcedureRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.category",
        "path": "ProcedureRequest.category",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.code.coding",
        "path": "ProcedureRequest.code.coding",
        "short": "DIPS: requested tests"
      },
      {
        "id": "ProcedureRequest.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ProcedureRequest.code.text",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.subject",
        "path": "ProcedureRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://helse-nord.no/FHIR/profiles/Clinical.Patient/Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.context",
        "path": "ProcedureRequest.context",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.occurrence[x]",
        "path": "ProcedureRequest.occurrence[x]",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.asNeeded[x]",
        "path": "ProcedureRequest.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.authoredOn",
        "path": "ProcedureRequest.authoredOn",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.requester.agent",
        "path": "ProcedureRequest.requester.agent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://helse-nord.no/FHIR/profiles/Clinical.Practitioner/Practitioner"
          }
        ]
      },
      {
        "id": "ProcedureRequest.requester.onBehalfOf",
        "path": "ProcedureRequest.requester.onBehalfOf",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.performerType",
        "path": "ProcedureRequest.performerType",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.performer",
        "path": "ProcedureRequest.performer",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.reasonCode",
        "path": "ProcedureRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.reasonReference",
        "path": "ProcedureRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.supportingInfo",
        "path": "ProcedureRequest.supportingInfo",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.specimen",
        "path": "ProcedureRequest.specimen",
        "short": "DIPS: analysed subjects as contained resources",
        "definition": "One or more specimens that the diagnostic investigation is about.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://helse-nord.no/FHIR/profiles/Clinical.Specimen/Specimen",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.bodySite",
        "path": "ProcedureRequest.bodySite",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.note",
        "path": "ProcedureRequest.note",
        "max": "1"
      },
      {
        "id": "ProcedureRequest.note.author[x]",
        "path": "ProcedureRequest.note.authorReference",
        "type": [
          {
            "code": "Reference",
            "profile": "http://helse-nord.no/FHIR/profiles/Clinical.Practitioner/Practitioner",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.note.time",
        "path": "ProcedureRequest.note.time",
        "max": "0"
      },
      {
        "id": "ProcedureRequest.relevantHistory",
        "path": "ProcedureRequest.relevantHistory",
        "max": "0"
      }
    ]
  }
}