Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
  "basedOn": [
    {
      "reference": "ServiceRequest/g89ac064-7a32-4aef-9c0d-a3c47672cc09",
      "type": "ServiceRequest"
    }
  ],
  "category": {
    "coding": [
      {
        "code": "service-category",
        "display": "service category",
        "system": "https://mi-cie.org"
      }
    ],
    "text": "Transportation"
  },
  "code": {
    "coding": [
      {
        "code": "SocialServiceReferral_v2",
        "display": "Social Service Referred",
        "system": "https://mi-cie.org"
      }
    ],
    "text": "Email"
  },
  "extension": [
    {
      "url": "https://mi-cie.org/fhir/StructureDefinition/HealthcareServiceId",
      "valueInteger": 78856
    },
    {
      "url": "https://mi-cie.org/fhir/StructureDefinition/HealthcareServiceLocationName",
      "valueString": "NANKIN TRANSIT COMMISSION"
    }
  ],
  "id": "a42c6d64-a622-45eb-93f8-e26a595a4f71",
  "meta": {
    "lastUpdated": "2023-06-19T15:58:06.080132+00:00",
    "versionId": "MTY4NzE5MDI4NjA4MDEzMjAwMA"
  },
  "note": [
    {
      "authorReference": {
        "display": "Amanda Russo",
        "reference": "Practitioner/e906e843-2f14-48a7-990c-2ad342d366f7"
      },
      "text": "here is that resource",
      "time": "2023-06-19T11:58:04-04:00"
    }
  ],
  "performedDateTime": "2023-06-19T11:58:04-04:00",
  "recorder": {
    "display": "Amanda Russo",
    "reference": "Practitioner/e906e843-2f14-48a7-990c-2ad342d366f7"
  },
  "resourceType": "Procedure",
  "status": "in-progress",
  "subject": {
    "display": "RECORD FHIR",
    "reference": "Patient/314aeb5c-df58-45fc-8d07-fd1f326c8f4b"
  }
}

Updating the status of the ServiceRequest once it has been completed

To make sure that the status of your service requests are up to data you will need to update the status of the service request through a PATCH method.

The following is the example of a PATCH url and body for this operation

Code Block
PATCH https://fhir.mi-cie.org/fhirR4/ServiceRequest/{SERVICEREQUEST_ID}

BODY will be
[{op: 'replace', path: '/status', value: 'completed'}]