### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/DeviceRequest.json
### ----------------------------------------------------
### -- Chunk 9 of 9
    {
      "id" : "DeviceRequest.parameter",
      "path" : "DeviceRequest.parameter",
      "short" : "Device details",
      "definition" : "Specific parameters for the ordered item.  For example, the prism value for lenses.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "Varies by domain"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      },
      {
        "identity" : "quick",
        "map" : "DeviceUse.device"
      }]
    },
    {
      "id" : "DeviceRequest.parameter.code",
      "path" : "DeviceRequest.parameter.code",
      "short" : "Device detail",
      "definition" : "A code or string that identifies the device detail being asserted.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ParameterCode"
        }],
        "strength" : "example",
        "description" : "A code that identifies the device detail."
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "Varies by domain"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      },
      {
        "identity" : "quick",
        "map" : "DeviceUse.device"
      }]
    },
    {
      "id" : "DeviceRequest.parameter.value[x]",
      "path" : "DeviceRequest.parameter.value[x]",
      "short" : "Value of detail",
      "definition" : "The value of the device detail.",
      "comment" : "Range means device should have a value that falls somewhere within the specified range.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Quantity"
      },
      {
        "code" : "Range"
      },
      {
        "code" : "boolean"
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "Varies by domain"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      },
      {
        "identity" : "quick",
        "map" : "DeviceUse.device"
      }]
    },
    {
      "id" : "DeviceRequest.subject",
      "path" : "DeviceRequest.subject",
      "short" : "Focus of request",
      "definition" : "The patient who will use the device.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Group",
        "http://hl7.org/fhir/StructureDefinition/Location",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "Accompanying PID segment"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=SBJ].role"
      },
      {
        "identity" : "quick",
        "map" : "ClinicalStatement.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "DeviceRequest.encounter",
      "path" : "DeviceRequest.encounter",
      "short" : "Encounter motivating request",
      "definition" : "An encounter that provides additional context in which this request is made.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.encounter"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.context"
      },
      {
        "identity" : "v2",
        "map" : "Accompanying PV1"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"
      },
      {
        "identity" : "quick",
        "map" : "ClinicalStatement.encounter"
      }]
    },
    {
      "id" : "DeviceRequest.occurrence[x]",
      "path" : "DeviceRequest.occurrence[x]",
      "short" : "Desired time or schedule for use",
      "definition" : "The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      },
      {
        "code" : "Period"
      },
      {
        "code" : "Timing"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.planned"
      },
      {
        "identity" : "v2",
        "map" : "Accompanying TQ1/TQ2 segments"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime"
      },
      {
        "identity" : "quick",
        "map" : "DeviceUse.applicationSchedule"
      }]
    },
    {
      "id" : "DeviceRequest.authoredOn",
      "path" : "DeviceRequest.authoredOn",
      "short" : "When recorded",
      "definition" : "When the request transitioned to being actionable.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.authoredOn"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      },
      {
        "identity" : "v2",
        "map" : "ORC.9"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT].time"
      },
      {
        "identity" : "quick",
        "map" : "ClinicalStatement.statementDateTime"
      }]
    },
    {
      "id" : "DeviceRequest.requester",
      "path" : "DeviceRequest.requester",
      "short" : "Who/what is requesting diagnostics",
      "definition" : "The individual who initiated the request and has responsibility for its activation.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.requester"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.author"
      },
      {
        "identity" : "v2",
        "map" : "ORC.12"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT].role"
      }]
    },
    {
      "id" : "DeviceRequest.performerType",
      "path" : "DeviceRequest.performerType",
      "short" : "Filler role",
      "definition" : "Desired type of performer for doing the diagnostic testing.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DeviceRequestParticipantRole"
        }],
        "strength" : "example",
        "description" : "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/participant-role"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.performerType"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      },
      {
        "identity" : "v2",
        "map" : "PRT"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code"
      }]
    },
    {
      "id" : "DeviceRequest.performer",
      "path" : "DeviceRequest.performer",
      "short" : "Requested Filler",
      "definition" : "The desired performer for doing the diagnostic testing.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/CareTeam",
        "http://hl7.org/fhir/StructureDefinition/HealthcareService",
        "http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.performer"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      },
      {
        "identity" : "v2",
        "map" : "PRT"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]"
      }]
    },
    {
      "id" : "DeviceRequest.reasonCode",
      "path" : "DeviceRequest.reasonCode",
      "short" : "Coded Reason for request",
      "definition" : "Reason or justification for the use of this device.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DeviceRequestReason"
        }],
        "strength" : "example",
        "description" : "Diagnosis or problem codes justifying the reason for requesting the device.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/condition-code"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "ORC.16"
      },
      {
        "identity" : "rim",
        "map" : ".reasonCode"
      },
      {
        "identity" : "quick",
        "map" : "Action.indication.reason"
      }]
    },
    {
      "id" : "DeviceRequest.reasonReference",
      "path" : "DeviceRequest.reasonReference",
      "short" : "Linked Reason for request",
      "definition" : "Reason or justification for the use of this device.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Observation",
        "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
        "http://hl7.org/fhir/StructureDefinition/DocumentReference"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonReference"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "ORC.16"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=RSON].target"
      }]
    },
    {
      "id" : "DeviceRequest.insurance",
      "path" : "DeviceRequest.insurance",
      "short" : "Associated insurance coverage",
      "definition" : "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Coverage",
        "http://hl7.org/fhir/StructureDefinition/ClaimResponse"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.insurance"
      },
      {
        "identity" : "v2",
        "map" : "IN1/IN2"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COVBY].target"
      }]
    },
    {
      "id" : "DeviceRequest.supportingInfo",
      "path" : "DeviceRequest.supportingInfo",
      "short" : "Additional clinical information",
      "definition" : "Additional clinical information about the patient that may influence the request fulfilment.  For example, this may include where on the subject's body the device will be used (i.e. the target site).",
      "requirements" : "Knowing where the device is targeted is important for tracking if multiple sites are possible.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.supportingInfo"
      },
      {
        "identity" : "v2",
        "map" : "Accompanying segments"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=PERT].target"
      }]
    },
    {
      "id" : "DeviceRequest.note",
      "path" : "DeviceRequest.note",
      "short" : "Notes or comments",
      "definition" : "Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Annotation"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.note"
      },
      {
        "identity" : "v2",
        "map" : "NTE"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]"
      },
      {
        "identity" : "quick",
        "map" : "ClinicalStatement.additionalText"
      }]
    },
    {
      "id" : "DeviceRequest.relevantHistory",
      "path" : "DeviceRequest.relevantHistory",
      "short" : "Request provenance",
      "definition" : "Key events in the history of the request.",
      "comment" : "This might not include provenances for all versions of the request - only those deemed \"relevant\" or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a \"relevant\" change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Provenance"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.relevantHistory"
      },
      {
        "identity" : "v2",
        "map" : "N/A"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"
      }]
    }]
  }
}


