Location Search

Profiles & Operations > Location Search

Location Search

Location search is simple RESTful interactions. It support retrieving a single Location instance by Location Identifiers.

Scope

This transaction involves a request by the following Identifiers for:

Location

Source Identifier
Ministry of Health and Long Term Care URI Stakeholder Number
Unique Provider Identifier URI UPI
Ontario College of Pharmacist Organization URI(https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-pharmacist-org) Org ID(eg. Accreditation number for Pharmacies)
Enterprise Provider ID URI EPID
College of Midwives Organization URI( https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-midwife-org) Org ID

Search needs to have a source and identifier. EPID would not be sufficient to search PPR. It needs EPID URI+EPID number.

All searches, by identifier, against PPR must be qualified with the Issuer code. Issuers are identified by the appropriate URI value. Identifiers are sequential/random numeric values issued by each source. As such, there may be overlap of identifier values across sources. This includes the Enterprise Provider Identifier (EPID) as it is a PPR assigned numeric value.

The EPID is the Enterprise” or “Entity” id for a Practitioner assigned by the PPR system. The EPID is assigned to a Provider “entity” or collection of Provider members (records from different sources for the same provider) for a single provider identity (e.g. the EPID connects Dr. Bob from UHN and Dr. Bob from Mt. Sinai as the same identity - if there is enough matching information to link the providers together).

An FHIR RESTful client sends the search by identified types of Location identifiers; the request is received by the FHIR Practitioner RESTful Server which returns the requested resource. This transaction requires the use and knowledge of specific types of identifiers.

Any Location Definitional Identifier may be used with this interaction; a Definitional identifier is one th#at is a Unique Identifier assigned by a source of information to the PPR. This type of identifier includes a Ministry of Health assigned Stakeholder number, License number issued by a Regulatory college, the EPID (Enterprise Provider ID) assigned by the Provider Registry (requires a query to PPR before using this ID), or a UPI (Unique Provider Identifier) as assigned by the former Legacy Provider Registry and ported to PPR.

In any case, the search identifier parameter must be specified along with the correct URI value assigned to the identifier issuer.

The client must provide the correct value of the identifiers as specified above, either from the Practitioner EHR record, public record or from the result of another FHIR transaction (e.g. Practitioner/Location Match). For example, a Pharmacist may use the search operation to retrieve the Prescriber (Practitioner) information from the registry using Practitioner’s UPI from Practitioner’s EHR record, or the Practitioner’s regulatory college issued license number.

Interaction Diagrams

The following diagram illustrates the high level interaction between a FHIR Client and FHIR Provider RESTful Server. In this implementation guide, Provincial Provider Registry is playing the role of the FHIR Provider RESTful Server. All subsequent references of this actor (FHIR Provider RESTful server) should be interpreted as the Provincial Provider Registry.

The Provider FHIR transaction will use the following query and response:

• Location Search Request /Location Search Response

Command 'tree' could not render: Project was not found for provincialproviderre/locationsearch-png.

Location Search Sequence Diagram

Actor: FHIR Provider RESTful Client

Role: Requestor

Requests a detailed profile of a single Location based on a known Location ID Issuer from the FHIR Provider RESTful Server. The FHIR Client uses the information received from the FHIR Provider RESTful Server for its own purposes. The RESTful client is referred to as the “FHIR client” in the remainder of the document.

*Actor: FHIR Provider RESTful Server

Role: Information Service

Returns a bundle containing the demographic information for the single Location corresponding to the Issuer & ID values specified by the FHIR Provider RESTful Client. This actor is referred to as the FHIR server in the remainder of the document.

Specification

This FHIR Provider specification is based on the HL7 STU3 Search operation. It makes use of the following resources:

Provider Location Search Request

The Location Search Request can be done by using an HTTP POST operation(alternatively, clients can also send GET based search ) with exactly one query parameter specified below. The syntax of the request is always

POST [base]/Location/_search?identifier=[system]|[value]

Or alternatively,

GET [base]/Location?identifier=[system]|[value]

Note: For list of Identifiers ,see scope section above

Provider Location search Response

Organization resource (Referenced in Location)

General

The PPR FHIR profiles are developed to constrain value sets and cardinality of data elements in the resources listed above. Since FHIR STU3 does not support all the data elements required for this project, we have introduced a few extensions which can be found here.

Extensions

Summary of Supported Operations

The table below shows the allowed transactions for each profile and how they support FHIR endpoints, resources and their corresponding HTTP operations:

Resource Transaction HTTP Operations URL Request Body Resource Response Body Resource
Location Search POST [base]/Location/_search? N/A Bundle containing Location

Alternatively, clients can also send GET based search as follows:

Resource Transaction HTTP Operations URL Request Body Resource Response Body Resource
Location Search GET [base]/Location? N/A Bundle containing Location

The interaction summary table below lists the HTTP status codes that may be returned for the search.

Interaction Content-Type Body Location Versioning Status Codes Comments
Search (Location) R R: Bundle N/A N/A 200,400,500

Location Search Operations

The Location search is invoked through a HTTP POST (alternatively HTTP GET) specifying the issuer (e.g. URI of PPR EPID, CPSO etc.) and identifier value (EPID, UPI, etc.) of a single Location instance. The response from the FHIR Provider RESTful Server will be a Location Resource, or in the case of a failed search, an operation outcome resource.

Trigger Event

When a FHIR Client has the identifiers for an Location but does not yet have the name, contact, license and other information or wishes to retrieve an updated version of the Location's information, it invokes an Location search.

Expected Behaviour

The FHIR Server shall return the records that correspond to the "Issuer/identifier" combination used in the request by the FHIR Provider RESTful Client. The FHIR Server shall respond synchronously (i.e. on the same connection as was used to initiate the request).

The FHIR Server shall respond to the search request as described by the following cases and shall behave according to the use-cases listed below:

Case Scenario Description Response
1 PPR finds in its information source, a provider location that matches the id specified by the FHIR Client Application HTTP 200 (OK) is returned as the HTTP status code. A bundle is returned that contains the location
2 PPR cannot find an location that meets the search parameter specified by the FHIR Client Application HTTP 200 (OK) is returned as the HTTP status code. A Resource Bundle is returned representing the zero result set.
3 PPR detects an error in the request and could not fulfill the request HTTP 400(Bad Request) is returned as the HTTP status code. The body contains an OperationOutcome with error details.
4 PPR validates the request but cannot return valid response due to internal issue. HTTP 500 (Internal Server Error) is returned as the HTTP status code. An OperationOutcome Resource is returned indicating an issue. Client should contact eHealth Ontario for trouble shooting.

Examples

Location search requests :

POST [base]/Location/_search?identifier=[system]|[value]


Or alternatively,

GET [base]/Location?identifier=[system]|[value]

Examples of Location search request can be found below

POST [base]/Location/_search?identifier=https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-physician|12324566

Or alternatively,

GET [base]/Location?identifier= https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-Location-upi|3456789023

GET [base]/Location?identifier=https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-physician|12324566

Location search response :

Examples of a Location Search Response(bundle) for Search by Identifier can be found below

Example of Operation Outcome