Update

Update is an Instance Level Interaction. All resources supported will include an updateResource mutation; where Resource is the resource name, to update a resource record. At a minimum, the update mutation SHALL support an input type that will adhere to the fields in the FHIR specification for the resource being created, as well as the id of the resource to update.

example

mutation UpdateExample ( $updatePractitionerId: String! $practitioner: PractitionerInput! $rowVersion: Int! ) { updatePractitioner( id: $updatePractitionerId practitioner: $practitioner rowVersion: $rowVersion ) { resource { meta { versionId source lastUpdated profile } active birthDate gender id name { family given id use text } identifier { type { coding { system code display } } system value } extension { url valueCodeableConcept { coding { code display system typeName } } valueReference { reference resource { ... on Organization } } } } information { errors success } } }

variables

{ "updatePractitionerId": "d80a8b69-842f-4b2a-8aec-471aad2ffad1", "practitioner": { "active": true }, "rowVersion": 7 }