I’m currently looking at BARS as we intend to support BARS referrals.
Looking at the examples, the dates aren’t FHIR valid. E.g. in this example NHS Booking and Referrals | REFREQ07 - Referral Service Request New Full - GP to OC - SIMPLIFIER.NET
it has
"meta": {
"versionId": "1.0.0-beta",
"lastUpdated": "06/26/2023 11:30:00",
"profile": [
"https://fhir.nhs.uk/StructureDefinition/BARSBundleMessage"
]
},
The XML versions are correct, just the JSON ones.
If I convert a XML to JSON using FHIR tooling I get
"meta": {
"versionId": "1.0.0-beta",
"lastUpdated": "2023-06-26T11:30:00.8185338+00:00",
"profile": [
"https://fhir.nhs.uk/StructureDefinition/BARSBundleMessage"
]
},
Could you confirm the BARS json examples are incorrect and should be FHIR valid?
(Not being FHIR valid would be an issue for us as our tooling won’t accept invalid FHIR)
In addition the examples have issues around this UKCore profile for organization https://simplifier.net/guide/UK-Core-Implementation-Guide/Home/ProfilesandExtensions/ProfileUKCore-Organization?version=current
This states the identifier for ODS Code is
https://fhir.nhs.uk/Id/ods-organization-code
The BARS examples have this as
https://fhir.nhs.uk/id/ods-organization-code
The id part being in lower case causes problems trying to identify ODS codes in the payload.
Third issue.
The Practitioner resources in the examples are incorrect for two reasons
"identifier": [
{
"system": "https://fhir.nhs.uk/Id/sds-role-profile-id",
"value": "G823658"
}
],
The code here is a GMP Number and should have a system of https://fhir.hl7.org.uk/Id/gmp-number
The systems used https://fhir.nhs.uk/Id/sds-role-profile-id which indicates this is the ID of the practitioners role on Spine Directory Services (which maps to PractitionerRole in FHIR). It is not an ID of a practitioner in spine (and so not a FHIR Practitioner)
See NHS England FHIR Implementation Guide (deprecated) for documentation around this.
This is probably a big issue if other suppliers are following these examples.
As a supplier we are required to follow NHS Data Model and Dictionary which effectively says we need to use identifiers from ODS (see Consultant Code and GP Practitioner numbers). These are sds user id or profiles which are on a different directory service (spine)