FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagefhirfrog.au-core-tests
Resource TypeTestScript
IdTestScript-au-core-patient.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/jgsuess/au-core-tests/TestScript-au-core-patient.html
URLhttp://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-patient
Version0.1.0
Statusactive
Date2026-08-16T05:55:37+00:00
NameAUCorePatient
TitleAU Core Patient — SHALL-level conformance
DescriptionCovers the SHALL-level AU Core Patient (2.0.0) requirements: read, search by _id, search by identifier, must-support element presence, and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's PatientGroup (patient_read_test, patient__id_search_test, patient_identifier_search_test, patient_must_support_test, patient_validation_test) — the SHOULD/MAY-level combinatorial search tests (name, gender, birthdate, indigenous-status, gender-identity and their combinations) are not replicated here; see fhirfrog/au-core-compiler#6 for scope rationale.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: TestScript au-core-patient

url: TestScript AU Core Patient — SHALL-level conformance

version: 0.1.0

name: AUCorePatient

title: AU Core Patient — SHALL-level conformance

status: Active

date: 2026-08-16 05:55:37+0000

publisher: FHIR Frog

contact: FHIR Frog: https://gitlab.com/fhirfrog

description:

Covers the SHALL-level AU Core Patient (2.0.0) requirements: read, search by _id, search by identifier, must-support element presence, and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's PatientGroup (patient_read_test, patient__id_search_test, patient_identifier_search_test, patient_must_support_test, patient_validation_test) — the SHOULD/MAY-level combinatorial search tests (name, gender, birthdate, indigenous-status, gender-identity and their combinations) are not replicated here; see fhirfrog/au-core-compiler#6 for scope rationale.

fixture

id

patient-fixture

autocreate: true

autodelete: true

resource: au-core-patient-conformant

Variables

-NamePathSourceId
*patientIdPatient.idpatient-fixture

test

name: Read

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Patienttrue/${patientId}

action

Asserts

-ResponseWarningOnly
*okayfalse

test

name: SearchById

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Patienttrue?_id=${patientId}

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Patient).name.family.contains('Frog')false

test

name: SearchByIdentifier

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Patienttrue?identifier=http://ns.electronichealth.net.au/id/hi/ihi/1.0|8003608833357361

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Patient).name.family.contains('Frog')false

test

name: MustSupport

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Patienttrue/${patientId}

action

Asserts

-ExpressionWarningOnly
*Patient.identifier.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.name.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.name.use.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.name.text.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.name.family.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.name.given.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.telecom.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.telecom.system.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.telecom.use.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.telecom.value.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.gender.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.birthDate.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.address.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.communication.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.communication.language.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.communication.preferred.exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.extension.where(url = 'http://hl7.org.au/fhir/StructureDefinition/indigenous-status').exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity').exists()false

action

Asserts

-ExpressionWarningOnly
*Patient.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/individual-pronouns').exists()false

test

name: ProfileValidation

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Patienttrue/${patientId}

action

Asserts

-ValidateProfileIdWarningOnly
*http://hl7.org.au/fhir/core/StructureDefinition/au-core-patientfalse

Source1

{
  "resourceType": "TestScript",
  "id": "au-core-patient",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-patient",
  "version": "0.1.0",
  "name": "AUCorePatient",
  "title": "AU Core Patient — SHALL-level conformance",
  "status": "active",
  "date": "2026-08-16T05:55:37+00:00",
  "publisher": "FHIR Frog",
  "contact": [
    {
      "name": "FHIR Frog",
      "telecom": [
        {
          "system": "url",
          "value": "https://gitlab.com/fhirfrog"
        }
      ]
    }
  ],
  "description": "Covers the SHALL-level AU Core Patient (2.0.0) requirements: read, search by _id, search by identifier, must-support element presence, and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's PatientGroup (patient_read_test, patient__id_search_test, patient_identifier_search_test, patient_must_support_test, patient_validation_test) — the SHOULD/MAY-level combinatorial search tests (name, gender, birthdate, indigenous-status, gender-identity and their combinations) are not replicated here; see fhirfrog/au-core-compiler#6 for scope rationale.",
  "fixture": [
    {
      "id": "patient-fixture",
      "autocreate": true,
      "autodelete": true,
      "resource": {
        "reference": "au-core-patient-conformant"
      }
    }
  ],
  "variable": [
    {
      "name": "patientId",
      "path": "Patient.id",
      "sourceId": "patient-fixture"
    }
  ],
  "test": [
    {
      "name": "Read",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Patient",
            "encodeRequestUrl": true,
            "params": "/${patientId}"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchById",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "Patient",
            "encodeRequestUrl": true,
            "params": "?_id=${patientId}"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(Patient).name.family.contains('Frog')",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByIdentifier",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "Patient",
            "encodeRequestUrl": true,
            "params": "?identifier=http://ns.electronichealth.net.au/id/hi/ihi/1.0|8003608833357361"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(Patient).name.family.contains('Frog')",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "MustSupport",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Patient",
            "encodeRequestUrl": true,
            "params": "/${patientId}"
          }
        },
        {
          "assert": {
            "expression": "Patient.identifier.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.name.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.name.use.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.name.text.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.name.family.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.name.given.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.telecom.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.telecom.system.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.telecom.use.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.telecom.value.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.gender.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.birthDate.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.address.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.communication.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.communication.language.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.communication.preferred.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.extension.where(url = 'http://hl7.org.au/fhir/StructureDefinition/indigenous-status').exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity').exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Patient.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/individual-pronouns').exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "ProfileValidation",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Patient",
            "encodeRequestUrl": true,
            "params": "/${patientId}"
          }
        },
        {
          "assert": {
            "validateProfileId": "http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient",
            "warningOnly": false
          }
        }
      ]
    }
  ]
}