0.4.6 - ci-build

StandardPatientHealthRecordIG, published by MITRE. This guide is not an authorized publication; it is the continuous build for version 0.4.6 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/personal-health-record-format-ig/ and changes regularly. See the Directory of published versions

API Endpoints

Systems MAY wish to implement standard APIs for generating a .phr or .sphr file. Standard API queries that have been used in other systems are listed below.

# export everything from a single-user system as a FHIR Bundle
GET /Bundle/$ehi-export

# export everything from a single-user system as an NDJSON Bulkd Data file
GET /Bundle/$ehi-export?outputFormat=ndjson

# export everything from a single-user system as a PHR file
GET /Bundle/$ehi-export?outputFormat=phr

# export everything from a single-user system as a SPHR file with security
GET /Bundle/$ehi-export?outputFormat=sphr

# export everything from a specific date to current from a single-user system
GET /Bundle/$ehi-export?start=2010

# export everything in a specific date range from a single-user system
GET /Bundle/$ehi-export?start=2010&end=2020-06

# export everything for a specific patient in a multi-user system
GET /Bundle/$ehi-export?patient=Patient/12345

# post a record to another system to be imported (NDJSON format)
POST /Bundle/$import

Systems MUST post the API endpoints they use in the system’s CapabilityStatement.