### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/SupplyRequest.json
### ----------------------------------------------------
### -- Chunk 7 of 7
 work flows associated with the supply process.",
      "alias" : ["kind"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "SupplyRequestKind"
        }],
        "strength" : "example",
        "description" : "Category of supply request.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/supplyrequest-kind"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"
      },
      {
        "identity" : "v2",
        "map" : "N/A"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "SupplyRequest.priority",
      "path" : "SupplyRequest.priority",
      "short" : "routine | urgent | asap | stat",
      "definition" : "Indicates how quickly this SupplyRequest should be addressed with respect to other requests.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "meaningWhenMissing" : "If missing, this task should be performed with normal priority",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "RequestPriority"
        }],
        "strength" : "required",
        "description" : "Identifies the level of importance to be assigned to actioning the request.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/request-priority|4.0.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.priority"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.grade"
      },
      {
        "identity" : "v2",
        "map" : "TQ1.9"
      },
      {
        "identity" : "rim",
        "map" : ".priorityCode"
      }]
    },
    {
      "id" : "SupplyRequest.item[x]",
      "path" : "SupplyRequest.item[x]",
      "short" : "Medication, Substance, or Device requested to be supplied",
      "definition" : "The item that is requested to be supplied. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list.",
      "comment" : "Note that there's a difference between a prescription - an instruction to take a medication, along with a (sometimes) implicit supply, and an explicit request to supply, with no explicit instructions.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Medication",
        "http://hl7.org/fhir/StructureDefinition/Substance",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "SupplyRequestItem"
        }],
        "strength" : "example",
        "description" : "The item that was requested.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/supply-item"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.code"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "SupplyRequest.quantity",
      "path" : "SupplyRequest.quantity",
      "short" : "The requested amount of the item indicated",
      "definition" : "The amount that is being ordered of the indicated item.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Quantity"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".quantity"
      }]
    },
    {
      "id" : "SupplyRequest.parameter",
      "path" : "SupplyRequest.parameter",
      "short" : "Ordered item details",
      "definition" : "Specific parameters for the ordered item.  For example, the size of the indicated item.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.what[x]"
      },
      {
        "identity" : "v2",
        "map" : "Varies by domain"
      }]
    },
    {
      "id" : "SupplyRequest.parameter.code",
      "path" : "SupplyRequest.parameter.code",
      "short" : "Item 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"
      }]
    },
    {
      "id" : "SupplyRequest.parameter.value[x]",
      "path" : "SupplyRequest.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"
      }]
    },
    {
      "id" : "SupplyRequest.occurrence[x]",
      "path" : "SupplyRequest.occurrence[x]",
      "short" : "When the request should be fulfilled",
      "definition" : "When the request should be fulfilled.",
      "alias" : ["when",
      "timing"],
      "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"
      }]
    },
    {
      "id" : "SupplyRequest.authoredOn",
      "path" : "SupplyRequest.authoredOn",
      "short" : "When the request was made",
      "definition" : "When the request was made.",
      "alias" : ["date",
      "createdOn",
      "signedOn"],
      "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"
      }]
    },
    {
      "id" : "SupplyRequest.requester",
      "path" : "SupplyRequest.requester",
      "short" : "Individual making the request",
      "definition" : "The device, practitioner, etc. who initiated the request.",
      "alias" : ["author",
      "source"],
      "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/Patient",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "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" : "SupplyRequest.supplier",
      "path" : "SupplyRequest.supplier",
      "short" : "Who is intended to fulfill the request",
      "definition" : "Who is intended to fulfill the request.",
      "alias" : ["performer"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/HealthcareService"]
      }],
      "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" : "SupplyRequest.reasonCode",
      "path" : "SupplyRequest.reasonCode",
      "short" : "The reason why the supply item was requested",
      "definition" : "The reason why the supply item was requested.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "SupplyRequestReason"
        }],
        "strength" : "example",
        "description" : "The reason why the supply item was requested.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/supplyrequest-reason"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "ORC.16"
      },
      {
        "identity" : "rim",
        "map" : ".reasonCode"
      }]
    },
    {
      "id" : "SupplyRequest.reasonReference",
      "path" : "SupplyRequest.reasonReference",
      "short" : "The reason why the supply item was requested",
      "definition" : "The reason why the supply item was requested.",
      "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"]
      }],
      "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" : "SupplyRequest.deliverFrom",
      "path" : "SupplyRequest.deliverFrom",
      "short" : "The origin of the supply",
      "definition" : "Where the supply is expected to come from.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "PRT"
      },
      {
        "identity" : "rim",
        "map" : ".participation"
      }]
    },
    {
      "id" : "SupplyRequest.deliverTo",
      "path" : "SupplyRequest.deliverTo",
      "short" : "The destination of the supply",
      "definition" : "Where the supply is destined to go.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization",
        "http://hl7.org/fhir/StructureDefinition/Location",
        "http://hl7.org/fhir/StructureDefinition/Patient"]
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "PRT"
      },
      {
        "identity" : "rim",
        "map" : ".participation"
      }]
    }]
  }
}


