Generated Narrative: TestScript au-core-condition url: TestScript AU Core Condition — SHALL-level conformance version: 0.1.0 name: AUCoreCondition title: AU Core Condition — SHALL-level conformance status: Active date: 2026-08-16 05:55:37+0000 publisher: FHIR Frog contact: FHIR Frog: 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: au-core-patient-conformant fixture id condition-fixture autocreate: true autodelete: true resource: au-core-condition-conformant variable name: patientId path: Patient.id sourceId: patient-fixture variable name: conditionId path: Condition.id sourceId: condition-fixture test name: Read action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: read (Read) Condition true /${conditionId} action Asserts - Response WarningOnly * okay false test name: SearchByPatient action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: search (Search) Condition true ?patient=${patientId} action Asserts - Response WarningOnly * okay false action Asserts - Expression WarningOnly * Bundle.entry.resource.ofType(Condition).where(code.coding.code = '68566005').exists() false test name: SearchByPatientAndCategory action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: search (Search) Condition true ?patient=${patientId}&category=http://terminology.hl7.org/CodeSystem/condition-category|problem-list-item action Asserts - Response WarningOnly * okay false action Asserts - Expression WarningOnly * Bundle.entry.resource.ofType(Condition).where(category.coding.code = 'problem-list-item').exists() false test name: SearchByPatientAndClinicalStatus action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: search (Search) Condition true ?patient=${patientId}&clinical-status=http://terminology.hl7.org/CodeSystem/condition-clinical|resolved action Asserts - Response WarningOnly * okay false action Asserts - Expression WarningOnly * Bundle.entry.resource.ofType(Condition).where(clinicalStatus.coding.code = 'resolved').exists() false test name: SearchByPatientAndCode action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: search (Search) Condition true ?patient=${patientId}&code=http://snomed.info/sct|68566005 action Asserts - Response WarningOnly * okay false action Asserts - Expression WarningOnly * Bundle.entry.resource.ofType(Condition).where(code.coding.code = '68566005').exists() false test name: MustSupport action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: read (Read) Condition true /${conditionId} action Asserts - Expression WarningOnly * Condition.clinicalStatus.exists() false action Asserts - Expression WarningOnly * Condition.verificationStatus.exists() false action Asserts - Expression WarningOnly * Condition.category.exists() false action Asserts - Expression WarningOnly * Condition.severity.exists() false action Asserts - Expression WarningOnly * Condition.code.exists() false action Asserts - Expression WarningOnly * Condition.subject.exists() false action Asserts - Expression WarningOnly * Condition.onset.exists() false action Asserts - Expression WarningOnly * Condition.abatement.exists() false action Asserts - Expression WarningOnly * Condition.note.exists() false test name: ProfileValidation action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: read (Read) Condition true /${conditionId} action Asserts - ValidateProfileId WarningOnly * http://hl7.org.au/fhir/core/StructureDefinition/au-core-condition false
AU Core Condition — SHALL-level conformance
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.
Bundle.entry.resource.ofType(Condition).where(code.coding.code = '68566005').exists()
Bundle.entry.resource.ofType(Condition).where(category.coding.code = 'problem-list-item').exists()
Bundle.entry.resource.ofType(Condition).where(clinicalStatus.coding.code = 'resolved').exists()