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-healthcareservice"/>
<url
value="http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-healthcareservice"/>
<version value="0.1.0"/>
<name value="AUCoreHealthcareService"/>
<title value="AU Core HealthcareService — 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 AU Core HealthcareService (2.0.0) requirements: read, search by name/identifier/_id/service-type, must-support element presence, and profile conformance validation. Mirrors au-fhir-core-inferno's HealthcareServiceGroup (healthcare_service_read_test, healthcare_service_name_search_test, healthcare_service_identifier_search_test, healthcare_service_id_search_test, healthcare_service_service_type_search_test, healthcare_service_must_support_test, healthcare_service_validation_test). Per fhirfrog/au-core-compiler#10, all four search parameters named in that issue (name/identifier/_id/service-type) are exercised as individual single-parameter search tests even though Inferno labels only the name search as SHALL for this resource (identifier, _id and service-type are SHOULD) — HealthcareService is a small, mostly generic-CRUD profile, so this TestScript still keeps to the SHALL-level scope rationale from #6 by testing each search parameter once in isolation rather than replicating Inferno's SHOULD/MAY combinatorial and chained-search coverage. HealthcareService has no mandatory reference to Patient or any other resource, so the fixture below is fully self-contained."/>
<fixture id="healthcareservice-fixture">
<autocreate value="true"/>
<autodelete value="true"/>
<resource>
<reference value="au-core-healthcareservice-conformant"/>
</resource>
</fixture>
<variable>
<name value="healthcareServiceId"/>
<path value="HealthcareService.id"/>
<sourceId value="healthcareservice-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="HealthcareService"/>
<encodeRequestUrl value="true"/>
<params value="/${healthcareServiceId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByName"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="HealthcareService"/>
<encodeRequestUrl value="true"/>
<params value="?name=Frog"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(HealthcareService).name.where($this.contains('Frog')).exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByIdentifier"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="HealthcareService"/>
<encodeRequestUrl value="true"/>
<params
value="?identifier=http://pca.digitalhealth.gov.au/id/pca-healthcare-service|4d00ad2659cb4b54bd8028798af62631"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(HealthcareService).name.where($this.contains('Frog')).exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchById"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="HealthcareService"/>
<encodeRequestUrl value="true"/>
<params value="?_id=${healthcareServiceId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(HealthcareService).name.where($this.contains('Frog')).exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByServiceType"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="HealthcareService"/>
<encodeRequestUrl value="true"/>
<params value="?service-type=http://snomed.info/sct|722140001"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(HealthcareService).name.where($this.contains('Frog')).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="HealthcareService"/>
<encodeRequestUrl value="true"/>
<params value="/${healthcareServiceId}"/>
</operation>
</action>
<action>
<assert>
<expression value="HealthcareService.identifier.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="HealthcareService.type.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="HealthcareService.name.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="HealthcareService.telecom.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="HealthcareService"/>
<encodeRequestUrl value="true"/>
<params value="/${healthcareServiceId}"/>
</operation>
</action>
<action>
<assert>
<validateProfileId
value="http://hl7.org.au/fhir/core/StructureDefinition/au-core-healthcareservice"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>