FHIR Frog AU Core Conformance Tests
0.1.0 - draft
FHIR Frog AU Core Conformance Tests, published by FHIR Frog. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jgsuess/au-core-tests/ and changes regularly. See the Directory of published versions
| Official URL: http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-allergyintolerance | Version: 0.1.0 | |||
| Active as of 2026-08-16 | Computable Name: AUCoreAllergyIntolerance | |||
Covers the SHALL-level AU Core AllergyIntolerance (2.0.0) requirements: read, search by patient, must-support element presence, and profile conformance validation, plus a demonstration of the AU-specific chained patient.identifier (IHI) search that Inferno adds beyond generic us-core coverage. Also exercises the (MAY-level) standalone clinical-status search since it was explicitly called out for coverage in fhirfrog/au-core-compiler#7. Mirrors the relevant subset of au-fhir-core-inferno's AllergyIntoleranceGroup (allergy_intolerance_read_test, allergy_intolerance_patient_search_test, allergy_intolerance_clinical_status_search_test, allergy_intolerance_patient_ihi_chain_search_test, allergy_intolerance_must_support_test, allergy_intolerance_validation_test) — the SHOULD-level combined patient+clinical-status search, the Medicare/DVA chain variants (structurally identical to the IHI chain demonstrated here), the POST-search variant, and the reference-resolution test are not replicated; see fhirfrog/au-core-compiler#7 for scope rationale, following #6's precedent.
url: TestScript AU Core AllergyIntolerance — SHALL-level conformance plus chained identifier search
version: 0.1.0
name: AUCoreAllergyIntolerance
title: AU Core AllergyIntolerance — SHALL-level conformance plus chained identifier search
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 AllergyIntolerance (2.0.0) requirements: read, search by patient, must-support element presence, and profile conformance validation, plus a demonstration of the AU-specific chained patient.identifier (IHI) search that Inferno adds beyond generic us-core coverage. Also exercises the (MAY-level) standalone clinical-status search since it was explicitly called out for coverage in fhirfrog/au-core-compiler#7. Mirrors the relevant subset of au-fhir-core-inferno's AllergyIntoleranceGroup (allergy_intolerance_read_test, allergy_intolerance_patient_search_test, allergy_intolerance_clinical_status_search_test, allergy_intolerance_patient_ihi_chain_search_test, allergy_intolerance_must_support_test, allergy_intolerance_validation_test) — the SHOULD-level combined patient+clinical-status search, the Medicare/DVA chain variants (structurally identical to the IHI chain demonstrated here), the POST-search variant, and the reference-resolution test are not replicated; see fhirfrog/au-core-compiler#7 for scope rationale, following #6's precedent.
fixture
id
patient-fixtureautocreate: true
autodelete: true
resource:
au-core-patient-conformant
fixture
id
allergyintolerance-fixtureautocreate: true
autodelete: true
resource:
au-core-allergyintolerance-conformant
variable
name: patientId
path: Patient.id
sourceId: patient-fixture
variable
name: allergyIntoleranceId
path: AllergyIntolerance.id
sourceId: allergyintolerance-fixture
test
name: Read
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) AllergyIntolerance true /${allergyIntoleranceId} action
Asserts
Response WarningOnly okay false
test
name: SearchByPatient
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) AllergyIntolerance true ?patient=${patientId} action
Asserts
Response WarningOnly okay false action
Asserts
Expression WarningOnly Bundle.entry.resource.ofType(AllergyIntolerance).note.text.where($this.contains('Frog')).exists() false
test
name: SearchByClinicalStatus
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) AllergyIntolerance true ?clinical-status=http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical|active action
Asserts
Response WarningOnly okay false action
Asserts
Expression WarningOnly Bundle.entry.resource.ofType(AllergyIntolerance).note.text.where($this.contains('Frog')).exists() false
test
name: SearchByPatientIdentifierIHIChain
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) AllergyIntolerance true ?patient.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(AllergyIntolerance).note.text.where($this.contains('Frog')).exists() false
test
name: MustSupport
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) AllergyIntolerance true /${allergyIntoleranceId} action
Asserts
Expression WarningOnly AllergyIntolerance.clinicalStatus.exists() false action
Asserts
Expression WarningOnly AllergyIntolerance.verificationStatus.exists() false action
Asserts
Expression WarningOnly AllergyIntolerance.code.exists() false action
Asserts
Expression WarningOnly AllergyIntolerance.patient.exists() false action
Asserts
Expression WarningOnly AllergyIntolerance.onset.exists() false action
Asserts
Expression WarningOnly AllergyIntolerance.note.exists() false action
Asserts
Expression WarningOnly AllergyIntolerance.reaction.exists() false action
Asserts
Expression WarningOnly AllergyIntolerance.reaction.manifestation.exists() false action
Asserts
Expression WarningOnly AllergyIntolerance.reaction.severity.exists() false
test
name: ProfileValidation
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) AllergyIntolerance true /${allergyIntoleranceId} action
Asserts
ValidateProfileId WarningOnly http://hl7.org.au/fhir/core/StructureDefinition/au-core-allergyintolerance false