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 Encounter — SHALL-level conformance

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

Covers the SHALL-level AU Core Encounter (2.0.0) requirements: read, search by patient, the SHALL search-combo patient+date, must-support element presence, and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's EncounterGroup (encounter_read_test, encounter_patient_search_test, encounter_date_patient_search_test, encounter_must_support_test, encounter_validation_test). Per fhirfrog/au-core-compiler#9, two SHOULD/MAY-level combinatorial search tests are additionally included — SearchByDateMultipleAnd (date=ge…&date=le…, encounter_date_multiple_and_search_test) and SearchByStatusMultipleOr (status=a,b, encounter_status_multiple_or_search_test) — because Inferno's generated group configures multi-and/multi-or combos specifically for Encounter's clinical-date and status search parameters and issue #9 calls these out by name; this is a deliberate, narrow exception to the SHALL-only scope rationale used for Patient (#6) and Condition (#8). The remaining SHOULD/MAY-level searches (status, date, class, class+patient, patient+status, patient+location, location) and the reference-resolution test are not replicated here.

url: TestScript AU Core Encounter — SHALL-level conformance

version: 0.1.0

name: AUCoreEncounter

title: AU Core Encounter — 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 SHALL-level AU Core Encounter (2.0.0) requirements: read, search by patient, the SHALL search-combo patient+date, must-support element presence, and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's EncounterGroup (encounter_read_test, encounter_patient_search_test, encounter_date_patient_search_test, encounter_must_support_test, encounter_validation_test). Per fhirfrog/au-core-compiler#9, two SHOULD/MAY-level combinatorial search tests are additionally included — SearchByDateMultipleAnd (date=ge...&date=le..., encounter_date_multiple_and_search_test) and SearchByStatusMultipleOr (status=a,b, encounter_status_multiple_or_search_test) — because Inferno's generated group configures multi-and/multi-or combos specifically for Encounter's clinical-date and status search parameters and issue #9 calls these out by name; this is a deliberate, narrow exception to the SHALL-only scope rationale used for Patient (#6) and Condition (#8). The remaining SHOULD/MAY-level searches (status, date, class, class+patient, patient+status, patient+location, location) and the reference-resolution test are not replicated here.

fixture

id

patient-fixture

autocreate: true

autodelete: true

resource: au-core-patient-conformant

fixture

id

frog-participant

autocreate: true

autodelete: true

resource: au-core-encounter-participant

fixture

id

frog-location

autocreate: true

autodelete: true

resource: au-core-encounter-location

fixture

id

frog-service-provider

autocreate: true

autodelete: true

resource: au-core-encounter-service-provider

fixture

id

frog-reason-condition

autocreate: true

autodelete: true

resource: au-core-encounter-reason-condition

fixture

id

encounter-fixture

autocreate: true

autodelete: true

resource: au-core-encounter-conformant

variable

name: patientId

path: Patient.id

sourceId: patient-fixture

variable

name: encounterId

path: Encounter.id

sourceId: encounter-fixture

test

name: Read

action

Operations

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

action

Asserts

-ResponseWarningOnly
*okayfalse

test

name: SearchByPatient

action

Operations

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

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Encounter).class.code.where($this = 'AMB').exists()false

test

name: SearchByPatientAndDate

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Encountertrue?patient=${patientId}&date=2024-03-01

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists()false

test

name: SearchByDateMultipleAnd

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Encountertrue?date=ge2020-01-01&date=le2030-01-01

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists()false

test

name: SearchByStatusMultipleOr

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Encountertrue?status=in-progress,finished

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists()false

test

name: MustSupport

action

Operations

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

action

Asserts

-ExpressionWarningOnly
*Encounter.status.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.class.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.subject.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.participant.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.participant.individual.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.participant.type.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.period.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.reasonCode.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.reasonReference.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.location.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.location.location.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.serviceProvider.exists()false

action

Asserts

-ExpressionWarningOnly
*Encounter.serviceType.exists()false

test

name: ProfileValidation

action

Operations

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

action

Asserts

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