# Sample EOrders Task Status Patch - Magentus Practice Management FHIR Implementation Guide v1.2.60

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **Sample EOrders Task Status Patch**

## Example Bundle: Sample EOrders Task Status Patch



## Resource Content

```json
{
  "resourceType" : "Bundle",
  "id" : "EOrdersStatusPatchBundle2",
  "type" : "transaction",
  "entry" : [{
    "resource" : {
      "resourceType" : "Parameters",
      "id" : "group",
      "parameter" : [{
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "replace"
        },
        {
          "name" : "path",
          "valueString" : "Task.status"
        },
        {
          "name" : "value",
          "valueCode" : "accepted"
        }]
      },
      {
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "add"
        },
        {
          "name" : "path",
          "valueString" : "Task"
        },
        {
          "name" : "name",
          "valueString" : "businessStatus"
        },
        {
          "name" : "value",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://fhir.geniesolutions.io/CodeSystem/eorders-task-business-status-codesystem",
              "code" : "booked"
            }]
          }
        }]
      },
      {
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "delete"
        },
        {
          "name" : "path",
          "valueString" : "Task.statusReason"
        }]
      }]
    },
    "request" : {
      "method" : "PATCH",
      "url" : "Task?_id=task1"
    }
  },
  {
    "resource" : {
      "resourceType" : "Parameters",
      "id" : "child1",
      "parameter" : [{
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "replace"
        },
        {
          "name" : "path",
          "valueString" : "Task.status"
        },
        {
          "name" : "value",
          "valueCode" : "accepted"
        }]
      },
      {
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "add"
        },
        {
          "name" : "path",
          "valueString" : "Task"
        },
        {
          "name" : "name",
          "valueString" : "businessStatus"
        },
        {
          "name" : "value",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://fhir.geniesolutions.io/CodeSystem/eorders-task-business-status-codesystem",
              "code" : "booked"
            }]
          }
        }]
      },
      {
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "delete"
        },
        {
          "name" : "path",
          "valueString" : "Task.statusReason"
        }]
      }]
    },
    "request" : {
      "method" : "PATCH",
      "url" : "Task?_id=task2"
    }
  },
  {
    "resource" : {
      "resourceType" : "Parameters",
      "id" : "child2",
      "parameter" : [{
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "replace"
        },
        {
          "name" : "path",
          "valueString" : "Task.status"
        },
        {
          "name" : "value",
          "valueCode" : "accepted"
        }]
      },
      {
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "add"
        },
        {
          "name" : "path",
          "valueString" : "Task"
        },
        {
          "name" : "name",
          "valueString" : "businessStatus"
        },
        {
          "name" : "value",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://fhir.geniesolutions.io/CodeSystem/eorders-task-business-status-codesystem",
              "code" : "booked"
            }]
          }
        }]
      },
      {
        "name" : "operation",
        "part" : [{
          "name" : "type",
          "valueCode" : "delete"
        },
        {
          "name" : "path",
          "valueString" : "Task.statusReason"
        }]
      }]
    },
    "request" : {
      "method" : "PATCH",
      "url" : "Task?_id=task3"
    }
  }]
}

```
