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
| Active as of 2026-10-23 |
{
"resourceType" : "TestScript",
"id" : "au-core-medication",
"url" : "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-medication",
"version" : "0.1.0",
"name" : "AUCoreMedication",
"title" : "AU Core Medication — SHALL-level conformance",
"status" : "active",
"date" : "2026-10-23T03:11:59+00:00",
"publisher" : "FHIR Frog",
"contact" : [
{
"name" : "FHIR Frog",
"telecom" : [
{
"system" : "url",
"value" : "https://gitlab.com/fhirfrog"
}
]
}
],
"description" : "Covers the SHALL-level AU Core Medication (2.0.0) requirements reachable via direct read: read by id, must-support element presence (code; code.coding pbs and amt slices), and profile conformance validation. AU Core Medication defines no AU-Core search parameters, so this TestScript is read-only by design — there is no per-search-param test block, unlike au-core-patient. Inferno's own coverage of au-core-medication is itself indirect: config.basic.json sets Medication: {skip_generation: true}, so no standalone Inferno group exists for this profile, and it is otherwise reached only via MedicationRequest's medication_request_medication_inclusion_validation_test.rb, which validates a Medication resource fetched through _include=MedicationRequest:medication. That inclusion pattern is covered separately by au-core-medicationrequest's TestScript (fhirfrog/au-core-compiler#14) and is not duplicated here. This TestScript instead exercises Medication directly by id, mirroring the SHALL-only scope precedent set for Patient (fhirfrog/au-core-compiler#6). See fhirfrog/au-core-compiler#13 for scope rationale.",
"fixture" : [
{
"id" : "medication-fixture",
"autocreate" : true,
"autodelete" : true,
"resource" : {
"reference" : "au-core-medication-conformant"
}
}
],
"variable" : [
{
"name" : "medicationId",
"path" : "Medication.id",
"sourceId" : "medication-fixture"
}
],
"test" : [
{
"name" : "Read",
"action" : [
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "read"
},
"resource" : "Medication",
"encodeRequestUrl" : true,
"params" : "/${medicationId}"
}
},
{
"assert" : {
"response" : "okay",
"warningOnly" : false
}
}
]
},
{
"name" : "MustSupport",
"action" : [
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "read"
},
"resource" : "Medication",
"encodeRequestUrl" : true,
"params" : "/${medicationId}"
}
},
{
"assert" : {
"expression" : "Medication.code.exists()",
"warningOnly" : false
}
},
{
"assert" : {
"expression" : "Medication.code.coding.where(system = 'http://pbs.gov.au/code/item').exists()",
"warningOnly" : false
}
},
{
"assert" : {
"expression" : "Medication.code.coding.where(system = 'http://snomed.info/sct').exists()",
"warningOnly" : false
}
}
]
},
{
"name" : "ProfileValidation",
"action" : [
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "read"
},
"resource" : "Medication",
"encodeRequestUrl" : true,
"params" : "/${medicationId}"
}
},
{
"assert" : {
"validateProfileId" : "http://hl7.org.au/fhir/core/StructureDefinition/au-core-medication",
"warningOnly" : false
}
}
]
}
]
}