FHIR IG analytics| Package | fhirfrog.au-core-tests |
| Resource Type | TestScript |
| Id | TestScript-au-core-patient.json |
| FHIR Version | R4 |
| Source | https://build.fhir.org/ig/jgsuess/au-core-tests/TestScript-au-core-patient.html |
| URL | http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-patient |
| Version | 0.1.0 |
| Status | active |
| Date | 2026-08-16T05:55:37+00:00 |
| Name | AUCorePatient |
| Title | AU Core Patient — SHALL-level conformance |
| 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. |
No resources found
No resources found
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-fixtureautocreate: true
autodelete: true
resource:
au-core-patient-conformant
| Name | Path | SourceId |
| patientId | Patient.id | patient-fixture |
test
name: Read
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) Patient true /${patientId} action
Asserts
Response WarningOnly okay false
test
name: SearchById
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) Patient true ?_id=${patientId} action
Asserts
Response WarningOnly okay false action
Asserts
Expression WarningOnly Bundle.entry.resource.ofType(Patient).name.family.contains('Frog') false
test
name: SearchByIdentifier
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) Patient true ?identifier=http://ns.electronichealth.net.au/id/hi/ihi/1.0|8003608833357361 action
Asserts
Response WarningOnly okay false action
Asserts
Expression WarningOnly Bundle.entry.resource.ofType(Patient).name.family.contains('Frog') false
test
name: MustSupport
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) Patient true /${patientId} action
Asserts
Expression WarningOnly Patient.identifier.exists() false action
Asserts
Expression WarningOnly Patient.name.exists() false action
Asserts
Expression WarningOnly Patient.name.use.exists() false action
Asserts
Expression WarningOnly Patient.name.text.exists() false action
Asserts
Expression WarningOnly Patient.name.family.exists() false action
Asserts
Expression WarningOnly Patient.name.given.exists() false action
Asserts
Expression WarningOnly Patient.telecom.exists() false action
Asserts
Expression WarningOnly Patient.telecom.system.exists() false action
Asserts
Expression WarningOnly Patient.telecom.use.exists() false action
Asserts
Expression WarningOnly Patient.telecom.value.exists() false action
Asserts
Expression WarningOnly Patient.gender.exists() false action
Asserts
Expression WarningOnly Patient.birthDate.exists() false action
Asserts
Expression WarningOnly Patient.address.exists() false action
Asserts
Expression WarningOnly Patient.communication.exists() false action
Asserts
Expression WarningOnly Patient.communication.language.exists() false action
Asserts
Expression WarningOnly Patient.communication.preferred.exists() false action
Asserts
Expression WarningOnly Patient.extension.where(url = 'http://hl7.org.au/fhir/StructureDefinition/indigenous-status').exists() false action
Asserts
Expression WarningOnly Patient.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity').exists() false action
Asserts
Expression WarningOnly Patient.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/individual-pronouns').exists() false
test
name: ProfileValidation
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) Patient true /${patientId} action
Asserts
ValidateProfileId WarningOnly http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient false
{
"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
}
}
]
}
]
}