Contact Healthcode insurer identifier
Summary
Practice contacts can now expose their Healthcode insurer identifier on the public API. The value is the same code stored on the contact in Semble (for example bup or wpa) and is the insurer sent on Healthcode claims.
This change is additive. Clients that do not request or send healthcodeIdentifier are unchanged.
Behaviour
Contact.healthcodeIdentifieris a nullableStringoncontactandcontacts. It isnullwhen the contact has no identifier.createContactaccepts an optionalhealthcodeIdentifier.updateContactacceptshealthcodeIdentifieronUpdateContactDataInput. Passnullto clear it.contactsaccepts an optionalfilters.healthcodeIdentifierexact match.- The value must be one of:
ppp,agb,ahc,ahv,awc,nuh,bup,bui,cig,cin,hhs,efs,tih,slh,wpa. Any other value is rejected. - Reading, writing, and filtering are available only when Healthcode is enabled for the practice (
accountFeatures.showHealthcode, which defaults to enabled). When it is disabled, queries returnnulland create, update, and filter requests that send the field are rejected.
Setting this field changes which insurer is submitted on Healthcode claims for that contact.
Example
mutation SetContactInsurer($id: ID!) {
updateContact(
id: $id
contactData: { healthcodeIdentifier: "bup" }
) {
data {
id
healthcodeIdentifier
}
error
}
}