Migrate a patient's structured record
Use case
Migrate a patient’s record from one organisation to another in FHIR® structured format.
API specification
See API specification for more details about topic such as:
- Who can use the API
- Related APIs
- API status and roadmap
- Service level
- Security and authorisation
- Environments and testing
- Onboarding
- Error handling
Interaction diagram
Payload response body
Provider systems MUST:
- return a
200OK HTTP status code to indicate successful retrieval of a patient’s structured record - return a
Bundleconforming to theGPConnect-StructuredRecord-Bundle-1profile definition - return the following resources in the
Bundle:Patientmatching the NHS Number sent in the body of the requestOrganizationmatching the patient’s previously registered GP practice, where their record is being migrated from, referenced fromPatient.generalPractitionerOrganizationmatching the organisation serving the request, if different from above, referenced fromPatient.managingOrganizationPractitionermatching the patient’s usual GP, if they have one, referenced fromPatient.generalPractitionerPractitionerRolematching the usual GP’s role- resources holding consultations, problems, immunisations, allergies, intolerance, medications, uncategorised data, referrals, investigations and diary entries according to the rules below:
Provider systems SHOULD:
- provide a consistent order to elements within the
Bundleresource. It is recommended to follow the order described in the Bundle population illustrated diagram.
Consumers systems MUST NOT:
- rely on order or index of elements within the
Bundleresource in order to parse encapsulated resources.
Full record
Provider systems MUST include the following in the response Bundle:
- when the
includeFullRecordparameter is not set:- no clinical information shall be returned
- when the
includeFullRecordparameter is set:- A
Listresource for each clinical area referencing resources that have been returned - A
Listresource for secondary lists referencing resources contained in requested problems and consultations MedicationStatement,MedicationRequest,Medicationresources representing the patient’s medicationAllergyIntoleranceresources representing the patient’s allergies and intolerancesList,Condition,Encounter,List - ConsultationandObservation - narrativeresources representing the patient’s consultationsConditionresources representing the patient’s problemsImmunizationresources representing the patient’s immunisationsObservation - uncategorisedresources representing the patient’s uncategorised dataDiagnosticReport,Observation - Test Group Header,Observation - Test Result,Observation - Filing Comments,ProcedureRequest,Specimen,DocumentReferenceresources representing the patient’s test resultsReferralRequestresources representing the patient’s referrals will be returned.ProcedureRequestresources representing the patient’s diary entries will be returned.DocumentReferenceresources representing the patient’s documents.
- A
- and when the
includeSensitiveInformationparameter is set tofalse:- only non confidential information will be returned
- and when the
includeSensitiveInformationparameter is set totrue:- confidential and sensitive information will be returned
Documents
DocumentReference resources containing document metadata including location will be returned as part of the response Bundle. Retrieval of these MUST be performed using the Migrate a document API in the Access Document capability.
Operation definition
See OperationDefintion: GPConnect-MigrateStructuredRecord-Operation.
Payload response examples
Given the response model is shared with GetStructuredRecord, the same examples are applicable: