{
  "resourceType": "StructureDefinition",
  "id": "5be5369f-3d62-45fe-8133-ef9c022a1e7b",
  "meta": {
    "lastUpdated": "2020-02-10T16:41:58.495+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/PrescriptionItem",
  "name": "PrescriptionItem",
  "status": "draft",
  "date": "2020-02-10T16:41:55.500049+00:00",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "quick",
      "uri": "http://siframework.org/cqf",
      "name": "Quality Improvement and Clinical Knowledge (QUICK)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.id",
        "path": "ServiceRequest.id",
        "example": [
          {
            "label": "example contained id",
            "valueId": "order1"
          }
        ]
      },
      {
        "id": "ServiceRequest.basedOn.reference",
        "path": "ServiceRequest.basedOn.reference",
        "fixedString": "#DialysisOrder"
      },
      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "fixedCode": "active"
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "fixedCode": "instance-order"
      },
      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "binding": {
          "strength": "required",
          "description": "Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. The MDC (Medical Device Code) valueset is required for communication with a Fresenius dialysis machine.",
          "valueSet": "urn:iso:std:iso:11073:10101"
        }
      },
      {
        "id": "ServiceRequest.orderDetail.text",
        "path": "ServiceRequest.orderDetail.text",
        "definition": "This field is used to hold string data when the prescription item is not a numerical quantity."
      },
      {
        "id": "ServiceRequest.quantity[x]",
        "path": "ServiceRequest.quantity[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      }
    ]
  }
}