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-practitionerrole"/>
<url
value="http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-practitionerrole"/>
<version value="0.1.0"/>
<name value="AUCorePractitionerRole"/>
<title
value="AU Core PractitionerRole — core search & profile 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 PractitionerRole (2.0.0) requirements identified in fhirfrog/au-core-compiler#18: read, search by _id/identifier/practitioner/specialty/role/organization, the AU-specific chained-practitioner search (practitioner:Practitioner.identifier) combined with _include=PractitionerRole:practitioner, must-support element presence, and profile conformance validation. Mirrors au-fhir-core-inferno's PractitionerRoleGroup (practitioner_role_read_test, practitioner_role__id_search_test, practitioner_role_identifier_search_test, practitioner_role_identifier_medicare_search_test, practitioner_role_practitioner_search_test, practitioner_role_specialty_search_test, practitioner_role_role_search_test, practitioner_role_organization_search_test, practitioner_role_practitioner_chain_search_test, practitioner_role_practitioner_include_practitioner_test, practitioner_role_must_support_test, practitioner_role_validation_test). Issue #18's premise is that the chained-practitioner SearchParameter and the Medicare identifier search are plain query-string parameters that fhir-frog's byUrl-pass-through search executor already handles generically, so this TestScript exercises each as a single representative query rather than replicating Inferno's full SHOULD/MAY combinatorial variants (GET/POST comparison, multiple AND/OR reference forms, reference-form-only variants) — see fhirfrog/au-core-compiler#6 for the equivalent Patient-level scope rationale. The identifier fixture carries a Medicare-provider-number-typed identifier so the plain identifier search doubles as the Medicare identifier search. Per the Bundle-validation-gap caveat noted on fhirfrog/au-core-compiler#14, validateProfileId is not attempted against the _include'd search Bundle; PractitionerRole profile conformance is instead checked via a separate plain read."/>
<fixture id="practitionerrole-practitioner-fixture">
<autocreate value="true"/>
<autodelete value="true"/>
<resource>🔗
<reference value="au-core-practitionerrole-practitioner"/>
</resource>
</fixture>
<fixture id="practitionerrole-organization-fixture">
<autocreate value="true"/>
<autodelete value="true"/>
<resource>
<reference value="au-core-practitionerrole-organization"/>
</resource>
</fixture>
<fixture id="practitionerrole-fixture">
<autocreate value="true"/>
<autodelete value="true"/>
<resource>
<reference value="au-core-practitionerrole-conformant"/>
</resource>
</fixture>
<variable>
<name value="practitionerRoleId"/>
<path value="PractitionerRole.id"/>
<sourceId value="practitionerrole-fixture"/>
</variable>
<variable>
<name value="practitionerId"/>
<path value="Practitioner.id"/>
<sourceId value="practitionerrole-practitioner-fixture"/>
</variable>
<variable>
<name value="organizationId"/>
<path value="Organization.id"/>
<sourceId value="practitionerrole-organization-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="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params value="/${practitionerRoleId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<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="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params value="?_id=${practitionerRoleId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(PractitionerRole).code.coding.code.where($this = '62247001').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="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params
value="?identifier=http://ns.electronichealth.net.au/id/medicare-provider-number|2449001X"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(PractitionerRole).identifier.value.where($this = '2449001X').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByPractitioner"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params value="?practitioner=Practitioner/${practitionerId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(PractitionerRole).code.coding.code.where($this = '62247001').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchBySpecialty"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params value="?specialty=http://snomed.info/sct|408443003"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(PractitionerRole).specialty.coding.code.where($this = '408443003').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByRole"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params value="?role=http://snomed.info/sct|62247001"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(PractitionerRole).code.coding.code.where($this = '62247001').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByOrganization"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params value="?organization=Organization/${organizationId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(PractitionerRole).code.coding.code.where($this = '62247001').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="ChainedPractitionerIncludePractitioner"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params
value="?practitioner:Practitioner.identifier=http://ns.electronichealth.net.au/id/hi/hpii/1.0|8003614900041692&_include=PractitionerRole:practitioner"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(PractitionerRole).exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(Practitioner).name.family.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="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params value="/${practitionerRoleId}"/>
</operation>
</action>
<action>
<assert>
<expression value="PractitionerRole.identifier.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="PractitionerRole.practitioner.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="PractitionerRole.organization.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="PractitionerRole.code.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="PractitionerRole.specialty.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="PractitionerRole.telecom.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="PractitionerRole.telecom.system.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="PractitionerRole.telecom.value.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="PractitionerRole"/>
<encodeRequestUrl value="true"/>
<params value="/${practitionerRoleId}"/>
</operation>
</action>
<action>
<assert>
<validateProfileId
value="http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitionerrole"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>