Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Example ExampleScenario/example-laborder (JSON)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw JSON (canonical form + also see JSON Format Specification)

Example of examplescenario - Lab order tracking with Task

{
  "resourceType" : "ExampleScenario",
  "id" : "example-laborder",
  "text" : {
    "status" : "additional",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p> \n        <b> ExampleScenario - Lab order tracking with Task</b> \n        <a name=\"example-laborder\"> </a> \n      </p> \n      <div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\">\n        <p style=\"margin-bottom: 0px\">Resource ExampleScenario &quot;example-laborder&quot; </p> \n      </div> \n      <p> \n        <b> status</b> : draft\n      </p> \n      <p> \n        <b> purpose</b> : Purpose: this serves to demonstrate a scenario that uses service requests and Task resources to establish a handshake for order tracking.\n      </p> \n     \n      <img src=\"./examplescenario-example-laborder.png\" alt=\"ExampleScenario diagram - IHE MMA example\"/>\n    </div>"
  },
  "name" : "LabOrderTrackingWithTask",
  "title" : "Lab order tracking with Task",
  "status" : "draft",
  "description" : "In this example, the clinician creates an order in the CPOE. Then a Task is created and updated by both the CPOE and the Lab system...",
  "purpose" : "Purpose: this serves to demonstrate a scenario that uses service requests and Task resources to establish a handshake for order tracking.",
  "actor" : [{
    "key" : "Clin",
    "type" : "person",
    "title" : "Clinician",
    "description" : "Clinician"
  },
  {
    "key" : "CPOE",
    "type" : "system",
    "title" : "CPOE",
    "description" : "CPOE"
  },
  {
    "key" : "EMR",
    "type" : "system",
    "title" : "EMR",
    "description" : "EMR"
  },
  {
    "key" : "LabMan",
    "type" : "person",
    "title" : "Lab Man",
    "description" : "Lab Person"
  },
  {
    "key" : "Lab",
    "type" : "system",
    "title" : "Lab",
    "description" : "Lab"
  }],
  "instance" : [{
    "key" : "req1",
    "structureType" : {
      "system" : "http://hl7.org/fhir/fhir-types",
      "code" : "ServiceRequest"
    },
    "title" : "Request for a lab procedure",
    "description" : "Bla",
    "version" : [{
      "key" : "req1-v1",
      "title" : "v1- initial",
      "description" : "Initial order"
    },
    {
      "key" : "req1-v2",
      "title" : "v2 - in progress",
      "description" : "Order in progress"
    },
    {
      "key" : "req1-v3",
      "title" : "v3 - completed",
      "description" : "Order completed"
    }]
  },
  {
    "key" : "task1",
    "structureType" : {
      "system" : "http://hl7.org/fhir/fhir-types",
      "code" : "Task"
    },
    "title" : "Task",
    "description" : "The task that handles the status updates...",
    "version" : [{
      "key" : "task1-v1",
      "title" : "v1 - created",
      "description" : "Initially created"
    },
    {
      "key" : "task1-v2",
      "title" : "v2 - accepted",
      "description" : "Accepted"
    },
    {
      "key" : "task1-v3",
      "title" : "v3 - in progress",
      "description" : "In progress"
    },
    {
      "key" : "task1-v4",
      "title" : "v4 - completed",
      "description" : "Completed"
    }]
  },
  {
    "key" : "req.lab1",
    "structureType" : {
      "system" : "http://hl7.org/fhir/fhir-types",
      "code" : "ServiceRequest"
    },
    "title" : "Internal lab request",
    "description" : "Lab's internal request for the procedure",
    "version" : [{
      "key" : "req.lab1-v1",
      "title" : "v1 - created",
      "description" : "Order in progress"
    },
    {
      "key" : "req.lab1-v2",
      "title" : "v2 - in progress",
      "description" : "Order in progress"
    },
    {
      "key" : "req.lab1-v3",
      "title" : "v3 - completed",
      "description" : "Order completed"
    }]
  }],
  "process" : [{
    "title" : "Lab order tracking with Task",
    "description" : "Lab order, status updates handled with Task between CPOE, EMR and Lab systems",
    "step" : [{
      "number" : "1",
      "process" : {
        "title" : "Create order",
        "description" : "New lab order",
        "step" : [{
          "number" : "1.1",
          "operation" : {
            "title" : "Make a call",
            "initiator" : "Clin",
            "receiver" : "LabMan"
          }
        },
        {
          "number" : "1.2",
          "operation" : {
            "title" : "Create new EMR order",
            "initiator" : "Clin",
            "receiver" : "CPOE"
          }
        },
        {
          "number" : "1.3",
          "operation" : {
            "title" : "Submit order to EMR",
            "initiator" : "CPOE",
            "receiver" : "EMR",
            "request" : {
              "instanceReference" : "req1",
              "versionReference" : "req1-v1"
            }
          }
        },
        {
          "number" : "1.3",
          "operation" : {
            "title" : "Create new task ",
            "initiator" : "EMR",
            "receiver" : "EMR",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v1"
            }
          }
        },
        {
          "number" : "1.4",
          "operation" : {
            "title" : "Send task to Lab",
            "initiator" : "EMR",
            "receiver" : "Lab",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v1"
            }
          }
        }]
      },
      "pause" : true
    },
    {
      "number" : "2",
      "process" : {
        "title" : "Accept order",
        "description" : "New task for handling order tracking",
        "step" : [{
          "number" : "2.1",
          "operation" : {
            "title" : "Accept task",
            "initiator" : "LabMan",
            "receiver" : "Lab"
          }
        },
        {
          "number" : "2.2",
          "operation" : {
            "title" : "Task status = accepted",
            "initiator" : "Lab",
            "receiver" : "Lab",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v2"
            }
          }
        },
        {
          "number" : "2.3",
          "operation" : {
            "title" : "Create internal lab request",
            "initiator" : "Lab",
            "receiver" : "Lab",
            "request" : {
              "instanceReference" : "req.lab1",
              "versionReference" : "req.lab1-v1"
            }
          }
        },
        {
          "number" : "2.4",
          "operation" : {
            "title" : "Send Task to EMR",
            "initiator" : "Lab",
            "receiver" : "EMR",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v2"
            }
          }
        },
        {
          "number" : "2.5",
          "operation" : {
            "title" : "Inform CPOE of Task status",
            "initiator" : "EMR",
            "receiver" : "CPOE",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v2"
            }
          }
        }]
      }
    },
    {
      "number" : "3",
      "process" : {
        "title" : "Initiate procedure",
        "description" : "Procedure is initiated at the lab",
        "step" : [{
          "number" : "3.1",
          "operation" : {
            "title" : "Begin procedure",
            "initiator" : "LabMan",
            "receiver" : "Lab"
          }
        },
        {
          "number" : "3.2",
          "operation" : {
            "title" : "Task status: in-progress",
            "initiator" : "Lab",
            "receiver" : "Lab",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v3"
            }
          }
        },
        {
          "number" : "4.3",
          "operation" : {
            "title" : "Internal lab request: in-progress",
            "initiator" : "Lab",
            "receiver" : "Lab",
            "request" : {
              "instanceReference" : "req.lab1",
              "versionReference" : "req.lab1-v2"
            }
          }
        },
        {
          "number" : "4.4",
          "operation" : {
            "title" : "Send updated Task to EMR",
            "initiator" : "Lab",
            "receiver" : "EMR",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v3"
            }
          }
        },
        {
          "number" : "4.5",
          "operation" : {
            "title" : "Inform CPOE of Task status",
            "initiator" : "EMR",
            "receiver" : "CPOE",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v4"
            }
          }
        },
        {
          "number" : "4.5",
          "operation" : {
            "title" : "Order status: in-progress",
            "initiator" : "CPOE",
            "receiver" : "CPOE",
            "request" : {
              "instanceReference" : "req1",
              "versionReference" : "req1-v2"
            }
          }
        }]
      }
    },
    {
      "number" : "4",
      "process" : {
        "title" : "Finish procedure",
        "description" : "Procedure is finished",
        "step" : [{
          "number" : "4.1",
          "operation" : {
            "title" : "Finish procedure",
            "initiator" : "LabMan",
            "receiver" : "Lab"
          }
        },
        {
          "number" : "4.2",
          "operation" : {
            "title" : "Task status = completed",
            "initiator" : "Lab",
            "receiver" : "Lab",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v2"
            }
          }
        },
        {
          "number" : "4.3",
          "operation" : {
            "title" : "Internal lab request: complete",
            "initiator" : "Lab",
            "receiver" : "Lab",
            "request" : {
              "instanceReference" : "req.lab1",
              "versionReference" : "req.lab1-v2"
            }
          }
        },
        {
          "number" : "4.4",
          "operation" : {
            "title" : "Send updated Task to EMR",
            "initiator" : "Lab",
            "receiver" : "EMR",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v4"
            }
          }
        },
        {
          "number" : "4.5",
          "operation" : {
            "title" : "Inform CPOE of Task status",
            "initiator" : "EMR",
            "receiver" : "CPOE",
            "request" : {
              "instanceReference" : "task1",
              "versionReference" : "task1-v4"
            }
          }
        },
        {
          "number" : "4.5",
          "operation" : {
            "title" : "Order status = completed",
            "initiator" : "CPOE",
            "receiver" : "CPOE",
            "request" : {
              "instanceReference" : "req1",
              "versionReference" : "req1-v3"
            }
          }
        }]
      }
    }]
  }]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.