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 RelatedPerson

AU Core RelatedPerson — SHALL-level conformance

Covers the AU Core RelatedPerson (2.0.0) requirements identified in fhirfrog/au-core-compiler#20: read, search by patient (SHALL), search by _id/name/relationship (SHOULD/MAY, included per the issue's explicit call-out of all four params — see fhirfrog/au-core-compiler#17 for the equivalent Practitioner-level precedent of including SHOULD/MAY searches when an issue names them), must-support element presence (patient, relationship, name+use/text/family/given, telecom, address), and profile conformance validation. Mirrors au-fhir-core-inferno's RelatedPersonGroup (related_person_patient_search_test, related_person__id_search_test, related_person_name_search_test, related_person_relationship_search_test, related_person_read_test, related_person_validation_test, related_person_must_support_test); the patient+name and patient+relationship combinator variants and reference-resolution test are not replicated — see fhirfrog/au-core-compiler#6 for the general scope rationale. No obligation-extension or negative-testing complexity is exercised here (unlike fhirfrog/au-core-compiler#21/#22): plain must-support presence checks are sufficient per issue #20's own scoping.

Name
AUCoreRelatedPerson
URL
http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-relatedperson
Status
active

Fixtures

  • relatedperson-patient-fixture: au-core-relatedperson-patient (created before, and removed after, the run)
  • relatedperson-fixture: au-core-relatedperson-conformant (created before, and removed after, the run)

Variables

  • ${relatedPersonId} = RelatedPerson.id of relatedperson-fixture
  • ${patientId} = Patient.id of relatedperson-patient-fixture

Read

  1. Read RelatedPerson by id (${relatedPersonId}) READ RelatedPerson/${relatedPersonId}
  2. Response status is okay response = okay

SearchByPatient

  1. Search RelatedPerson where patient = Patient/${patientId} SEARCH RelatedPerson?patient=Patient/${patientId}
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists() expression = Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()

SearchById

  1. Search RelatedPerson where _id = ${relatedPersonId} SEARCH RelatedPerson?_id=${relatedPersonId}
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists() expression = Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()

SearchByName

  1. Search RelatedPerson where name = Banks SEARCH RelatedPerson?name=Banks
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists() expression = Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()

SearchByRelationship

  1. Search RelatedPerson where relationship = http://terminology.hl7.org/CodeSystem/v3-RoleCode|FTH SEARCH RelatedPerson?relationship=http://terminology.hl7.org/CodeSystem/v3-RoleCode|FTH
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(RelatedPerson).relationship.coding.code.where($this = 'FTH').exists() expression = Bundle.entry.resource.ofType(RelatedPerson).relationship.coding.code.where($this = 'FTH').exists()

MustSupport

  1. Read RelatedPerson by id (${relatedPersonId}) READ RelatedPerson/${relatedPersonId}
  2. Check: RelatedPerson.patient.exists() expression = RelatedPerson.patient.exists()
  3. Check: RelatedPerson.relationship.exists() expression = RelatedPerson.relationship.exists()
  4. Check: RelatedPerson.name.exists() expression = RelatedPerson.name.exists()
  5. Check: RelatedPerson.name.use.exists() expression = RelatedPerson.name.use.exists()
  6. Check: RelatedPerson.name.text.exists() expression = RelatedPerson.name.text.exists()
  7. Check: RelatedPerson.name.family.exists() expression = RelatedPerson.name.family.exists()
  8. Check: RelatedPerson.name.given.exists() expression = RelatedPerson.name.given.exists()
  9. Check: RelatedPerson.telecom.exists() expression = RelatedPerson.telecom.exists()
  10. Check: RelatedPerson.address.exists() expression = RelatedPerson.address.exists()

ProfileValidation

  1. Read RelatedPerson by id (${relatedPersonId}) READ RelatedPerson/${relatedPersonId}
  2. Validate the response against profile http://hl7.org.au/fhir/core/StructureDefinition/au-core-relatedperson validateProfileId = http://hl7.org.au/fhir/core/StructureDefinition/au-core-relatedperson