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

Active as of 2026-10-23

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "au-core-organization",
  "url" : "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-organization",
  "version" : "0.1.0",
  "name" : "AUCoreOrganization",
  "title" : "AU Core Organization — 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 Organization (2.0.0) requirements: read, search by identifier, search by name, must-support element presence (including identifier slice-presence checks for HPI-O and ABN), and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's OrganizationGroup (organization_read_test, organization_identifier_search_test, organization_name_search_test, organization_must_support_test, organization_validation_test) — the SHOULD-level searches (_id, address) and the SHOULD-level identifier-slice-specific searches (organization_identifier_hpio_search_test, organization_identifier_abn_search_test) are not replicated as separate search tests here, consistent with fhirfrog/au-core-compiler#6 scope rationale. The HPI-O/ABN identifier slice presence that those SHOULD-level search tests would otherwise exercise is instead covered directly via FHIRPath assertions in the MustSupport test against a fixture carrying both slices; see fhirfrog/au-core-compiler#16.",
  "fixture" : [
    {
      "id" : "organization-fixture",
      "autocreate" : true,
      "autodelete" : true,
      "resource" : {
        "reference" : "au-core-organization-conformant"
      }
    }
  ],
  "variable" : [
    {
      "name" : "organizationId",
      "path" : "Organization.id",
      "sourceId" : "organization-fixture"
    }
  ],
  "test" : [
    {
      "name" : "Read",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Organization",
            "encodeRequestUrl" : true,
            "params" : "/${organizationId}"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByIdentifier",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Organization",
            "encodeRequestUrl" : true,
            "params" : "?identifier=http://ns.electronichealth.net.au/id/hi/hpio/1.0|8003620000000013"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByName",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Organization",
            "encodeRequestUrl" : true,
            "params" : "?name=Frog"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "MustSupport",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Organization",
            "encodeRequestUrl" : true,
            "params" : "/${organizationId}"
          }
        },
        {
          "assert" : {
            "expression" : "Organization.identifier.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Organization.identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpio/1.0').exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Organization.identifier.where(system = 'http://hl7.org.au/id/abn').exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Organization.type.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Organization.name.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Organization.telecom.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Organization.telecom.system.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Organization.telecom.value.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Organization.address.exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "ProfileValidation",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Organization",
            "encodeRequestUrl" : true,
            "params" : "/${organizationId}"
          }
        },
        {
          "assert" : {
            "validateProfileId" : "http://hl7.org.au/fhir/core/StructureDefinition/au-core-organization",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}