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
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.
patient-fixture: au-core-patient-conformant (created before, and removed after, the run)frog-participant: au-core-encounter-participant (created before, and removed after, the run)frog-location: au-core-encounter-location (created before, and removed after, the run)frog-service-provider: au-core-encounter-service-provider (created before, and removed after, the run)frog-reason-condition: au-core-encounter-reason-condition (created before, and removed after, the run)encounter-fixture: au-core-encounter-conformant (created before, and removed after, the run)${patientId} = Patient.id of patient-fixture${encounterId} = Encounter.id of encounter-fixtureREAD Encounter/${encounterId}
response = okay
SEARCH Encounter?patient=${patientId}
response = okay
expression = Bundle.entry.resource.ofType(Encounter).class.code.where($this = 'AMB').exists()
SEARCH Encounter?patient=${patientId}&date=2024-03-01
response = okay
expression = Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists()
SEARCH Encounter?date=ge2020-01-01&date=le2030-01-01
response = okay
expression = Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists()
SEARCH Encounter?status=in-progress,finished
response = okay
expression = Bundle.entry.resource.ofType(Encounter).status.where($this = 'finished').exists()
READ Encounter/${encounterId}
expression = Encounter.status.exists()
expression = Encounter.class.exists()
expression = Encounter.subject.exists()
expression = Encounter.participant.exists()
expression = Encounter.participant.individual.exists()
expression = Encounter.participant.type.exists()
expression = Encounter.period.exists()
expression = Encounter.reasonCode.exists()
expression = Encounter.reasonReference.exists()
expression = Encounter.location.exists()
expression = Encounter.location.location.exists()
expression = Encounter.serviceProvider.exists()
expression = Encounter.serviceType.exists()
READ Encounter/${encounterId}
validateProfileId = http://hl7.org.au/fhir/core/StructureDefinition/au-core-encounter