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

Active as of 2026-10-23

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "au-core-condition",
  "url" : "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-condition",
  "version" : "0.1.0",
  "name" : "AUCoreCondition",
  "title" : "AU Core Condition — 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 Condition (2.0.0) requirements: read, search by patient, the SHALL search-combos patient+category and patient+clinical-status, must-support element presence, and profile conformance validation, plus one SHOULD search-combo (patient+code) included to demonstrate the multi-param querystring pattern. Mirrors the SHALL subset of au-fhir-core-inferno's ConditionGroup (condition_read_test, condition_patient_search_test, condition_patient_category_search_test, condition_patient_clinical_status_search_test, condition_must_support_test, condition_validation_test). The remaining SHOULD/MAY-level combinatorial search tests (patient+category+clinical-status, patient+onset-date, code with multiple-or, onset-date with multiple-and, the DVA/IHI/Medicare identifier chain searches on patient, and the reference-resolution test) are not replicated here, per the same SHALL-only scope rationale used for Patient; see fhirfrog/au-core-compiler#6 and #8.",
  "fixture" : [
    {
      "id" : "patient-fixture",
      "autocreate" : true,
      "autodelete" : true,
      "resource" : {
        "reference" : "au-core-patient-conformant"
      }
    },
    {
      "id" : "condition-fixture",
      "autocreate" : true,
      "autodelete" : true,
      "resource" : {
        "reference" : "au-core-condition-conformant"
      }
    }
  ],
  "variable" : [
    {
      "name" : "patientId",
      "path" : "Patient.id",
      "sourceId" : "patient-fixture"
    },
    {
      "name" : "conditionId",
      "path" : "Condition.id",
      "sourceId" : "condition-fixture"
    }
  ],
  "test" : [
    {
      "name" : "Read",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Condition",
            "encodeRequestUrl" : true,
            "params" : "/${conditionId}"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByPatient",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Condition",
            "encodeRequestUrl" : true,
            "params" : "?patient=${patientId}"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(Condition).where(code.coding.code = '68566005').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByPatientAndCategory",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Condition",
            "encodeRequestUrl" : true,
            "params" : "?patient=${patientId}&category=http://terminology.hl7.org/CodeSystem/condition-category|problem-list-item"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(Condition).where(category.coding.code = 'problem-list-item').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByPatientAndClinicalStatus",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Condition",
            "encodeRequestUrl" : true,
            "params" : "?patient=${patientId}&clinical-status=http://terminology.hl7.org/CodeSystem/condition-clinical|resolved"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(Condition).where(clinicalStatus.coding.code = 'resolved').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByPatientAndCode",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Condition",
            "encodeRequestUrl" : true,
            "params" : "?patient=${patientId}&code=http://snomed.info/sct|68566005"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(Condition).where(code.coding.code = '68566005').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "MustSupport",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Condition",
            "encodeRequestUrl" : true,
            "params" : "/${conditionId}"
          }
        },
        {
          "assert" : {
            "expression" : "Condition.clinicalStatus.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Condition.verificationStatus.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Condition.category.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Condition.severity.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Condition.code.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Condition.subject.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Condition.onset.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Condition.abatement.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Condition.note.exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "ProfileValidation",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Condition",
            "encodeRequestUrl" : true,
            "params" : "/${conditionId}"
          }
        },
        {
          "assert" : {
            "validateProfileId" : "http://hl7.org.au/fhir/core/StructureDefinition/au-core-condition",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}