FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagefhirfrog.au-core-tests
Resource TypeTestScript
IdTestScript-au-core-procedure.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/jgsuess/au-core-tests/TestScript-au-core-procedure.html
URLhttp://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-procedure
Version0.1.0
Statusactive
Date2026-08-16T05:55:37+00:00
NameAUCoreProcedure
TitleAU Core Procedure — SHALL-level conformance
DescriptionCovers the AU Core Procedure (2.0.0) requirements: read, search by patient (SHALL), search by code/date/status (individually MAY-level in AU Core, but included here because issue #19 explicitly calls for code/date/status/patient search coverage on the generic search mechanism, following the same precedent as fhirfrog/au-core-compiler#17's Practitioner TestScript), must-support element presence, and profile conformance validation. Mirrors the relevant subset of au-fhir-core-inferno's ProcedureGroup (procedure_read_test, procedure_patient_search_test, procedure_code_search_test, procedure_date_search_test, procedure_status_search_test, procedure_must_support_test, procedure_validation_test). The combinatorial SHOULD/MAY search tests (patient+date, patient+status, patient+code+date, multiple-or on code/status, multiple-and on date, the DVA/IHI/Medicare identifier chain searches on patient, and the reference-resolution test) are not replicated here, per the same scope rationale used for Patient/Condition/Organization/Practitioner; see fhirfrog/au-core-compiler#6 and #19.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: TestScript au-core-procedure

url: TestScript AU Core Procedure — SHALL-level conformance

version: 0.1.0

name: AUCoreProcedure

title: AU Core Procedure — 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 AU Core Procedure (2.0.0) requirements: read, search by patient (SHALL), search by code/date/status (individually MAY-level in AU Core, but included here because issue #19 explicitly calls for code/date/status/patient search coverage on the generic search mechanism, following the same precedent as fhirfrog/au-core-compiler#17's Practitioner TestScript), must-support element presence, and profile conformance validation. Mirrors the relevant subset of au-fhir-core-inferno's ProcedureGroup (procedure_read_test, procedure_patient_search_test, procedure_code_search_test, procedure_date_search_test, procedure_status_search_test, procedure_must_support_test, procedure_validation_test). The combinatorial SHOULD/MAY search tests (patient+date, patient+status, patient+code+date, multiple-or on code/status, multiple-and on date, the DVA/IHI/Medicare identifier chain searches on patient, and the reference-resolution test) are not replicated here, per the same scope rationale used for Patient/Condition/Organization/Practitioner; see fhirfrog/au-core-compiler#6 and #19.

fixture

id

patient-fixture

autocreate: true

autodelete: true

resource: au-core-patient-conformant

fixture

id

procedure-fixture

autocreate: true

autodelete: true

resource: au-core-procedure-conformant

variable

name: patientId

path: Patient.id

sourceId: patient-fixture

variable

name: procedureId

path: Procedure.id

sourceId: procedure-fixture

test

name: Read

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Proceduretrue/${procedureId}

action

Asserts

-ResponseWarningOnly
*okayfalse

test

name: SearchByPatient

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Proceduretrue?patient=${patientId}

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Procedure).code.coding.code.where($this = '80146002').exists()false

test

name: SearchByCode

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Proceduretrue?code=http://snomed.info/sct|80146002

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Procedure).code.coding.code.where($this = '80146002').exists()false

test

name: SearchByDate

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Proceduretrue?date=2020-06-15

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Procedure).performed.ofType(dateTime).toString().where($this.contains('2020-06-15')).exists()false

test

name: SearchByStatus

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Proceduretrue?status=completed

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Procedure).status.where($this = 'completed').exists()false

test

name: MustSupport

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Proceduretrue/${procedureId}

action

Asserts

-ExpressionWarningOnly
*Procedure.code.exists()false

action

Asserts

-ExpressionWarningOnly
*Procedure.encounter.exists()false

action

Asserts

-ExpressionWarningOnly
*Procedure.performed.exists()false

action

Asserts

-ExpressionWarningOnly
*Procedure.reasonCode.exists()false

action

Asserts

-ExpressionWarningOnly
*Procedure.reasonReference.exists()false

action

Asserts

-ExpressionWarningOnly
*Procedure.status.exists()false

action

Asserts

-ExpressionWarningOnly
*Procedure.subject.exists()false

test

name: ProfileValidation

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Proceduretrue/${procedureId}

action

Asserts

-ValidateProfileIdWarningOnly
*http://hl7.org.au/fhir/core/StructureDefinition/au-core-procedurefalse

Source1

{
  "resourceType": "TestScript",
  "id": "au-core-procedure",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-procedure",
  "version": "0.1.0",
  "name": "AUCoreProcedure",
  "title": "AU Core Procedure — SHALL-level conformance",
  "status": "active",
  "date": "2026-08-16T05:55:37+00:00",
  "publisher": "FHIR Frog",
  "contact": [
    {
      "name": "FHIR Frog",
      "telecom": [
        {
          "system": "url",
          "value": "https://gitlab.com/fhirfrog"
        }
      ]
    }
  ],
  "description": "Covers the AU Core Procedure (2.0.0) requirements: read, search by patient (SHALL), search by code/date/status (individually MAY-level in AU Core, but included here because issue #19 explicitly calls for code/date/status/patient search coverage on the generic search mechanism, following the same precedent as fhirfrog/au-core-compiler#17's Practitioner TestScript), must-support element presence, and profile conformance validation. Mirrors the relevant subset of au-fhir-core-inferno's ProcedureGroup (procedure_read_test, procedure_patient_search_test, procedure_code_search_test, procedure_date_search_test, procedure_status_search_test, procedure_must_support_test, procedure_validation_test). The combinatorial SHOULD/MAY search tests (patient+date, patient+status, patient+code+date, multiple-or on code/status, multiple-and on date, the DVA/IHI/Medicare identifier chain searches on patient, and the reference-resolution test) are not replicated here, per the same scope rationale used for Patient/Condition/Organization/Practitioner; see fhirfrog/au-core-compiler#6 and #19.",
  "fixture": [
    {
      "id": "patient-fixture",
      "autocreate": true,
      "autodelete": true,
      "resource": {
        "reference": "au-core-patient-conformant"
      }
    },
    {
      "id": "procedure-fixture",
      "autocreate": true,
      "autodelete": true,
      "resource": {
        "reference": "au-core-procedure-conformant"
      }
    }
  ],
  "variable": [
    {
      "name": "patientId",
      "path": "Patient.id",
      "sourceId": "patient-fixture"
    },
    {
      "name": "procedureId",
      "path": "Procedure.id",
      "sourceId": "procedure-fixture"
    }
  ],
  "test": [
    {
      "name": "Read",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Procedure",
            "encodeRequestUrl": true,
            "params": "/${procedureId}"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByPatient",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "Procedure",
            "encodeRequestUrl": true,
            "params": "?patient=${patientId}"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(Procedure).code.coding.code.where($this = '80146002').exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByCode",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "Procedure",
            "encodeRequestUrl": true,
            "params": "?code=http://snomed.info/sct|80146002"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(Procedure).code.coding.code.where($this = '80146002').exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByDate",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "Procedure",
            "encodeRequestUrl": true,
            "params": "?date=2020-06-15"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(Procedure).performed.ofType(dateTime).toString().where($this.contains('2020-06-15')).exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByStatus",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "Procedure",
            "encodeRequestUrl": true,
            "params": "?status=completed"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(Procedure).status.where($this = 'completed').exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "MustSupport",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Procedure",
            "encodeRequestUrl": true,
            "params": "/${procedureId}"
          }
        },
        {
          "assert": {
            "expression": "Procedure.code.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Procedure.encounter.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Procedure.performed.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Procedure.reasonCode.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Procedure.reasonReference.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Procedure.status.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Procedure.subject.exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "ProfileValidation",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Procedure",
            "encodeRequestUrl": true,
            "params": "/${procedureId}"
          }
        },
        {
          "assert": {
            "validateProfileId": "http://hl7.org.au/fhir/core/StructureDefinition/au-core-procedure",
            "warningOnly": false
          }
        }
      ]
    }
  ]
}