OpenMRS test evidence

Run run-2026-10-01_17-47-05 · http://localhost/openmrs
10 scenarios ✓ 10 passed ✗ 0 failed

Clinician logs in to OpenMRS

A clinician logs in and chooses their clinic location

PASSED · 35.4s · @US-001 @ui
Step-by-step trace

Open trace.playwright.dev and drop in A-clinician-logs-in-and-chooses-their-clinic-location-174705.zip. The trace opens in your browser and isn't uploaded anywhere.

An unknown username is rejected

PASSED · 6.8s · @US-001 @ui
Step-by-step trace

Open trace.playwright.dev and drop in An-unknown-username-is-rejected-174740.zip. The trace opens in your browser and isn't uploaded anywhere.

A wrong password is rejected

PASSED · 6.8s · @US-001 @ui
Step-by-step trace

Open trace.playwright.dev and drop in A-wrong-password-is-rejected-174747.zip. The trace opens in your browser and isn't uploaded anywhere.

FHIR Patient API returns correct patient data

An unknown patient id returns 404

PASSED · 0.5s · @US-002 @api
01-GET-Patient-00000000-0000-0000-0000-000000000000
{
  "step": "When I request the patient with id \"00000000-0000-0000-0000-000000000000\"",
  "timestamp": "2026-10-01 17:47:54 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/Patient/00000000-0000-0000-0000-000000000000",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "Basic ******** (user: admin)"
    }
  },
  "response": {
    "status": 404,
    "statusText": "",
    "contentType": "application/fhir+json;charset=UTF-8",
    "body": {
      "resourceType": "OperationOutcome",
      "text": {
        "status": "generated",
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource of type Patient with ID 00000000-0000-0000-0000-000000000000 is not known</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
      },
      "issue": [
        {
          "severity": "error",
          "code": "processing",
          "diagnostics": "Resource of type Patient with ID 00000000-0000-0000-0000-000000000000 is not known"
        }
      ]
    }
  }
}

Patient search returns complete patient records

PASSED · 0.7s · @US-002 @api
01-GET-Patient-count-10
{
  "step": "When I search for patients",
  "timestamp": "2026-10-01 17:47:55 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=10",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "Basic ******** (user: admin)"
    }
  },
  "response": {
    "status": 200,
    "statusText": "",
    "contentType": "application/fhir+json;charset=UTF-8",
    "body": {
      "resourceType": "Bundle",
      "id": "c0d0addc-7446-41e0-b859-be76999a0172",
      "meta": {
        "lastUpdated": "2026-10-01T21:47:54.994+00:00"
      },
      "type": "searchset",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=10"
        },
        {
          "relation": "next",
          "url": "http://localhost/openmrs/ws/fhir2/R4?_getpages=558589e5-055e-4371-8b1b-8d1e32c2e569&_getpagesoffset=10&_count=10&_bundletype=searchset"
        }
      ],
      "entry": [
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/56c76fae-84d0-4e11-9dac-377cfd0f9852",
          "resource": {
            "resourceType": "Patient",
            "id": "56c76fae-84d0-4e11-9dac-377cfd0f9852",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>56c76fae-84d0-4e11-9dac-377cfd0f9852</td></tr><tr><td>Identifier:</td><td><div>100000Y</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Betty <b>WILLIAMS </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>15/03/1974</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City5311 </span><span>State5311 </span><span>Country5311 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "68406186-8dc3-497c-8369-eb0b05e55beb",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100000Y"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "19a5ad29-a218-4613-a066-170d1d186cce",
                "text": "Betty Williams",
                "family": "Williams",
                "given": [
                  "Betty"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1974-03-15",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "c4945091-ffbf-487b-9c6f-fc9058298b04",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address15311"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City5311",
                "state": "State5311",
                "postalCode": "94773",
                "country": "Country5311"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/8632dda2-b434-4ba3-85f4-9f03f79a7042",
          "resource": {
            "resourceType": "Patient",
            "id": "8632dda2-b434-4ba3-85f4-9f03f79a7042",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>8632dda2-b434-4ba3-85f4-9f03f79a7042</td></tr><tr><td>Identifier:</td><td><div>100001W</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Susan <b>LOPEZ </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>06/05/1972</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City0384 </span><span>State0384 </span><span>Country0384 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "ede2d8dc-8ffb-45ee-a0c1-f61494bb589c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100001W"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "07d3b23b-b9f4-43f7-b888-dedc2f10ad2f",
                "text": "Susan Lopez",
                "family": "Lopez",
                "given": [
                  "Susan"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1972-05-06",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "6eb10e65-5920-494e-ba5c-0ee8b7abd43a",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address10384"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City0384",
                "state": "State0384",
                "postalCode": "72032",
                "country": "Country0384"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/85cb5fc9-3338-4c37-afdb-43caaa410746",
          "resource": {
            "resourceType": "Patient",
            "id": "85cb5fc9-3338-4c37-afdb-43caaa410746",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>85cb5fc9-3338-4c37-afdb-43caaa410746</td></tr><tr><td>Identifier:</td><td><div>100002U</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Barbara <b>MILLER </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>09/06/1938</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City2253 </span><span>State2253 </span><span>Country2253 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "07f73336-77c1-4f35-97f8-348796724f1b",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100002U"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "724f7bf7-b917-479e-84b7-df5107cbd755",
                "text": "Barbara Miller",
                "family": "Miller",
                "given": [
                  "Barbara"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1938-06-09",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "19ce1a56-6a03-44cf-9156-c3d8486a4ea0",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address12253"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City2253",
                "state": "State2253",
                "postalCode": "85055",
                "country": "Country2253"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/6569f4bd-ee57-411b-8d37-94e08a9ce1c4",
          "resource": {
            "resourceType": "Patient",
            "id": "6569f4bd-ee57-411b-8d37-94e08a9ce1c4",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>6569f4bd-ee57-411b-8d37-94e08a9ce1c4</td></tr><tr><td>Identifier:</td><td><div>100003R</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Grace <b>GARCIA </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>18/01/1959</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City2976 </span><span>State2976 </span><span>Country2976 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "48a2414e-e260-412f-9c6c-c29cfe4e18f0",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100003R"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "a35ab37a-0131-40ec-a8fb-7a0a688c6c3f",
                "text": "Grace Garcia",
                "family": "Garcia",
                "given": [
                  "Grace"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1959-01-18",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "f273db3f-7030-4ece-8810-8d93236c62ac",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address12976"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City2976",
                "state": "State2976",
                "postalCode": "67687",
                "country": "Country2976"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/ae6ef7b1-7fc6-41d2-889f-5ed1e9848589",
          "resource": {
            "resourceType": "Patient",
            "id": "ae6ef7b1-7fc6-41d2-889f-5ed1e9848589",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>ae6ef7b1-7fc6-41d2-889f-5ed1e9848589</td></tr><tr><td>Identifier:</td><td><div>100004N</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Mark <b>SMITH </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>14/06/2015</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City8718 </span><span>State8718 </span><span>Country8718 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "15438579-3201-4b08-8b80-60461cf1fde7",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100004N"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "24797cff-85d8-4605-9b87-724e66ce5cec",
                "text": "Mark Smith",
                "family": "Smith",
                "given": [
                  "Mark"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "2015-06-14",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "a89bb635-f6cc-43d3-b5a1-620ed0090115",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address18718"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City8718",
                "state": "State8718",
                "postalCode": "88827",
                "country": "Country8718"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/deb71f77-55ee-4488-9fe6-1330781c285c",
          "resource": {
            "resourceType": "Patient",
            "id": "deb71f77-55ee-4488-9fe6-1330781c285c",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>deb71f77-55ee-4488-9fe6-1330781c285c</td></tr><tr><td>Identifier:</td><td><div>100005L</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> James <b>MARTINEZ </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>10/04/1965</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City0737 </span><span>State0737 </span><span>Country0737 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "f5952ce1-1fae-4bfb-a55e-70f990d07e16",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100005L"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "b08396dc-682f-4311-bac2-c4e89e24d421",
                "text": "James Martinez",
                "family": "Martinez",
                "given": [
                  "James"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1965-04-10",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "bd581983-95d2-4fbf-bd00-61d18cd42172",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address10737"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City0737",
                "state": "State0737",
                "postalCode": "95293",
                "country": "Country0737"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/189047a9-7c90-4f9b-a417-1ad14e5aa521",
          "resource": {
            "resourceType": "Patient",
            "id": "189047a9-7c90-4f9b-a417-1ad14e5aa521",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>189047a9-7c90-4f9b-a417-1ad14e5aa521</td></tr><tr><td>Identifier:</td><td><div>100006J</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Michael <b>TURNER </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>12/04/1989</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City6372 </span><span>State6372 </span><span>Country6372 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "a0c11f17-c6ad-42da-ae7d-391efdf4ceea",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100006J"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "f6837eaf-8956-49a6-8466-7ce7d5be160a",
                "text": "Michael Turner",
                "family": "Turner",
                "given": [
                  "Michael"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1989-04-12",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "e178ca07-42bb-427c-bc7e-c6aca083036c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address16372"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City6372",
                "state": "State6372",
                "postalCode": "51659",
                "country": "Country6372"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/d8ce6b01-38a0-42dc-8a81-f676b42a42d6",
          "resource": {
            "resourceType": "Patient",
            "id": "d8ce6b01-38a0-42dc-8a81-f676b42a42d6",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>d8ce6b01-38a0-42dc-8a81-f676b42a42d6</td></tr><tr><td>Identifier:</td><td><div>100007G</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Kevin <b>BROWN </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>22/01/1970</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City3058 </span><span>State3058 </span><span>Country3058 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "3c70a77b-0538-46c6-a171-b361f1491c87",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100007G"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "a36b12c3-1222-4ec1-83f8-38713aa522b2",
                "text": "Kevin Brown",
                "family": "Brown",
                "given": [
                  "Kevin"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1970-01-22",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "32b56b3e-6a42-49cb-a2f2-236ac008071c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address13058"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City3058",
                "state": "State3058",
                "postalCode": "17761",
                "country": "Country3058"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/a1945b9f-9be2-4528-ac5b-66959accee62",
          "resource": {
            "resourceType": "Patient",
            "id": "a1945b9f-9be2-4528-ac5b-66959accee62",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>a1945b9f-9be2-4528-ac5b-66959accee62</td></tr><tr><td>Identifier:</td><td><div>100008E</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Joshua <b>JOHNSON </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>25/09/2021</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City6442 </span><span>State6442 </span><span>Country6442 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "ecba349d-b8dd-4d8d-85ab-6f2a0e0c5185",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100008E"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "269da99f-77a3-4b97-bac5-dbb1dc76b077",
                "text": "Joshua Johnson",
                "family": "Johnson",
                "given": [
                  "Joshua"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "2021-09-25",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "13849de7-4021-4150-8229-5505b04f91e6",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address16442"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City6442",
                "state": "State6442",
                "postalCode": "20839",
                "country": "Country6442"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/4b778e0c-ab21-485c-a342-1a8c5f26e195",
          "resource": {
            "resourceType": "Patient",
            "id": "4b778e0c-ab21-485c-a342-1a8c5f26e195",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>4b778e0c-ab21-485c-a342-1a8c5f26e195</td></tr><tr><td>Identifier:</td><td><div>100009C</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Emily <b>HILL </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>01/11/2003</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City9711 </span><span>State9711 </span><span>Country9711 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "061e177c-a55e-49f6-98a5-a09435fd9dd1",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100009C"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "2a3e9f49-e322-4476-964a-328b954cba2c",
                "text": "Emily Hill",
                "family": "Hill",
                "given": [
                  "Emily"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "2003-11-01",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "2fde91c2-30f8-4629-8307-d2e2b57a5fef",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address19711"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City9711",
                "state": "State9711",
                "postalCode": "37861",
                "country": "Country9711"
              }
            ]
          }
        }
      ]
    }
  }
}

Reading a patient by id matches the search result

PASSED · 0.6s · @US-002 @api
01-GET-Patient-count-10
{
  "step": "Given I have searched for patients",
  "timestamp": "2026-10-01 17:47:56 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=10",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "Basic ******** (user: admin)"
    }
  },
  "response": {
    "status": 200,
    "statusText": "",
    "contentType": "application/fhir+json;charset=UTF-8",
    "body": {
      "resourceType": "Bundle",
      "id": "b6463a66-ecda-4208-b5ba-dc6d4ac59cf6",
      "meta": {
        "lastUpdated": "2026-10-01T21:47:55.740+00:00"
      },
      "type": "searchset",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=10"
        },
        {
          "relation": "next",
          "url": "http://localhost/openmrs/ws/fhir2/R4?_getpages=e87a0afd-6760-41e0-81b1-197352e00a57&_getpagesoffset=10&_count=10&_bundletype=searchset"
        }
      ],
      "entry": [
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/56c76fae-84d0-4e11-9dac-377cfd0f9852",
          "resource": {
            "resourceType": "Patient",
            "id": "56c76fae-84d0-4e11-9dac-377cfd0f9852",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>56c76fae-84d0-4e11-9dac-377cfd0f9852</td></tr><tr><td>Identifier:</td><td><div>100000Y</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Betty <b>WILLIAMS </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>15/03/1974</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City5311 </span><span>State5311 </span><span>Country5311 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "68406186-8dc3-497c-8369-eb0b05e55beb",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100000Y"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "19a5ad29-a218-4613-a066-170d1d186cce",
                "text": "Betty Williams",
                "family": "Williams",
                "given": [
                  "Betty"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1974-03-15",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "c4945091-ffbf-487b-9c6f-fc9058298b04",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address15311"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City5311",
                "state": "State5311",
                "postalCode": "94773",
                "country": "Country5311"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/8632dda2-b434-4ba3-85f4-9f03f79a7042",
          "resource": {
            "resourceType": "Patient",
            "id": "8632dda2-b434-4ba3-85f4-9f03f79a7042",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>8632dda2-b434-4ba3-85f4-9f03f79a7042</td></tr><tr><td>Identifier:</td><td><div>100001W</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Susan <b>LOPEZ </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>06/05/1972</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City0384 </span><span>State0384 </span><span>Country0384 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "ede2d8dc-8ffb-45ee-a0c1-f61494bb589c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100001W"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "07d3b23b-b9f4-43f7-b888-dedc2f10ad2f",
                "text": "Susan Lopez",
                "family": "Lopez",
                "given": [
                  "Susan"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1972-05-06",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "6eb10e65-5920-494e-ba5c-0ee8b7abd43a",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address10384"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City0384",
                "state": "State0384",
                "postalCode": "72032",
                "country": "Country0384"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/85cb5fc9-3338-4c37-afdb-43caaa410746",
          "resource": {
            "resourceType": "Patient",
            "id": "85cb5fc9-3338-4c37-afdb-43caaa410746",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>85cb5fc9-3338-4c37-afdb-43caaa410746</td></tr><tr><td>Identifier:</td><td><div>100002U</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Barbara <b>MILLER </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>09/06/1938</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City2253 </span><span>State2253 </span><span>Country2253 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "07f73336-77c1-4f35-97f8-348796724f1b",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100002U"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "724f7bf7-b917-479e-84b7-df5107cbd755",
                "text": "Barbara Miller",
                "family": "Miller",
                "given": [
                  "Barbara"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1938-06-09",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "19ce1a56-6a03-44cf-9156-c3d8486a4ea0",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address12253"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City2253",
                "state": "State2253",
                "postalCode": "85055",
                "country": "Country2253"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/6569f4bd-ee57-411b-8d37-94e08a9ce1c4",
          "resource": {
            "resourceType": "Patient",
            "id": "6569f4bd-ee57-411b-8d37-94e08a9ce1c4",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>6569f4bd-ee57-411b-8d37-94e08a9ce1c4</td></tr><tr><td>Identifier:</td><td><div>100003R</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Grace <b>GARCIA </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>18/01/1959</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City2976 </span><span>State2976 </span><span>Country2976 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "48a2414e-e260-412f-9c6c-c29cfe4e18f0",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100003R"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "a35ab37a-0131-40ec-a8fb-7a0a688c6c3f",
                "text": "Grace Garcia",
                "family": "Garcia",
                "given": [
                  "Grace"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1959-01-18",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "f273db3f-7030-4ece-8810-8d93236c62ac",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address12976"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City2976",
                "state": "State2976",
                "postalCode": "67687",
                "country": "Country2976"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/ae6ef7b1-7fc6-41d2-889f-5ed1e9848589",
          "resource": {
            "resourceType": "Patient",
            "id": "ae6ef7b1-7fc6-41d2-889f-5ed1e9848589",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>ae6ef7b1-7fc6-41d2-889f-5ed1e9848589</td></tr><tr><td>Identifier:</td><td><div>100004N</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Mark <b>SMITH </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>14/06/2015</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City8718 </span><span>State8718 </span><span>Country8718 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "15438579-3201-4b08-8b80-60461cf1fde7",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100004N"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "24797cff-85d8-4605-9b87-724e66ce5cec",
                "text": "Mark Smith",
                "family": "Smith",
                "given": [
                  "Mark"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "2015-06-14",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "a89bb635-f6cc-43d3-b5a1-620ed0090115",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address18718"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City8718",
                "state": "State8718",
                "postalCode": "88827",
                "country": "Country8718"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/deb71f77-55ee-4488-9fe6-1330781c285c",
          "resource": {
            "resourceType": "Patient",
            "id": "deb71f77-55ee-4488-9fe6-1330781c285c",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>deb71f77-55ee-4488-9fe6-1330781c285c</td></tr><tr><td>Identifier:</td><td><div>100005L</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> James <b>MARTINEZ </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>10/04/1965</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City0737 </span><span>State0737 </span><span>Country0737 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "f5952ce1-1fae-4bfb-a55e-70f990d07e16",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100005L"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "b08396dc-682f-4311-bac2-c4e89e24d421",
                "text": "James Martinez",
                "family": "Martinez",
                "given": [
                  "James"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1965-04-10",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "bd581983-95d2-4fbf-bd00-61d18cd42172",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address10737"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City0737",
                "state": "State0737",
                "postalCode": "95293",
                "country": "Country0737"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/189047a9-7c90-4f9b-a417-1ad14e5aa521",
          "resource": {
            "resourceType": "Patient",
            "id": "189047a9-7c90-4f9b-a417-1ad14e5aa521",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>189047a9-7c90-4f9b-a417-1ad14e5aa521</td></tr><tr><td>Identifier:</td><td><div>100006J</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Michael <b>TURNER </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>12/04/1989</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City6372 </span><span>State6372 </span><span>Country6372 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "a0c11f17-c6ad-42da-ae7d-391efdf4ceea",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100006J"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "f6837eaf-8956-49a6-8466-7ce7d5be160a",
                "text": "Michael Turner",
                "family": "Turner",
                "given": [
                  "Michael"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1989-04-12",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "e178ca07-42bb-427c-bc7e-c6aca083036c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address16372"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City6372",
                "state": "State6372",
                "postalCode": "51659",
                "country": "Country6372"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/d8ce6b01-38a0-42dc-8a81-f676b42a42d6",
          "resource": {
            "resourceType": "Patient",
            "id": "d8ce6b01-38a0-42dc-8a81-f676b42a42d6",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>d8ce6b01-38a0-42dc-8a81-f676b42a42d6</td></tr><tr><td>Identifier:</td><td><div>100007G</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Kevin <b>BROWN </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>22/01/1970</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City3058 </span><span>State3058 </span><span>Country3058 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "3c70a77b-0538-46c6-a171-b361f1491c87",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100007G"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "a36b12c3-1222-4ec1-83f8-38713aa522b2",
                "text": "Kevin Brown",
                "family": "Brown",
                "given": [
                  "Kevin"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1970-01-22",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "32b56b3e-6a42-49cb-a2f2-236ac008071c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address13058"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City3058",
                "state": "State3058",
                "postalCode": "17761",
                "country": "Country3058"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/a1945b9f-9be2-4528-ac5b-66959accee62",
          "resource": {
            "resourceType": "Patient",
            "id": "a1945b9f-9be2-4528-ac5b-66959accee62",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>a1945b9f-9be2-4528-ac5b-66959accee62</td></tr><tr><td>Identifier:</td><td><div>100008E</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Joshua <b>JOHNSON </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>25/09/2021</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City6442 </span><span>State6442 </span><span>Country6442 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "ecba349d-b8dd-4d8d-85ab-6f2a0e0c5185",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100008E"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "269da99f-77a3-4b97-bac5-dbb1dc76b077",
                "text": "Joshua Johnson",
                "family": "Johnson",
                "given": [
                  "Joshua"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "2021-09-25",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "13849de7-4021-4150-8229-5505b04f91e6",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address16442"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City6442",
                "state": "State6442",
                "postalCode": "20839",
                "country": "Country6442"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/4b778e0c-ab21-485c-a342-1a8c5f26e195",
          "resource": {
            "resourceType": "Patient",
            "id": "4b778e0c-ab21-485c-a342-1a8c5f26e195",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>4b778e0c-ab21-485c-a342-1a8c5f26e195</td></tr><tr><td>Identifier:</td><td><div>100009C</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Emily <b>HILL </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>01/11/2003</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City9711 </span><span>State9711 </span><span>Country9711 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "061e177c-a55e-49f6-98a5-a09435fd9dd1",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100009C"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "2a3e9f49-e322-4476-964a-328b954cba2c",
                "text": "Emily Hill",
                "family": "Hill",
                "given": [
                  "Emily"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "2003-11-01",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "2fde91c2-30f8-4629-8307-d2e2b57a5fef",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address19711"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City9711",
                "state": "State9711",
                "postalCode": "37861",
                "country": "Country9711"
              }
            ]
          }
        }
      ]
    }
  }
}
02-GET-Patient-56c76fae-84d0-4e11-9dac-377cfd0f9852
{
  "step": "When I read the first patient from the search results by id",
  "timestamp": "2026-10-01 17:47:56 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/Patient/56c76fae-84d0-4e11-9dac-377cfd0f9852",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "Basic ******** (user: admin)"
    }
  },
  "response": {
    "status": 200,
    "statusText": "",
    "contentType": "application/fhir+json;charset=UTF-8",
    "body": {
      "resourceType": "Patient",
      "id": "56c76fae-84d0-4e11-9dac-377cfd0f9852",
      "meta": {
        "versionId": "1790887084000",
        "lastUpdated": "2026-10-01T20:38:04.000+00:00"
      },
      "text": {
        "status": "generated",
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>56c76fae-84d0-4e11-9dac-377cfd0f9852</td></tr><tr><td>Identifier:</td><td><div>100000Y</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Betty <b>WILLIAMS </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>15/03/1974</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City5311 </span><span>State5311 </span><span>Country5311 </span></td></tr></tbody></table></div>"
      },
      "extension": [
        {
          "url": "http://fhir.openmrs.org/ext/person-attribute",
          "extension": [
            {
              "url": "http://fhir.openmrs.org/ext/person-attribute-type",
              "valueString": "demo_patient"
            },
            {
              "url": "http://fhir.openmrs.org/ext/person-attribute-value",
              "valueBoolean": true
            }
          ]
        }
      ],
      "identifier": [
        {
          "id": "68406186-8dc3-497c-8369-eb0b05e55beb",
          "extension": [
            {
              "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
              "valueReference": {
                "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                "type": "Location",
                "display": "Site 42"
              }
            }
          ],
          "use": "official",
          "type": {
            "coding": [
              {
                "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
              }
            ],
            "text": "OpenMRS ID"
          },
          "value": "100000Y"
        }
      ],
      "active": true,
      "name": [
        {
          "id": "19a5ad29-a218-4613-a066-170d1d186cce",
          "text": "Betty Williams",
          "family": "Williams",
          "given": [
            "Betty"
          ]
        }
      ],
      "gender": "female",
      "birthDate": "1974-03-15",
      "deceasedBoolean": false,
      "address": [
        {
          "id": "c4945091-ffbf-487b-9c6f-fc9058298b04",
          "extension": [
            {
              "url": "http://fhir.openmrs.org/ext/address",
              "extension": [
                {
                  "url": "http://fhir.openmrs.org/ext/address#address1",
                  "valueString": "Address15311"
                }
              ]
            }
          ],
          "use": "home",
          "city": "City5311",
          "state": "State5311",
          "postalCode": "94773",
          "country": "Country5311"
        }
      ]
    }
  }
}

Requests with a wrong password are rejected

PASSED · 0.0s · @US-002 @api
01-GET-Patient-count-10
{
  "step": "When I search for patients",
  "timestamp": "2026-10-01 17:47:56 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=10",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "Basic ******** (user: admin)"
    }
  },
  "response": {
    "status": 401,
    "statusText": "",
    "contentType": "text/html;charset=utf-8",
    "body": "<!doctype html><html lang=\"en\"><head><title>HTTP Status 401 – Unauthorized</title><style type=\"text/css\">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 – Unauthorized</h1><hr class=\"line\" /><p><b>Type</b> Status Report</p><p><b>Message</b> Not authenticated</p><p><b>Description</b> The request has not been applied to the target resource because it lacks valid authentication credentials for that resource.</p><hr class=\"line\" /><h3>Apache Tomcat/9.0.120</h3></body></html>"
  }
}

Requests without credentials are rejected

PASSED · 0.0s · @US-002 @api
01-GET-Patient-count-10
{
  "step": "When I search for patients",
  "timestamp": "2026-10-01 17:47:56 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=10",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "(none: anonymous request)"
    }
  },
  "response": {
    "status": 401,
    "statusText": "",
    "contentType": "text/html;charset=UTF-8",
    "body": "<!doctype html><html lang=\"en\"><head><title>HTTP Status 401 – Unauthorized</title><style type=\"text/css\">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 – Unauthorized</h1><hr class=\"line\" /><p><b>Type</b> Status Report</p><p><b>Message</b> Not authenticated</p><p><b>Description</b> The request has not been applied to the target resource because it lacks valid authentication credentials for that resource.</p><hr class=\"line\" /><h3>Apache Tomcat/9.0.120</h3></body></html>"
  }
}

Searching by family name finds the patient

PASSED · 0.8s · @US-002 @api
01-GET-Patient-count-10
{
  "step": "Given I have searched for patients",
  "timestamp": "2026-10-01 17:47:57 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=10",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "Basic ******** (user: admin)"
    }
  },
  "response": {
    "status": 200,
    "statusText": "",
    "contentType": "application/fhir+json;charset=UTF-8",
    "body": {
      "resourceType": "Bundle",
      "id": "5de00724-4514-4567-8fcc-921bbe07cb8e",
      "meta": {
        "lastUpdated": "2026-10-01T21:47:56.430+00:00"
      },
      "type": "searchset",
      "total": 50,
      "link": [
        {
          "relation": "self",
          "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=10"
        },
        {
          "relation": "next",
          "url": "http://localhost/openmrs/ws/fhir2/R4?_getpages=f018ec9f-65dc-4b66-bf12-9b749627baab&_getpagesoffset=10&_count=10&_bundletype=searchset"
        }
      ],
      "entry": [
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/56c76fae-84d0-4e11-9dac-377cfd0f9852",
          "resource": {
            "resourceType": "Patient",
            "id": "56c76fae-84d0-4e11-9dac-377cfd0f9852",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>56c76fae-84d0-4e11-9dac-377cfd0f9852</td></tr><tr><td>Identifier:</td><td><div>100000Y</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Betty <b>WILLIAMS </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>15/03/1974</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City5311 </span><span>State5311 </span><span>Country5311 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "68406186-8dc3-497c-8369-eb0b05e55beb",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100000Y"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "19a5ad29-a218-4613-a066-170d1d186cce",
                "text": "Betty Williams",
                "family": "Williams",
                "given": [
                  "Betty"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1974-03-15",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "c4945091-ffbf-487b-9c6f-fc9058298b04",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address15311"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City5311",
                "state": "State5311",
                "postalCode": "94773",
                "country": "Country5311"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/8632dda2-b434-4ba3-85f4-9f03f79a7042",
          "resource": {
            "resourceType": "Patient",
            "id": "8632dda2-b434-4ba3-85f4-9f03f79a7042",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>8632dda2-b434-4ba3-85f4-9f03f79a7042</td></tr><tr><td>Identifier:</td><td><div>100001W</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Susan <b>LOPEZ </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>06/05/1972</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City0384 </span><span>State0384 </span><span>Country0384 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "ede2d8dc-8ffb-45ee-a0c1-f61494bb589c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100001W"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "07d3b23b-b9f4-43f7-b888-dedc2f10ad2f",
                "text": "Susan Lopez",
                "family": "Lopez",
                "given": [
                  "Susan"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1972-05-06",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "6eb10e65-5920-494e-ba5c-0ee8b7abd43a",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address10384"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City0384",
                "state": "State0384",
                "postalCode": "72032",
                "country": "Country0384"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/85cb5fc9-3338-4c37-afdb-43caaa410746",
          "resource": {
            "resourceType": "Patient",
            "id": "85cb5fc9-3338-4c37-afdb-43caaa410746",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>85cb5fc9-3338-4c37-afdb-43caaa410746</td></tr><tr><td>Identifier:</td><td><div>100002U</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Barbara <b>MILLER </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>09/06/1938</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City2253 </span><span>State2253 </span><span>Country2253 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "07f73336-77c1-4f35-97f8-348796724f1b",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100002U"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "724f7bf7-b917-479e-84b7-df5107cbd755",
                "text": "Barbara Miller",
                "family": "Miller",
                "given": [
                  "Barbara"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1938-06-09",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "19ce1a56-6a03-44cf-9156-c3d8486a4ea0",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address12253"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City2253",
                "state": "State2253",
                "postalCode": "85055",
                "country": "Country2253"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/6569f4bd-ee57-411b-8d37-94e08a9ce1c4",
          "resource": {
            "resourceType": "Patient",
            "id": "6569f4bd-ee57-411b-8d37-94e08a9ce1c4",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>6569f4bd-ee57-411b-8d37-94e08a9ce1c4</td></tr><tr><td>Identifier:</td><td><div>100003R</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Grace <b>GARCIA </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>18/01/1959</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City2976 </span><span>State2976 </span><span>Country2976 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "48a2414e-e260-412f-9c6c-c29cfe4e18f0",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100003R"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "a35ab37a-0131-40ec-a8fb-7a0a688c6c3f",
                "text": "Grace Garcia",
                "family": "Garcia",
                "given": [
                  "Grace"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1959-01-18",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "f273db3f-7030-4ece-8810-8d93236c62ac",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address12976"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City2976",
                "state": "State2976",
                "postalCode": "67687",
                "country": "Country2976"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/ae6ef7b1-7fc6-41d2-889f-5ed1e9848589",
          "resource": {
            "resourceType": "Patient",
            "id": "ae6ef7b1-7fc6-41d2-889f-5ed1e9848589",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>ae6ef7b1-7fc6-41d2-889f-5ed1e9848589</td></tr><tr><td>Identifier:</td><td><div>100004N</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Mark <b>SMITH </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>14/06/2015</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City8718 </span><span>State8718 </span><span>Country8718 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "15438579-3201-4b08-8b80-60461cf1fde7",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100004N"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "24797cff-85d8-4605-9b87-724e66ce5cec",
                "text": "Mark Smith",
                "family": "Smith",
                "given": [
                  "Mark"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "2015-06-14",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "a89bb635-f6cc-43d3-b5a1-620ed0090115",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address18718"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City8718",
                "state": "State8718",
                "postalCode": "88827",
                "country": "Country8718"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/deb71f77-55ee-4488-9fe6-1330781c285c",
          "resource": {
            "resourceType": "Patient",
            "id": "deb71f77-55ee-4488-9fe6-1330781c285c",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>deb71f77-55ee-4488-9fe6-1330781c285c</td></tr><tr><td>Identifier:</td><td><div>100005L</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> James <b>MARTINEZ </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>10/04/1965</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City0737 </span><span>State0737 </span><span>Country0737 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "f5952ce1-1fae-4bfb-a55e-70f990d07e16",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100005L"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "b08396dc-682f-4311-bac2-c4e89e24d421",
                "text": "James Martinez",
                "family": "Martinez",
                "given": [
                  "James"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1965-04-10",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "bd581983-95d2-4fbf-bd00-61d18cd42172",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address10737"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City0737",
                "state": "State0737",
                "postalCode": "95293",
                "country": "Country0737"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/189047a9-7c90-4f9b-a417-1ad14e5aa521",
          "resource": {
            "resourceType": "Patient",
            "id": "189047a9-7c90-4f9b-a417-1ad14e5aa521",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>189047a9-7c90-4f9b-a417-1ad14e5aa521</td></tr><tr><td>Identifier:</td><td><div>100006J</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Michael <b>TURNER </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>12/04/1989</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City6372 </span><span>State6372 </span><span>Country6372 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "a0c11f17-c6ad-42da-ae7d-391efdf4ceea",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100006J"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "f6837eaf-8956-49a6-8466-7ce7d5be160a",
                "text": "Michael Turner",
                "family": "Turner",
                "given": [
                  "Michael"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1989-04-12",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "e178ca07-42bb-427c-bc7e-c6aca083036c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address16372"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City6372",
                "state": "State6372",
                "postalCode": "51659",
                "country": "Country6372"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/d8ce6b01-38a0-42dc-8a81-f676b42a42d6",
          "resource": {
            "resourceType": "Patient",
            "id": "d8ce6b01-38a0-42dc-8a81-f676b42a42d6",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>d8ce6b01-38a0-42dc-8a81-f676b42a42d6</td></tr><tr><td>Identifier:</td><td><div>100007G</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Kevin <b>BROWN </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>22/01/1970</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City3058 </span><span>State3058 </span><span>Country3058 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "3c70a77b-0538-46c6-a171-b361f1491c87",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100007G"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "a36b12c3-1222-4ec1-83f8-38713aa522b2",
                "text": "Kevin Brown",
                "family": "Brown",
                "given": [
                  "Kevin"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1970-01-22",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "32b56b3e-6a42-49cb-a2f2-236ac008071c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address13058"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City3058",
                "state": "State3058",
                "postalCode": "17761",
                "country": "Country3058"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/a1945b9f-9be2-4528-ac5b-66959accee62",
          "resource": {
            "resourceType": "Patient",
            "id": "a1945b9f-9be2-4528-ac5b-66959accee62",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>a1945b9f-9be2-4528-ac5b-66959accee62</td></tr><tr><td>Identifier:</td><td><div>100008E</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Joshua <b>JOHNSON </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>25/09/2021</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City6442 </span><span>State6442 </span><span>Country6442 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "ecba349d-b8dd-4d8d-85ab-6f2a0e0c5185",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100008E"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "269da99f-77a3-4b97-bac5-dbb1dc76b077",
                "text": "Joshua Johnson",
                "family": "Johnson",
                "given": [
                  "Joshua"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "2021-09-25",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "13849de7-4021-4150-8229-5505b04f91e6",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address16442"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City6442",
                "state": "State6442",
                "postalCode": "20839",
                "country": "Country6442"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/4b778e0c-ab21-485c-a342-1a8c5f26e195",
          "resource": {
            "resourceType": "Patient",
            "id": "4b778e0c-ab21-485c-a342-1a8c5f26e195",
            "meta": {
              "versionId": "1790887085000",
              "lastUpdated": "2026-10-01T20:38:05.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>4b778e0c-ab21-485c-a342-1a8c5f26e195</td></tr><tr><td>Identifier:</td><td><div>100009C</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Emily <b>HILL </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>01/11/2003</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City9711 </span><span>State9711 </span><span>Country9711 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "061e177c-a55e-49f6-98a5-a09435fd9dd1",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100009C"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "2a3e9f49-e322-4476-964a-328b954cba2c",
                "text": "Emily Hill",
                "family": "Hill",
                "given": [
                  "Emily"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "2003-11-01",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "2fde91c2-30f8-4629-8307-d2e2b57a5fef",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address19711"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City9711",
                "state": "State9711",
                "postalCode": "37861",
                "country": "Country9711"
              }
            ]
          }
        }
      ]
    }
  }
}
02-GET-Patient-family-Williams-count-100
{
  "step": "When I search for patients by the family name of the first search result",
  "timestamp": "2026-10-01 17:47:57 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?family=Williams&_count=100",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "Basic ******** (user: admin)"
    }
  },
  "response": {
    "status": 200,
    "statusText": "",
    "contentType": "application/fhir+json;charset=UTF-8",
    "body": {
      "resourceType": "Bundle",
      "id": "4f39b8b6-719c-471b-b24f-bb2836418124",
      "meta": {
        "lastUpdated": "2026-10-01T21:47:57.031+00:00"
      },
      "type": "searchset",
      "total": 3,
      "link": [
        {
          "relation": "self",
          "url": "http://localhost/openmrs/ws/fhir2/R4/Patient?_count=100&family=Williams"
        }
      ],
      "entry": [
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/56c76fae-84d0-4e11-9dac-377cfd0f9852",
          "resource": {
            "resourceType": "Patient",
            "id": "56c76fae-84d0-4e11-9dac-377cfd0f9852",
            "meta": {
              "versionId": "1790887084000",
              "lastUpdated": "2026-10-01T20:38:04.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>56c76fae-84d0-4e11-9dac-377cfd0f9852</td></tr><tr><td>Identifier:</td><td><div>100000Y</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Betty <b>WILLIAMS </b></td></tr><tr><td>Gender:</td><td>FEMALE</td></tr><tr><td>Birth Date:</td><td>15/03/1974</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City5311 </span><span>State5311 </span><span>Country5311 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "68406186-8dc3-497c-8369-eb0b05e55beb",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100000Y"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "19a5ad29-a218-4613-a066-170d1d186cce",
                "text": "Betty Williams",
                "family": "Williams",
                "given": [
                  "Betty"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1974-03-15",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "c4945091-ffbf-487b-9c6f-fc9058298b04",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address15311"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City5311",
                "state": "State5311",
                "postalCode": "94773",
                "country": "Country5311"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/59ffe48f-22cb-4222-9a95-a215e9730824",
          "resource": {
            "resourceType": "Patient",
            "id": "59ffe48f-22cb-4222-9a95-a215e9730824",
            "meta": {
              "versionId": "1790887087000",
              "lastUpdated": "2026-10-01T20:38:07.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>59ffe48f-22cb-4222-9a95-a215e9730824</td></tr><tr><td>Identifier:</td><td><div>10000HV</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> David <b>WILLIAMS </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>10/04/2000</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City9327 </span><span>State9327 </span><span>Country9327 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "1309f730-29ee-44c0-aa44-213ad98b8f17",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "10000HV"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "09c128c2-a269-461e-be60-7f2cc9f0f8f1",
                "text": "David Williams",
                "family": "Williams",
                "given": [
                  "David"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "2000-04-10",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "0849cc76-b66e-4cbf-9565-01974e6c6dbb",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address19327"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City9327",
                "state": "State9327",
                "postalCode": "05464",
                "country": "Country9327"
              }
            ]
          }
        },
        {
          "fullUrl": "http://localhost/openmrs/ws/fhir2/R4/Patient/96b08ff9-6e1e-4099-b6dc-36274a8ec7f2",
          "resource": {
            "resourceType": "Patient",
            "id": "96b08ff9-6e1e-4099-b6dc-36274a8ec7f2",
            "meta": {
              "versionId": "1790887091000",
              "lastUpdated": "2026-10-01T20:38:11.000+00:00"
            },
            "text": {
              "status": "generated",
              "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"hapiPropertyTable\"><tbody><tr><td>Id:</td><td>96b08ff9-6e1e-4099-b6dc-36274a8ec7f2</td></tr><tr><td>Identifier:</td><td><div>100019A</div></td></tr><tr><td>Active:</td><td>true</td></tr><tr><td>Name:</td><td> Mark <b>WILLIAMS </b></td></tr><tr><td>Gender:</td><td>MALE</td></tr><tr><td>Birth Date:</td><td>05/04/1963</td></tr><tr><td>Deceased:</td><td>false</td></tr><tr><td>Address:</td><td><span>City6582 </span><span>State6582 </span><span>Country6582 </span></td></tr></tbody></table></div>"
            },
            "extension": [
              {
                "url": "http://fhir.openmrs.org/ext/person-attribute",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-type",
                    "valueString": "demo_patient"
                  },
                  {
                    "url": "http://fhir.openmrs.org/ext/person-attribute-value",
                    "valueBoolean": true
                  }
                ]
              }
            ],
            "identifier": [
              {
                "id": "c403b449-1b39-477f-adc5-e14a5e55729c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/patient/identifier#location",
                    "valueReference": {
                      "reference": "Location/92dbdbdf-17da-4cf0-873c-ad15dfae71cb",
                      "type": "Location",
                      "display": "Site 42"
                    }
                  }
                ],
                "use": "official",
                "type": {
                  "coding": [
                    {
                      "code": "05a29f94-c0ed-11e2-94be-8c13b969e334"
                    }
                  ],
                  "text": "OpenMRS ID"
                },
                "value": "100019A"
              }
            ],
            "active": true,
            "name": [
              {
                "id": "b670e6f4-72a1-4e11-8c37-47efbd9b1daa",
                "text": "Mark Williams",
                "family": "Williams",
                "given": [
                  "Mark"
                ]
              }
            ],
            "gender": "male",
            "birthDate": "1963-04-05",
            "deceasedBoolean": false,
            "address": [
              {
                "id": "af9daa13-9bc8-4eb4-a71e-cad5a421ac1c",
                "extension": [
                  {
                    "url": "http://fhir.openmrs.org/ext/address",
                    "extension": [
                      {
                        "url": "http://fhir.openmrs.org/ext/address#address1",
                        "valueString": "Address16582"
                      }
                    ]
                  }
                ],
                "use": "home",
                "city": "City6582",
                "state": "State6582",
                "postalCode": "07339",
                "country": "Country6582"
              }
            ]
          }
        }
      ]
    }
  }
}

The capability statement is public and declares FHIR R4

PASSED · 0.1s · @US-002 @api
01-GET-metadata
{
  "step": "When I request the FHIR capability statement",
  "timestamp": "2026-10-01 17:47:57 -04:00",
  "request": {
    "method": "GET",
    "url": "http://localhost/openmrs/ws/fhir2/R4/metadata",
    "headers": {
      "Accept": "application/fhir+json",
      "Authorization": "(none: anonymous request)"
    }
  },
  "response": {
    "status": 200,
    "statusText": "",
    "contentType": "application/fhir+json;charset=UTF-8",
    "body": {
      "resourceType": "CapabilityStatement",
      "id": "f1e80fc6-4d28-46eb-82b6-bc4671dd553b",
      "name": "RestServer",
      "status": "active",
      "date": "2026-10-01T21:47:57.205+00:00",
      "publisher": "Not provided",
      "kind": "instance",
      "software": {
        "name": "HAPI FHIR Server",
        "version": "5.7.9"
      },
      "implementation": {
        "description": "HAPI FHIR",
        "url": "http://localhost/openmrs/ws/fhir2/R4"
      },
      "fhirVersion": "4.0.1",
      "format": [
        "application/fhir+xml",
        "xml",
        "application/fhir+json",
        "json"
      ],
      "rest": [
        {
          "mode": "server",
          "resource": [
            {
              "type": "AllergyIntolerance",
              "profile": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "AllergyIntolerance:patient"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "category",
                  "type": "token",
                  "documentation": "food | medication | environment | biologic"
                },
                {
                  "name": "clinical-status",
                  "type": "token",
                  "documentation": "active | inactive | resolved"
                },
                {
                  "name": "code",
                  "type": "token",
                  "documentation": "Code that identifies the allergy or intolerance"
                },
                {
                  "name": "manifestation",
                  "type": "token",
                  "documentation": "Clinical symptoms/signs associated with the Event"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "Who the sensitivity is for"
                },
                {
                  "name": "severity",
                  "type": "token",
                  "documentation": "mild | moderate | severe (of event as a whole)"
                },
                {
                  "name": "subject",
                  "type": "reference"
                }
              ]
            },
            {
              "type": "CarePlan",
              "profile": "http://hl7.org/fhir/StructureDefinition/CarePlan",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "subject",
                  "type": "string",
                  "documentation": "Who the care plan is for"
                }
              ]
            },
            {
              "type": "Condition",
              "profile": "http://hl7.org/fhir/StructureDefinition/Condition",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "Condition:patient"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "category",
                  "type": "token",
                  "documentation": "The category of the condition"
                },
                {
                  "name": "clinical-status",
                  "type": "token",
                  "documentation": "The clinical status of the condition"
                },
                {
                  "name": "code",
                  "type": "token",
                  "documentation": "Code for the condition"
                },
                {
                  "name": "onset-age",
                  "type": "quantity",
                  "documentation": "Onsets as age or age range"
                },
                {
                  "name": "onset-date",
                  "type": "date",
                  "documentation": "Date related onsets (dateTime and Period)"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "Who has the condition?"
                },
                {
                  "name": "recorded-date",
                  "type": "date",
                  "documentation": "Date record was first recorded"
                },
                {
                  "name": "subject",
                  "type": "reference",
                  "documentation": "Who has the condition?"
                }
              ]
            },
            {
              "type": "DiagnosticReport",
              "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "code",
                  "type": "token",
                  "documentation": "The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result"
                },
                {
                  "name": "encounter",
                  "type": "reference",
                  "documentation": "The Encounter when the order was made"
                },
                {
                  "name": "issued",
                  "type": "date",
                  "documentation": "When the report was issued"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "The subject of the report if a patient"
                },
                {
                  "name": "result",
                  "type": "reference",
                  "documentation": "Link to an atomic result (observation resource)"
                },
                {
                  "name": "subject",
                  "type": "reference",
                  "documentation": "The subject of the report"
                }
              ]
            },
            {
              "type": "Encounter",
              "profile": "http://hl7.org/fhir/StructureDefinition/Encounter",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient"
              ],
              "searchRevInclude": [
                "DiagnosticReport:encounter",
                "MedicationDispense:prescription",
                "MedicationRequest:encounter",
                "Observation:encounter",
                "ServiceRequest:encounter"
              ],
              "searchParam": [
                {
                  "name": "_has",
                  "type": "string"
                },
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "_tag",
                  "type": "token"
                },
                {
                  "name": "date",
                  "type": "date",
                  "documentation": "A date within the period the Encounter lasted"
                },
                {
                  "name": "location",
                  "type": "reference",
                  "documentation": "Location the encounter takes place"
                },
                {
                  "name": "participant",
                  "type": "reference",
                  "documentation": "Persons involved in the encounter other than the patient"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "The patient or group present at the encounter"
                },
                {
                  "name": "subject",
                  "type": "reference",
                  "documentation": "The patient or group present at the encounter"
                },
                {
                  "name": "type",
                  "type": "token",
                  "documentation": "Specific type of encounter"
                }
              ],
              "operation": [
                {
                  "name": "everything",
                  "definition": "http://localhost/openmrs/ws/fhir2/R4/OperationDefinition/EncounterPatient-it-everything"
                },
                {
                  "name": "encountersWithMedicationRequests",
                  "definition": "http://localhost/openmrs/ws/fhir2/R4/OperationDefinition/Encounter-query-encountersWithMedicationRequests"
                }
              ]
            },
            {
              "type": "EpisodeOfCare",
              "profile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
              "interaction": [
                {
                  "code": "read"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ]
            },
            {
              "type": "Flag",
              "profile": "http://hl7.org/fhir/StructureDefinition/Flag",
              "interaction": [
                {
                  "code": "read"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "*",
                "Flag:patient"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "category",
                  "type": "token"
                },
                {
                  "name": "code",
                  "type": "token"
                },
                {
                  "name": "date",
                  "type": "date",
                  "documentation": "Time period when flag is active"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "The identity of a subject to list flags for"
                }
              ]
            },
            {
              "type": "Group",
              "profile": "http://hl7.org/fhir/StructureDefinition/Group",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "*",
                "Group:managing-entity"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "managing-entity",
                  "type": "reference",
                  "documentation": "Entity that is the custodian of the Group's definition"
                }
              ],
              "operation": [
                {
                  "name": "members",
                  "definition": "http://localhost/openmrs/ws/fhir2/R4/OperationDefinition/Group-i-members"
                }
              ]
            },
            {
              "type": "Immunization",
              "profile": "http://hl7.org/fhir/StructureDefinition/Immunization",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "*",
                "Immunization:patient"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "The patient for the vaccination record"
                }
              ]
            },
            {
              "type": "Invoice",
              "profile": "http://hl7.org/fhir/StructureDefinition/Invoice",
              "interaction": [
                {
                  "code": "read"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ]
            },
            {
              "type": "Location",
              "profile": "http://hl7.org/fhir/StructureDefinition/Location",
              "interaction": [
                {
                  "code": "update"
                },
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "Location:partof"
              ],
              "searchRevInclude": [
                "Encounter:location",
                "Location:partof"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "_tag",
                  "type": "token"
                },
                {
                  "name": "address-city",
                  "type": "string",
                  "documentation": "A city specified in an address"
                },
                {
                  "name": "address-country",
                  "type": "string",
                  "documentation": "A country specified in an address"
                },
                {
                  "name": "address-postalcode",
                  "type": "string",
                  "documentation": "A postal code specified in an address"
                },
                {
                  "name": "address-state",
                  "type": "string",
                  "documentation": "A state specified in an address"
                },
                {
                  "name": "name",
                  "type": "string",
                  "documentation": "A portion of the location's name or alias"
                },
                {
                  "name": "partof",
                  "type": "reference",
                  "documentation": "A location of which this location is a part"
                }
              ]
            },
            {
              "type": "Medication",
              "profile": "http://hl7.org/fhir/StructureDefinition/Medication",
              "interaction": [
                {
                  "code": "update"
                },
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "MedicationDispense:prescription",
                "MedicationRequest:medication"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "code",
                  "type": "token",
                  "documentation": "Returns medications for a specific code"
                },
                {
                  "name": "form",
                  "type": "token",
                  "documentation": "Returns medications for a specific dose form"
                },
                {
                  "name": "ingredient-code",
                  "type": "token",
                  "documentation": "Returns medications for this ingredient code"
                }
              ]
            },
            {
              "type": "MedicationDispense",
              "profile": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "MedicationDispense:context",
                "MedicationDispense:medication",
                "MedicationDispense:patient",
                "MedicationDispense:performer",
                "MedicationDispense:prescription"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "context",
                  "type": "reference",
                  "documentation": "Returns dispenses with a specific context (episode or episode of care)"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "The identity of a patient to list dispenses  for"
                },
                {
                  "name": "prescription",
                  "type": "reference",
                  "documentation": "The identity of a prescription to list dispenses from"
                },
                {
                  "name": "subject",
                  "type": "reference",
                  "documentation": "The identity of a patient for whom to list dispenses"
                }
              ]
            },
            {
              "type": "MedicationRequest",
              "profile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
              "interaction": [
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester"
              ],
              "searchRevInclude": [
                "MedicationDispense:prescription"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "code",
                  "type": "token",
                  "documentation": "Return prescriptions of this medication code"
                },
                {
                  "name": "encounter",
                  "type": "reference",
                  "documentation": "Return prescriptions with this encounter identifier"
                },
                {
                  "name": "fulfillerStatus",
                  "type": "token"
                },
                {
                  "name": "medication",
                  "type": "reference",
                  "documentation": "Return prescriptions for this medication reference"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "Returns prescriptions for a specific patient"
                },
                {
                  "name": "requester",
                  "type": "reference",
                  "documentation": "Returns prescriptions prescribed by this prescriber"
                },
                {
                  "name": "status",
                  "type": "token",
                  "documentation": "Status of the prescription"
                },
                {
                  "name": "subject",
                  "type": "reference",
                  "documentation": "The identity of a patient to list orders  for"
                }
              ]
            },
            {
              "type": "Observation",
              "profile": "http://hl7.org/fhir/StructureDefinition/Observation",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient"
              ],
              "searchRevInclude": [
                "DiagnosticReport:result",
                "Observation:has-member"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "category",
                  "type": "token",
                  "documentation": "The classification of the type of observation"
                },
                {
                  "name": "code",
                  "type": "token",
                  "documentation": "The code of the observation type"
                },
                {
                  "name": "date",
                  "type": "date",
                  "documentation": "Obtained date/time. If the obtained element is a period, a date that falls in the period"
                },
                {
                  "name": "encounter",
                  "type": "reference",
                  "documentation": "Encounter related to the observation"
                },
                {
                  "name": "has-member",
                  "type": "reference",
                  "documentation": "Related resource that belongs to the Observation group"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "The subject that the observation is about (if patient)"
                },
                {
                  "name": "subject",
                  "type": "reference",
                  "documentation": "The subject that the observation is about"
                },
                {
                  "name": "value-concept",
                  "type": "token",
                  "documentation": "The value of the observation, if the value is a CodeableConcept"
                },
                {
                  "name": "value-date",
                  "type": "date",
                  "documentation": "The value of the observation, if the value is a date or period of time"
                },
                {
                  "name": "value-quantity",
                  "type": "quantity",
                  "documentation": "The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)"
                },
                {
                  "name": "value-string",
                  "type": "string",
                  "documentation": "The value of the observation, if the value is a string, and also searches in CodeableConcept.text"
                }
              ],
              "operation": [
                {
                  "name": "lastn-encounters",
                  "definition": "http://localhost/openmrs/ws/fhir2/R4/OperationDefinition/Observation-t-lastn-encounters"
                },
                {
                  "name": "lastn",
                  "definition": "http://localhost/openmrs/ws/fhir2/R4/OperationDefinition/Observation-t-lastn"
                }
              ]
            },
            {
              "type": "OperationDefinition",
              "profile": "http://hl7.org/fhir/StructureDefinition/OperationDefinition",
              "interaction": [
                {
                  "code": "read"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ]
            },
            {
              "type": "Patient",
              "profile": "http://hl7.org/fhir/StructureDefinition/Patient",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "DiagnosticReport:patient",
                "Encounter:patient",
                "MedicationDispense:prescription",
                "MedicationRequest:patient",
                "Observation:patient",
                "ServiceRequest:patient"
              ],
              "searchParam": [
                {
                  "name": "_has",
                  "type": "string"
                },
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "address-city",
                  "type": "string",
                  "documentation": "A city specified in an address"
                },
                {
                  "name": "address-country",
                  "type": "string",
                  "documentation": "A country specified in an address"
                },
                {
                  "name": "address-postalcode",
                  "type": "string",
                  "documentation": "A postalCode specified in an address"
                },
                {
                  "name": "address-state",
                  "type": "string",
                  "documentation": "A state specified in an address"
                },
                {
                  "name": "birthdate",
                  "type": "date",
                  "documentation": "The patient's date of birth"
                },
                {
                  "name": "death-date",
                  "type": "date",
                  "documentation": "The date of death has been provided and satisfies this search value"
                },
                {
                  "name": "deceased",
                  "type": "token",
                  "documentation": "This patient has been marked as deceased, or as a death date entered"
                },
                {
                  "name": "family",
                  "type": "string",
                  "documentation": "A portion of the family name of the patient"
                },
                {
                  "name": "gender",
                  "type": "token",
                  "documentation": "Gender of the patient"
                },
                {
                  "name": "given",
                  "type": "string",
                  "documentation": "A portion of the given name of the patient"
                },
                {
                  "name": "identifier",
                  "type": "token",
                  "documentation": "A patient identifier"
                },
                {
                  "name": "name",
                  "type": "string",
                  "documentation": "A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text"
                }
              ],
              "operation": [
                {
                  "name": "everything",
                  "definition": "http://localhost/openmrs/ws/fhir2/R4/OperationDefinition/EncounterPatient-it-everything"
                },
                {
                  "name": "openmrsPatients",
                  "definition": "http://localhost/openmrs/ws/fhir2/R4/OperationDefinition/Patient-query-openmrsPatients"
                }
              ]
            },
            {
              "type": "Person",
              "profile": "http://hl7.org/fhir/StructureDefinition/Person",
              "interaction": [
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                },
                {
                  "code": "update"
                }
              ],
              "searchInclude": [
                "Person:link:Patient",
                "Person:patient"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "address-city",
                  "type": "string",
                  "documentation": "A city specified in an address"
                },
                {
                  "name": "address-country",
                  "type": "string",
                  "documentation": "A country specified in an address"
                },
                {
                  "name": "address-postalcode",
                  "type": "string",
                  "documentation": "A postal code specified in an address"
                },
                {
                  "name": "address-state",
                  "type": "string",
                  "documentation": "A state specified in an address"
                },
                {
                  "name": "birthdate",
                  "type": "date",
                  "documentation": "The person's date of birth"
                },
                {
                  "name": "gender",
                  "type": "token",
                  "documentation": "The gender of the person"
                },
                {
                  "name": "name",
                  "type": "string",
                  "documentation": "A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text"
                }
              ]
            },
            {
              "type": "PlanDefinition",
              "profile": "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
              "interaction": [
                {
                  "code": "read"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "status",
                  "type": "string",
                  "documentation": "The current status of the plan definition"
                }
              ]
            },
            {
              "type": "Practitioner",
              "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "interaction": [
                {
                  "code": "update"
                },
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "Encounter:participant",
                "MedicationDispense:prescription",
                "MedicationRequest:requester",
                "ServiceRequest:requester"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "address-city",
                  "type": "string",
                  "documentation": "A city specified in an address"
                },
                {
                  "name": "address-country",
                  "type": "string",
                  "documentation": "A country specified in an address"
                },
                {
                  "name": "address-postalcode",
                  "type": "string",
                  "documentation": "A postalCode specified in an address"
                },
                {
                  "name": "address-state",
                  "type": "string",
                  "documentation": "A state specified in an address"
                },
                {
                  "name": "family",
                  "type": "string",
                  "documentation": "A portion of the family name"
                },
                {
                  "name": "given",
                  "type": "string",
                  "documentation": "A portion of the given name"
                },
                {
                  "name": "identifier",
                  "type": "token",
                  "documentation": "A practitioner's Identifier"
                },
                {
                  "name": "name",
                  "type": "string",
                  "documentation": "A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text"
                }
              ]
            },
            {
              "type": "RelatedPerson",
              "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "interaction": [
                {
                  "code": "read"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "RelatedPerson:patient"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "address-city",
                  "type": "string",
                  "documentation": "A city specified in an address"
                },
                {
                  "name": "address-country",
                  "type": "string",
                  "documentation": "A country specified in an address"
                },
                {
                  "name": "address-postalcode",
                  "type": "string",
                  "documentation": "A postal code specified in an address"
                },
                {
                  "name": "address-state",
                  "type": "string",
                  "documentation": "A state specified in an address"
                },
                {
                  "name": "birthdate",
                  "type": "date",
                  "documentation": "The Related Person's date of birth"
                },
                {
                  "name": "gender",
                  "type": "token",
                  "documentation": "Gender of the related person"
                },
                {
                  "name": "name",
                  "type": "string",
                  "documentation": "A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text"
                }
              ]
            },
            {
              "type": "ServiceRequest",
              "profile": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
              "interaction": [
                {
                  "code": "read"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "code",
                  "type": "token",
                  "documentation": "What is being requested/ordered"
                },
                {
                  "name": "encounter",
                  "type": "reference",
                  "documentation": "An encounter in which this request is made"
                },
                {
                  "name": "occurrence",
                  "type": "date",
                  "documentation": "When service should occur"
                },
                {
                  "name": "patient",
                  "type": "reference",
                  "documentation": "Search by subject - a patient"
                },
                {
                  "name": "requester",
                  "type": "reference",
                  "documentation": "Who/what is requesting service"
                },
                {
                  "name": "subject",
                  "type": "reference",
                  "documentation": "Search by subject"
                }
              ]
            },
            {
              "type": "Task",
              "profile": "http://hl7.org/fhir/StructureDefinition/Task",
              "interaction": [
                {
                  "code": "update"
                },
                {
                  "code": "create"
                },
                {
                  "code": "delete"
                },
                {
                  "code": "read"
                },
                {
                  "code": "patch"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "Task:based-on",
                "Task:encounter",
                "Task:owner",
                "Task:patient"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "_id",
                  "type": "token",
                  "documentation": "The ID of the resource"
                },
                {
                  "name": "_lastUpdated",
                  "type": "date"
                },
                {
                  "name": "based-on",
                  "type": "reference",
                  "documentation": "Search by requests this task is based on"
                },
                {
                  "name": "code",
                  "type": "token",
                  "documentation": "Search by task code"
                },
                {
                  "name": "focus",
                  "type": "reference",
                  "documentation": "Search by task focus"
                },
                {
                  "name": "owner",
                  "type": "reference",
                  "documentation": "Search by task owner"
                },
                {
                  "name": "status",
                  "type": "token",
                  "documentation": "Search by task status"
                },
                {
                  "name": "subject",
                  "type": "reference",
                  "documentation": "Search by subject"
                }
              ]
            },
            {
              "type": "ValueSet",
              "profile": "http://hl7.org/fhir/StructureDefinition/ValueSet",
              "interaction": [
                {
                  "code": "read"
                },
                {
                  "code": "search-type"
                }
              ],
              "searchInclude": [
                "*"
              ],
              "searchRevInclude": [
                "AllergyIntolerance:patient",
                "AllergyIntolerance:subject",
                "Condition:patient",
                "Condition:subject",
                "DiagnosticReport:encounter",
                "DiagnosticReport:patient",
                "DiagnosticReport:result",
                "DiagnosticReport:subject",
                "Encounter:location",
                "Encounter:participant",
                "Encounter:patient",
                "Encounter:subject",
                "Flag:patient",
                "Group:managing-entity",
                "Immunization:patient",
                "Location:partof",
                "MedicationDispense:context",
                "MedicationDispense:patient",
                "MedicationDispense:prescription",
                "MedicationDispense:subject",
                "MedicationRequest:encounter",
                "MedicationRequest:medication",
                "MedicationRequest:patient",
                "MedicationRequest:requester",
                "MedicationRequest:subject",
                "Observation:encounter",
                "Observation:has-member",
                "Observation:patient",
                "Observation:subject",
                "ServiceRequest:encounter",
                "ServiceRequest:patient",
                "ServiceRequest:requester",
                "ServiceRequest:subject",
                "Task:based-on",
                "Task:focus",
                "Task:owner",
                "Task:subject"
              ],
              "searchParam": [
                {
                  "name": "title",
                  "type": "string",
                  "documentation": "The human-friendly name of the value set"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}