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-relatedperson"/>
<url
value="http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-relatedperson"/>
<version value="0.1.0"/>
<name value="AUCoreRelatedPerson"/>
<title value="AU Core RelatedPerson — 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 RelatedPerson (2.0.0) requirements identified in fhirfrog/au-core-compiler#20: read, search by patient (SHALL), search by _id/name/relationship (SHOULD/MAY, included per the issue's explicit call-out of all four params — see fhirfrog/au-core-compiler#17 for the equivalent Practitioner-level precedent of including SHOULD/MAY searches when an issue names them), must-support element presence (patient, relationship, name+use/text/family/given, telecom, address), and profile conformance validation. Mirrors au-fhir-core-inferno's RelatedPersonGroup (related_person_patient_search_test, related_person__id_search_test, related_person_name_search_test, related_person_relationship_search_test, related_person_read_test, related_person_validation_test, related_person_must_support_test); the patient+name and patient+relationship combinator variants and reference-resolution test are not replicated — see fhirfrog/au-core-compiler#6 for the general scope rationale. No obligation-extension or negative-testing complexity is exercised here (unlike fhirfrog/au-core-compiler#21/#22): plain must-support presence checks are sufficient per issue #20's own scoping."/>
<fixture id="relatedperson-patient-fixture">
<autocreate value="true"/>
<autodelete value="true"/>
<resource>
<reference value="au-core-relatedperson-patient"/>
</resource>
</fixture>
<fixture id="relatedperson-fixture">
<autocreate value="true"/>
<autodelete value="true"/>
<resource>
<reference value="au-core-relatedperson-conformant"/>
</resource>
</fixture>
<variable>
<name value="relatedPersonId"/>
<path value="RelatedPerson.id"/>
<sourceId value="relatedperson-fixture"/>
</variable>
<variable>
<name value="patientId"/>
<path value="Patient.id"/>
<sourceId value="relatedperson-patient-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="RelatedPerson"/>
<encodeRequestUrl value="true"/>
<params value="/${relatedPersonId}"/>
</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="RelatedPerson"/>
<encodeRequestUrl value="true"/>
<params value="?patient=Patient/${patientId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').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="RelatedPerson"/>
<encodeRequestUrl value="true"/>
<params value="?_id=${relatedPersonId}"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()"/>
<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="RelatedPerson"/>
<encodeRequestUrl value="true"/>
<params value="?name=Banks"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="SearchByRelationship"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="RelatedPerson"/>
<encodeRequestUrl value="true"/>
<params
value="?relationship=http://terminology.hl7.org/CodeSystem/v3-RoleCode|FTH"/>
</operation>
</action>
<action>
<assert>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression
value="Bundle.entry.resource.ofType(RelatedPerson).relationship.coding.code.where($this = 'FTH').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="RelatedPerson"/>
<encodeRequestUrl value="true"/>
<params value="/${relatedPersonId}"/>
</operation>
</action>
<action>
<assert>
<expression value="RelatedPerson.patient.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="RelatedPerson.relationship.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="RelatedPerson.name.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="RelatedPerson.name.use.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="RelatedPerson.name.text.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="RelatedPerson.name.family.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="RelatedPerson.name.given.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="RelatedPerson.telecom.exists()"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<expression value="RelatedPerson.address.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="RelatedPerson"/>
<encodeRequestUrl value="true"/>
<params value="/${relatedPersonId}"/>
</operation>
</action>
<action>
<assert>
<validateProfileId
value="http://hl7.org.au/fhir/core/StructureDefinition/au-core-relatedperson"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>