Skip to main content

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.healthcodeIdentifier is a nullable String on contact and contacts. It is null when the contact has no identifier.
  • createContact accepts an optional healthcodeIdentifier.
  • updateContact accepts healthcodeIdentifier on UpdateContactDataInput. Pass null to clear it.
  • contacts accepts an optional filters.healthcodeIdentifier exact 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 return null and 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
}
}