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 AU Core Pathology Result Observation (au-core-diagnosticresult-path, 2.0.0) requirements identified in fhirfrog/au-core-compiler#22 (AUC-017): read, search by patient+code/patient+category/patient+category+date (mirroring au-fhir-core-inferno's diagnosticresult_path group), must-support presence across all 22 MS elements - including the category:lab (fixed http://terminology.hl7.org/CodeSystem/observation-category|laboratory) and category:specificDiscipline (extensible-bound to the AU THS pathology-diagnostic-service-category ValueSet, e.g. v2-0074|CH for Chemistry) slices - and profile conformance validation. Same obligation-pair split as fhirfrog/au-core-compiler#21's Diagnostic Result Observation TestScript: 'diagnosticresultpath-fixture' is the ordinary case (value[x], interpretation, specimen, referenceRange, and a component all known and populated), and 'diagnosticresultpath-absent-fixture' is the genuinely-not-known case (dataAbsentReason/component.dataAbsentReason instead of value[x]/component.value[x], satisfying the profile's au-core-obs-01 invariant, with hasMember linking back to the ordinary fixture as a panel would). ObligationNoError and ProfileValidationObligationPair exercise the same requester-side SHALL:no-error / au-core-obs-01 machine-checking this profile shares with #21 - see that TestScript's description for why this only became testable once fhirfrog/fhir-frog's AssertionEvaluator gained assert.responseCode support and OperationExecutor's executeSearch started catching BaseServerResponseException. Reference-resolution and the remaining SHOULD/MAY search variants are not replicated - see fhirfrog/au-core-compiler#6 for the general scope rationale.
patient-fixture: au-core-patient-conformant (created before, and removed after, the run)diagnosticresultpath-fixture: au-core-diagnosticresult-path-conformant (created before, and removed after, the run)diagnosticresultpath-absent-fixture: au-core-diagnosticresult-path-absent (created before, and removed after, the run)${patientId} = Patient.id of patient-fixture${pathResultId} = Observation.id of diagnosticresultpath-fixture${pathResultAbsentId} = Observation.id of diagnosticresultpath-absent-fixtureREAD Observation/${pathResultId}
response = okay
SEARCH Observation?patient=Patient/${patientId}&code=http://loinc.org|2951-2
response = okay
expression = Bundle.entry.resource.ofType(Observation).code.coding.code.where($this = '2951-2').exists()
SEARCH Observation?patient=Patient/${patientId}&category=http://terminology.hl7.org/CodeSystem/observation-category|laboratory
response = okay
expression = Bundle.entry.resource.ofType(Observation).category.coding.code.where($this = 'laboratory').exists()
SEARCH Observation?patient=Patient/${patientId}&category=http://terminology.hl7.org/CodeSystem/observation-category|laboratory&date=2026-01-20
response = okay
expression = Bundle.entry.resource.ofType(Observation).code.coding.code.where($this = '2951-2').exists()
READ Observation/${pathResultId}
expression = Observation.status.exists()
expression = Observation.category.exists()
expression = Observation.category.coding.code.where($this = 'laboratory').exists()
expression = Observation.category.coding.system.where($this = 'http://terminology.hl7.org/CodeSystem/v2-0074').exists()
expression = Observation.code.exists()
expression = Observation.subject.exists()
expression = Observation.effective.exists()
expression = Observation.performer.exists()
expression = Observation.value.exists()
expression = Observation.interpretation.exists()
expression = Observation.specimen.exists()
expression = Observation.referenceRange.exists()
expression = Observation.referenceRange.low.exists()
expression = Observation.referenceRange.high.exists()
expression = Observation.referenceRange.type.exists()
expression = Observation.referenceRange.text.exists()
expression = Observation.component.exists()
expression = Observation.component.code.exists()
expression = Observation.component.value.exists()
READ Observation/${pathResultAbsentId}
expression = Observation.dataAbsentReason.exists()
expression = Observation.component.dataAbsentReason.exists()
expression = Observation.hasMember.exists()
SEARCH Observation?patient=Patient/${patientId}&code=http://loinc.org|718-7
responseCode = 200
expression = Bundle.entry.resource.ofType(Observation).dataAbsentReason.coding.code.where($this = 'not-performed').exists()
READ Observation/${pathResultId}
validateProfileId = http://hl7.org.au/fhir/core/StructureDefinition/au-core-diagnosticresult-path
READ Observation/${pathResultAbsentId}
validateProfileId = http://hl7.org.au/fhir/core/StructureDefinition/au-core-diagnosticresult-path