{
  "resourceType" : "TestScript",
  "id" : "ie-core-testscript-patient-search",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript ie-core-testscript-patient-search</b></p><a name=\"ie-core-testscript-patient-search\"> </a><a name=\"hcie-core-testscript-patient-search\"> </a><p><b>url</b>: <a href=\"TestScript-ie-core-testscript-patient-search.html\">TestScript IE Core TestScript: Patient Search</a></p><p><b>version</b>: 0.3.0</p><p><b>name</b>: IECoreTestScriptPatientSearch</p><p><b>title</b>: IE Core TestScript: Patient Search</p><p><b>status</b>: Draft</p><p><b>date</b>: 2025-01-01</p><p><b>publisher</b>: Nithin Mohan T K (Proof of Concept)</p><p><b>contact</b>: Nithin Mohan T K (Proof of Concept): <a href=\"https://github.com/hl7-ie\">https://github.com/hl7-ie</a>,<a href=\"mailto:nithinmohantk1@gmail.com\">nithinmohantk1@gmail.com</a></p><p><b>description</b>: </p><div><p>Verifies that a FHIR server supports searching for Patient resources by name, identifier, and birthdate.</p>\n</div><p><b>jurisdiction</b>: <span title=\"Codes:{urn:iso:std:iso:3166 IE}\">Ireland</span></p><blockquote><p><b>test</b></p><p><b>name</b>: Patient Search by Name</p><p><b>description</b>: Search for a Patient by family name.</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.4.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>Patient</td><td>Search for Patients by family name</td><td>json</td><td>true</td><td>?family=Murphy</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm the response is HTTP 200 OK</td><td>okay</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Resource</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm the response is a Bundle</td><td>Bundle</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Patient Search by IHI</p><p><b>description</b>: Search for a Patient by IHI (Individual Health Identifier).</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.4.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>Patient</td><td>Search for Patients by IHI</td><td>json</td><td>true</td><td>?identifier=https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/ihi|210000000012345678</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm the response is HTTP 200 OK</td><td>okay</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Resource</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm the response is a Bundle</td><td>Bundle</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Patient Search by Birthdate</p><p><b>description</b>: Search for a Patient by date of birth.</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.4.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>Patient</td><td>Search for Patients by birthdate</td><td>json</td><td>true</td><td>?birthdate=1978-05-15</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm the response is HTTP 200 OK</td><td>okay</td><td>false</td></tr></table></blockquote></blockquote></div>"
  },
  "url" : "https://hl7-ie.github.io/ie-core/fhir/ie/core/TestScript/ie-core-testscript-patient-search",
  "version" : "0.3.0",
  "name" : "IECoreTestScriptPatientSearch",
  "title" : "IE Core TestScript: Patient Search",
  "status" : "draft",
  "date" : "2025-01-01",
  "publisher" : "Nithin Mohan T K (Proof of Concept)",
  "contact" : [{
    "name" : "Nithin Mohan T K (Proof of Concept)",
    "telecom" : [{
      "system" : "url",
      "value" : "https://github.com/hl7-ie"
    },
    {
      "system" : "email",
      "value" : "nithinmohantk1@gmail.com"
    }]
  }],
  "description" : "Verifies that a FHIR server supports searching for Patient resources by name, identifier, and birthdate.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "IE",
      "display" : "Ireland"
    }]
  }],
  "test" : [{
    "name" : "Patient Search by Name",
    "description" : "Search for a Patient by family name.",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "search"
        },
        "resource" : "Patient",
        "description" : "Search for Patients by family name",
        "accept" : "json",
        "encodeRequestUrl" : true,
        "params" : "?family=Murphy"
      }
    },
    {
      "assert" : {
        "description" : "Confirm the response is HTTP 200 OK",
        "response" : "okay",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "description" : "Confirm the response is a Bundle",
        "resource" : "Bundle",
        "warningOnly" : false
      }
    }]
  },
  {
    "name" : "Patient Search by IHI",
    "description" : "Search for a Patient by IHI (Individual Health Identifier).",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "search"
        },
        "resource" : "Patient",
        "description" : "Search for Patients by IHI",
        "accept" : "json",
        "encodeRequestUrl" : true,
        "params" : "?identifier=https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/ihi|210000000012345678"
      }
    },
    {
      "assert" : {
        "description" : "Confirm the response is HTTP 200 OK",
        "response" : "okay",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "description" : "Confirm the response is a Bundle",
        "resource" : "Bundle",
        "warningOnly" : false
      }
    }]
  },
  {
    "name" : "Patient Search by Birthdate",
    "description" : "Search for a Patient by date of birth.",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "search"
        },
        "resource" : "Patient",
        "description" : "Search for Patients by birthdate",
        "accept" : "json",
        "encodeRequestUrl" : true,
        "params" : "?birthdate=1978-05-15"
      }
    },
    {
      "assert" : {
        "description" : "Confirm the response is HTTP 200 OK",
        "response" : "okay",
        "warningOnly" : false
      }
    }]
  }]
}