Server Home  |  XIG Home  |  XIG Stats  | 

FHIRsmith Logo FHIR IG analytics

Packagenostalgic-ie.fhir.core
Resource TypeTestScript
IdTestScript-ie-core-testscript-patient-read.json
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=nostalgic-ie.fhir.core@0.2.0&canonical=https://hl7-ie.github.io/ie-core/fhir/ie/core/TestScript/ie-core-testscript-patient-read
URLhttps://hl7-ie.github.io/ie-core/fhir/ie/core/TestScript/ie-core-testscript-patient-read
Version0.2.0
Statusdraft
Date2025-01-01
NameIECoreTestScriptPatientRead
TitleIE Core TestScript: Patient Read
DescriptionVerifies that a FHIR server can return a Patient resource conforming to the IE Core Patient profile.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

No narrative content found in resource


Source1

{
  "resourceType": "TestScript",
  "id": "ie-core-testscript-patient-read",
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/TestScript/ie-core-testscript-patient-read",
  "version": "0.2.0",
  "name": "IECoreTestScriptPatientRead",
  "title": "IE Core TestScript: Patient Read",
  "status": "draft",
  "date": "2025-01-01",
  "publisher": "IE Core (Proof of Concept by Nithin Mohan T K)",
  "description": "Verifies that a FHIR server can return a Patient resource conforming to the IE Core Patient profile.",
  "fixture": [
    {
      "id": "patient-fixture",
      "autocreate": false,
      "autodelete": false,
      "resource": {
        "reference": "Patient/ie-core-patient-example"
      }
    }
  ],
  "test": [
    {
      "name": "Patient Read Test",
      "description": "Read a Patient and verify it conforms to the IE Core Patient profile.",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Patient",
            "description": "Read the Patient resource",
            "accept": "json",
            "encodeRequestUrl": true,
            "params": "/ie-core-patient-example"
          }
        },
        {
          "assert": {
            "description": "Confirm the response is HTTP 200 OK",
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Confirm the returned resource is a Patient",
            "resource": "Patient",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Confirm Patient has the IE Core Patient profile",
            "expression": "meta.profile.where($this = 'https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-patient').exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Confirm Patient has at least one name",
            "expression": "name.count() >= 1",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "description": "Confirm Patient has a gender",
            "expression": "gender.exists()",
            "warningOnly": false
          }
        }
      ]
    }
  ]
}