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
| Active as of 2026-10-23 |
<TestScript xmlns="http://hl7.org/fhir">
<id value="au-core-condition"/>
<url
value="http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-condition"/>
<version value="0.1.0"/>
<name value="AUCoreCondition"/>
<title value="AU Core Condition — SHALL-level conformance"/>
<status value="active"/>
<date value="2026-10-23T03:11:59+00:00"/>
<publisher value="FHIR Frog"/>
<contact>
<name value="FHIR Frog"/>
<telecom>
<system value="url"/>
<value value="https://gitlab.com/fhirfrog"/>
</telecom>
</contact>
<description
value="Covers the SHALL-level AU Core Condition (2.0.0) requirements: read, search by patient, the SHALL search-combos patient+category and patient+clinical-status, must-support element presence, and profile conformance validation, plus one SHOULD search-combo (patient+code) included to demonstrate the multi-param querystring pattern. Mirrors the SHALL subset of au-fhir-core-inferno's ConditionGroup (condition_read_test, condition_patient_search_test, condition_patient_category_search_test, condition_patient_clinical_status_search_test, condition_must_support_test, condition_validation_test). The remaining SHOULD/MAY-level combinatorial search tests (patient+category+clinical-status, patient+onset-date, code with multiple-or, onset-date with multiple-and, the DVA/IHI/Medicare identifier chain searches on patient, and the reference-resolution test) are not replicated here, per the same SHALL-only scope rationale used for Patient; see fhirfrog/au-core-compiler#6 and #8."/>
<fixture id="patient-fixture">
<autocreate value="true"/>
<autodelete value="true"/>
<resource>
<reference value="au-core-patient-conformant"/>
</resource>
</fixture>
<fixture id="condition-fixture">
<autocreate value="true"/>
<autodelete value="true"/>
<resource>
<reference value="au-core-condition-conformant"/>
</resource>
</fixture>
<variable>
<name value="patientId"/>
<path value="Patient.id"/>
<sourceId value="patient-fixture"/>
</variable>
<variable>
<name value="conditionId"/>
<path value="Condition.id"/>
<sourceId value="condition-fixture"/>
</variable>
<test>
<name value="Read"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="read"/>
</type>
<resource value="Condition"/>
<encodeRequestUrl value="true"/>
<params value="/${conditionId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByPatient"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="Condition"/>
<encodeRequestUrl value="true"/>
<params value="?patient=${patientId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(Condition).where(code.coding.code = '68566005').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByPatientAndCategory"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="Condition"/>
<encodeRequestUrl value="true"/>
<params
value="?patient=${patientId}&category=http://terminology.hl7.org/CodeSystem/condition-category|problem-list-item"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(Condition).where(category.coding.code = 'problem-list-item').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByPatientAndClinicalStatus"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="Condition"/>
<encodeRequestUrl value="true"/>
<params
value="?patient=${patientId}&clinical-status=http://terminology.hl7.org/CodeSystem/condition-clinical|resolved"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(Condition).where(clinicalStatus.coding.code = 'resolved').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByPatientAndCode"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="Condition"/>
<encodeRequestUrl value="true"/>
<params
value="?patient=${patientId}&code=http://snomed.info/sct|68566005"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(Condition).where(code.coding.code = '68566005').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="MustSupport"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="read"/>
</type>
<resource value="Condition"/>
<encodeRequestUrl value="true"/>
<params value="/${conditionId}"/>
</operation>
</action>
<action>
<assert>
<expression value="Condition.clinicalStatus.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="Condition.verificationStatus.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="Condition.category.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="Condition.severity.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="Condition.code.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="Condition.subject.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="Condition.onset.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="Condition.abatement.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="Condition.note.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="ProfileValidation"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="read"/>
</type>
<resource value="Condition"/>
<encodeRequestUrl value="true"/>
<params value="/${conditionId}"/>
</operation>
</action>
<action>
<assert>
<validateProfileId
value="http://hl7.org.au/fhir/core/StructureDefinition/au-core-condition"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>