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
| 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-fixtureautocreate: true
autodelete: true
resource:
au-core-patient-conformant
fixture
id
frog-participantautocreate: true
autodelete: true
resource:
au-core-encounter-participant
fixture
id
frog-locationautocreate: true
autodelete: true
resource:
au-core-encounter-location
fixture
id
frog-service-providerautocreate: true
autodelete: true
resource:
au-core-encounter-service-provider
fixture
id
frog-reason-conditionautocreate: true
autodelete: true
resource:
au-core-encounter-reason-condition
fixture
id
encounter-fixtureautocreate: 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
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) Encounter true /${encounterId} action
Asserts
Response WarningOnly okay false
test
name: SearchByPatient
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) Encounter true ?patient=${patientId} action
Asserts
Response WarningOnly okay false action
Asserts
Expression WarningOnly Bundle.entry.resource.ofType(Encounter).class.code.where($this = 'AMB').exists() false
test
name: SearchByPatientAndDate
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) Encounter true ?patient=${patientId}&date=2024-03-01 action
Asserts
Response WarningOnly okay false action
Asserts
Expression WarningOnly Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists() false
test
name: SearchByDateMultipleAnd
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) Encounter true ?date=ge2020-01-01&date=le2030-01-01 action
Asserts
Response WarningOnly okay false action
Asserts
Expression WarningOnly Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists() false
test
name: SearchByStatusMultipleOr
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: search (Search) Encounter true ?status=in-progress,finished action
Asserts
Response WarningOnly okay false action
Asserts
Expression WarningOnly Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists() false
test
name: MustSupport
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) Encounter true /${encounterId} action
Asserts
Expression WarningOnly Encounter.status.exists() false action
Asserts
Expression WarningOnly Encounter.class.exists() false action
Asserts
Expression WarningOnly Encounter.subject.exists() false action
Asserts
Expression WarningOnly Encounter.participant.exists() false action
Asserts
Expression WarningOnly Encounter.participant.individual.exists() false action
Asserts
Expression WarningOnly Encounter.participant.type.exists() false action
Asserts
Expression WarningOnly Encounter.period.exists() false action
Asserts
Expression WarningOnly Encounter.reasonCode.exists() false action
Asserts
Expression WarningOnly Encounter.reasonReference.exists() false action
Asserts
Expression WarningOnly Encounter.location.exists() false action
Asserts
Expression WarningOnly Encounter.location.location.exists() false action
Asserts
Expression WarningOnly Encounter.serviceProvider.exists() false action
Asserts
Expression WarningOnly Encounter.serviceType.exists() false
test
name: ProfileValidation
action
Operations
Type Resource EncodeRequestUrl Params Test script operation code: read (Read) Encounter true /${encounterId} action
Asserts
ValidateProfileId WarningOnly http://hl7.org.au/fhir/core/StructureDefinition/au-core-encounter false