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

TestScript: AU Core RelatedPerson — SHALL-level conformance

Official URL: http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-relatedperson Version: 0.1.0
Active as of 2026-08-16 Computable Name: AUCoreRelatedPerson

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.

url: TestScript AU Core RelatedPerson — SHALL-level conformance

version: 0.1.0

name: AUCoreRelatedPerson

title: AU Core RelatedPerson — SHALL-level conformance

status: Active

date: 2026-08-16 05:55:37+0000

publisher: FHIR Frog

contact: FHIR Frog: https://gitlab.com/fhirfrog

description:

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: true

autodelete: true

resource: au-core-relatedperson-patient

fixture

id

relatedperson-fixture

autocreate: true

autodelete: true

resource: au-core-relatedperson-conformant

variable

name: relatedPersonId

path: RelatedPerson.id

sourceId: relatedperson-fixture

variable

name: patientId

path: Patient.id

sourceId: relatedperson-patient-fixture

test

name: Read

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)RelatedPersontrue/${relatedPersonId}

action

Asserts

-ResponseWarningOnly
*okayfalse

test

name: SearchByPatient

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)RelatedPersontrue?patient=Patient/${patientId}

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()false

test

name: SearchById

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)RelatedPersontrue?_id=${relatedPersonId}

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()false

test

name: SearchByName

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)RelatedPersontrue?name=Banks

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()false

test

name: SearchByRelationship

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)RelatedPersontrue?relationship=http://terminology.hl7.org/CodeSystem/v3-RoleCode|FTH

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(RelatedPerson).relationship.coding.code.where($this = 'FTH').exists()false

test

name: MustSupport

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)RelatedPersontrue/${relatedPersonId}

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.patient.exists()false

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.relationship.exists()false

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.name.exists()false

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.name.use.exists()false

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.name.text.exists()false

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.name.family.exists()false

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.name.given.exists()false

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.telecom.exists()false

action

Asserts

-ExpressionWarningOnly
*RelatedPerson.address.exists()false

test

name: ProfileValidation

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)RelatedPersontrue/${relatedPersonId}

action

Asserts

-ValidateProfileIdWarningOnly
*http://hl7.org.au/fhir/core/StructureDefinition/au-core-relatedpersonfalse