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

AU Core Pathology Result Observation

AU Core Pathology Result Observation — search & obligation-pair conformance

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.

Name
AUCoreDiagnosticResultPath
URL
http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-diagnosticresult-path
Status
active

Fixtures

  • 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)

Variables

  • ${patientId} = Patient.id of patient-fixture
  • ${pathResultId} = Observation.id of diagnosticresultpath-fixture
  • ${pathResultAbsentId} = Observation.id of diagnosticresultpath-absent-fixture

Read

  1. Read Observation by id (${pathResultId}) READ Observation/${pathResultId}
  2. Response status is okay response = okay

SearchByPatientCode

  1. Search Observation where patient = Patient/${patientId} and code = http://loinc.org|2951-2 SEARCH Observation?patient=Patient/${patientId}&code=http://loinc.org|2951-2
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(Observation).code.coding.code.where($this = '2951-2').exists() expression = Bundle.entry.resource.ofType(Observation).code.coding.code.where($this = '2951-2').exists()

SearchByPatientCategory

  1. Search Observation where patient = Patient/${patientId} and category = http://terminology.hl7.org/CodeSystem/observation-category|laboratory SEARCH Observation?patient=Patient/${patientId}&category=http://terminology.hl7.org/CodeSystem/observation-category|laboratory
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(Observation).category.coding.code.where($this = 'laboratory').exists() expression = Bundle.entry.resource.ofType(Observation).category.coding.code.where($this = 'laboratory').exists()

SearchByPatientCategoryDate

  1. Search Observation where patient = Patient/${patientId} and category = http://terminology.hl7.org/CodeSystem/observation-category|laboratory and date = 2026-01-20 SEARCH Observation?patient=Patient/${patientId}&category=http://terminology.hl7.org/CodeSystem/observation-category|laboratory&date=2026-01-20
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(Observation).code.coding.code.where($this = '2951-2').exists() expression = Bundle.entry.resource.ofType(Observation).code.coding.code.where($this = '2951-2').exists()

MustSupport

  1. Read Observation by id (${pathResultId}) READ Observation/${pathResultId}
  2. Check: Observation.status.exists() expression = Observation.status.exists()
  3. Check: Observation.category.exists() expression = Observation.category.exists()
  4. Check: Observation.category.coding.code.where($this = 'laboratory').exists() expression = Observation.category.coding.code.where($this = 'laboratory').exists()
  5. Check: Observation.category.coding.system.where($this = 'http://terminology.hl7.org/CodeSystem/v2-0074').exists() expression = Observation.category.coding.system.where($this = 'http://terminology.hl7.org/CodeSystem/v2-0074').exists()
  6. Check: Observation.code.exists() expression = Observation.code.exists()
  7. Check: Observation.subject.exists() expression = Observation.subject.exists()
  8. Check: Observation.effective.exists() expression = Observation.effective.exists()
  9. Check: Observation.performer.exists() expression = Observation.performer.exists()
  10. Check: Observation.value.exists() expression = Observation.value.exists()
  11. Check: Observation.interpretation.exists() expression = Observation.interpretation.exists()
  12. Check: Observation.specimen.exists() expression = Observation.specimen.exists()
  13. Check: Observation.referenceRange.exists() expression = Observation.referenceRange.exists()
  14. Check: Observation.referenceRange.low.exists() expression = Observation.referenceRange.low.exists()
  15. Check: Observation.referenceRange.high.exists() expression = Observation.referenceRange.high.exists()
  16. Check: Observation.referenceRange.type.exists() expression = Observation.referenceRange.type.exists()
  17. Check: Observation.referenceRange.text.exists() expression = Observation.referenceRange.text.exists()
  18. Check: Observation.component.exists() expression = Observation.component.exists()
  19. Check: Observation.component.code.exists() expression = Observation.component.code.exists()
  20. Check: Observation.component.value.exists() expression = Observation.component.value.exists()

MustSupportObligationPair

  1. Read Observation by id (${pathResultAbsentId}) READ Observation/${pathResultAbsentId}
  2. Check: Observation.dataAbsentReason.exists() expression = Observation.dataAbsentReason.exists()
  3. Check: Observation.component.dataAbsentReason.exists() expression = Observation.component.dataAbsentReason.exists()
  4. Check: Observation.hasMember.exists() expression = Observation.hasMember.exists()

ObligationNoError

  1. Search Observation where patient = Patient/${patientId} and code = http://loinc.org|718-7 SEARCH Observation?patient=Patient/${patientId}&code=http://loinc.org|718-7
  2. Response HTTP status code is 200 responseCode = 200
  3. Check: Bundle.entry.resource.ofType(Observation).dataAbsentReason.coding.code.where($this = 'not-performed').exists() expression = Bundle.entry.resource.ofType(Observation).dataAbsentReason.coding.code.where($this = 'not-performed').exists()

ProfileValidation

  1. Read Observation by id (${pathResultId}) READ Observation/${pathResultId}
  2. Validate the response against profile http://hl7.org.au/fhir/core/StructureDefinition/au-core-diagnosticresult-path validateProfileId = http://hl7.org.au/fhir/core/StructureDefinition/au-core-diagnosticresult-path

ProfileValidationObligationPair

  1. Read Observation by id (${pathResultAbsentId}) READ Observation/${pathResultAbsentId}
  2. Validate the response against profile http://hl7.org.au/fhir/core/StructureDefinition/au-core-diagnosticresult-path validateProfileId = http://hl7.org.au/fhir/core/StructureDefinition/au-core-diagnosticresult-path