Delete

Delete is an Instance Level Interaction. All resources supported will include a deleteResource mutation; where Resource is the resource name, to delete a resource record.

example

mutation DeleteExample (deletePractitionerId: String!) { deletePractitioner ( id: "ba379713-7a9b-4206-856e-53a711980154" ) { information } }

variables

{ "deletePractitionerId": "d80a8b69-842f-4b2a-8aec-471aad2ffad1" }

Base Resource Delete Rules

For resources that support many Facility Association Identifiers (e.g. Practitioner, Organization, Group, etc.), if there are multiple facilities associated the resource and one is a facility association to the x-tenant-id of the presented credentials, the facility association is removed (i.e. an update). If there are no other facilities associated with this resource, the resource is deleted.

Conformance resources are excluded from the above rule(s) (e.g. StructureDefinition, CodeSystem, ValueSet, etc.)

IMPORTANT: Directory does not manage reference data (e.g. cascade delete) at this time. It is up to the integrating products to cleanup referential data related to deleted resources. For example if there are active practitioner roles (a.k.a staff assignments) that reference a practitioner, the practitioner roles must be removed by the integrating product prior to deleting the practitioner.