Hello,
We are in the process of migrating from the Organisation Data Service - ORD API to the new FHIR ODS API.
I’m comparing the relationship data and it looks like the primaryRoleID is included in the older API but not the new one and I’m not sure why that is?
Does the definition for the relationship only consist of the two organisation codes and the relationship code (for example RE4)?
In that case if an organisation changes it’s role how would we know which role the relationship relates to?
I’ve included an example of the API queries and results I’m looking at:
https://uat.directory.spineservices.nhs.uk/ORD/2-0-0/organisations/G81086
{
“Date”: [
{
“Type”: “Operational”,
“Start”: “2013-04-01”,
“End”: “2020-03-31”
}
],
“Status”: “Inactive”,
“Target”: {
“OrgId”: {
“root”: “2.16.840.1.113883.2.1.3.2.4.18.48”,
“assigningAuthorityName”: “HSCIC”,
“extension”: “99K”
},
“PrimaryRoleId”: {
“id”: “RO98”,
“uniqueRoleId”: 161529
}
},
“id”: “RE4”,
“uniqueRelId”: 256251
}
“fullUrl”: “https://sandbox.api.service.nhs.uk/organisation-data-terminology-api/fhir/OrganizationAffiliation/256251”,
“resource”: {
“resourceType”: “OrganizationAffiliation”,
“id”: “256251”,
“meta”: {
“versionId”: “1”,
“lastUpdated”: “2024-06-26T15:15:47.832+00:00”,
“source”: “#9f7738d104dbaba4”,
“profile”: [
“https://fhir.hl7.org.uk/StructureDefinition/UKCore-OrganizationAffiliation”,
“https://fhir.nhs.uk/England/StructureDefinition/England-OrganizationAffiliation-ODS”
]
},
“extension”: [
{
“url”: “https://fhir.nhs.uk/England/StructureDefinition/Extension-England-TypedPeriod”,
“extension”: [
{
“url”: “dateType”,
“valueCoding”: {
“system”: “https://fhir.nhs.uk/England/CodeSystem/England-PeriodType”,
“code”: “Legal”,
“display”: “Legal”
}
},
{
“url”: “period”,
“valuePeriod”: {
“start”: “2013-04-01”,
“end”: “2020-03-31”
}
}
]
},
{
“url”: “https://fhir.nhs.uk/England/StructureDefinition/Extension-England-TypedPeriod”,
“extension”: [
{
“url”: “dateType”,
“valueCoding”: {
“system”: “https://fhir.nhs.uk/England/CodeSystem/England-PeriodType”,
“code”: “Operational”,
“display”: “Operational”
}
},
{
“url”: “period”,
“valuePeriod”: {
“start”: “2013-04-01”,
“end”: “2020-03-31”
}
}
]
}
],
“identifier”: [
{
“system”: “https://digital.nhs.uk/services/organisation-data-service/CodeSystem/organization-relationship-instance”,
“value”: “256251”
}
],
“active”: false,
“period”: {
“start”: “2013-04-01”,
“end”: “2020-03-31”
},
“organization”: {
“reference”: “Organization/G81086”,
“identifier”: {
“system”: “https://fhir.nhs.uk/Id/ods-organization-code”,
“value”: “G81086”
}
},
“participatingOrganization”: {
“reference”: “Organization/99K”,
“identifier”: {
“system”: “https://fhir.nhs.uk/Id/ods-organization-code”,
“value”: “99K”
}
},
“code”: [
{
“coding”: [
{
“system”: “https://digital.nhs.uk/services/organisation-data-service/CodeSystem/ODSRelationship”,
“code”: “RE4”,
“display”: “IS COMMISSIONED BY”
}
]
}
]
},
“search”: {
“mode”: “include”
}
},
Thanks