New Zealand HPI Implementation Guide
1.5.0 - Release

New Zealand HPI Implementation Guide - Local Development build (v1.5.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Search Prac Role

Search PractitionerRole by Practitioner (hpi-person-id)

Query PractitionerRole with hpi-person-id (HPI-CPN) sequence diagramIntegrating application userIntegrating application userIntegrating applicationIntegrating application<FHIR API> HPI<FHIR API> HPIHPI PractitionerRole databaseHPI PractitionerRole databaseUser enters identifier to belooked upGET<Endpoint>/PractitionerRole?practitioner=99ZZZValidate[]Get[PractitionerRole]Return Bundle withmatching PractitionerRoleresourcesDisplay matchingPractitionerRole details

Search PractitionerRole by Practitioner (hpi-person-id) Processing steps

  1. The user initiates searching a PractitionerRole in the integrating application.
  2. The integrating application sends an HTTP GET request (a FHIR search) for the list of PractitionerRole resources that reference the Practitioner resource for the supplied hpi-person-id E.g. GET<Endpoint>/PractitionerRole?practitioner=99ZZZZ
  3. The request is validated - ALT: Validation failure. OperationOutcome resource returned
  4. The PractitionerRole resources related to the supplied hpi-person-id are retrieved from the HPI - ALT: No PractitionerRole resources found. OperationOutcome resource returned
  5. The response containing a bundle of PractitionerRole resources is returned
  6. The consuming application displays the matching Practitioner Role details to the user

Using _ include parameter

When specified by _ include, the Practitioner, Organization and Location records are included in the response
Note: This requires read permission on the included resource
E.g. GET<Endpoint>/PractitionerRole?practitioner=99ZZZS&_include=PractitionerRole:practitioner

For more information on search PractitionerRole click here

Search PractitionerRole Rules and errors

For Request rules and errors click here

  • Search PractitionerRole rules
    • A PractitionerRole search request must include a valid hpi-person-id
    • A PractitionerRole search may include:
      • hpi-facility-id
      • hpi-organisation-id
      • role
      • active status
  • Search PractitionerRole errors
    • "Practitioner required" (HTTP 422 Unknown, Error, Processing)