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 Patient — SHALL-level conformance - JSON Representation

Active as of 2026-10-23

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "au-core-patient",
  "url" : "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-patient",
  "version" : "0.1.0",
  "name" : "AUCorePatient",
  "title" : "AU Core Patient — 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 Patient (2.0.0) requirements: read, search by _id, search by identifier, must-support element presence, and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's PatientGroup (patient_read_test, patient__id_search_test, patient_identifier_search_test, patient_must_support_test, patient_validation_test) — the SHOULD/MAY-level combinatorial search tests (name, gender, birthdate, indigenous-status, gender-identity and their combinations) are not replicated here; see fhirfrog/au-core-compiler#6 for scope rationale.",
  "fixture" : [
    {
      "id" : "patient-fixture",
      "autocreate" : true,
      "autodelete" : true,
      "resource" : {
        "reference" : "au-core-patient-conformant"
      }
    }
  ],
  "variable" : [
    {
      "name" : "patientId",
      "path" : "Patient.id",
      "sourceId" : "patient-fixture"
    }
  ],
  "test" : [
    {
      "name" : "Read",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Patient",
            "encodeRequestUrl" : true,
            "params" : "/${patientId}"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchById",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Patient",
            "encodeRequestUrl" : true,
            "params" : "?_id=${patientId}"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(Patient).name.family.contains('Frog')",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByIdentifier",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Patient",
            "encodeRequestUrl" : true,
            "params" : "?identifier=http://ns.electronichealth.net.au/id/hi/ihi/1.0|8003608833357361"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(Patient).name.family.contains('Frog')",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "MustSupport",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Patient",
            "encodeRequestUrl" : true,
            "params" : "/${patientId}"
          }
        },
        {
          "assert" : {
            "expression" : "Patient.identifier.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.name.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.name.use.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.name.text.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.name.family.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.name.given.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.telecom.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.telecom.system.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.telecom.use.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.telecom.value.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.gender.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.birthDate.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.address.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.communication.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.communication.language.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.communication.preferred.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.extension.where(url = 'http://hl7.org.au/fhir/StructureDefinition/indigenous-status').exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity').exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Patient.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/individual-pronouns').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "ProfileValidation",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Patient",
            "encodeRequestUrl" : true,
            "params" : "/${patientId}"
          }
        },
        {
          "assert" : {
            "validateProfileId" : "http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}