Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions layer/nrlf/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class PointerTypes(Enum):
MRA_UPPER_LIMB_ARTERY = "https://nicip.nhs.uk|MAULR"
MRI_AXILLA_BOTH = "https://nicip.nhs.uk|MAXIB"
APPOINTMENT = "http://snomed.info/sct|749001000000101"
SHARED_CARE_RECORD = "http://snomed.info/sct|887181000000106"

@staticmethod
def list():
Expand All @@ -86,6 +87,7 @@ class Categories(Enum):
DIAGNOSTIC_STUDIES_REPORT = "http://snomed.info/sct|721981007"
DIAGNOSTIC_PROCEDURE = "http://snomed.info/sct|103693007"
RECORD_ARTIFACT = "http://snomed.info/sct|419891008"
RECORD_HEADINGS = "http://snomed.info/sct|716931000000107"

@staticmethod
def list():
Expand Down Expand Up @@ -115,6 +117,7 @@ def coding_value(self):
"display": "Diagnostic procedure",
},
Categories.RECORD_ARTIFACT.value: {"display": "Record artifact"},
Categories.RECORD_HEADINGS.value: {"display": "Record headings"},
}

TYPE_ATTRIBUTES = {
Expand Down Expand Up @@ -163,6 +166,7 @@ def coding_value(self):
PointerTypes.APPOINTMENT.value: {
"display": "Appointment",
},
PointerTypes.SHARED_CARE_RECORD.value: {"display": "Clinical summary"},
}

TYPE_CATEGORIES = {
Expand Down Expand Up @@ -191,6 +195,9 @@ def coding_value(self):
#
# Bookings and Referrals
PointerTypes.APPOINTMENT.value: Categories.RECORD_ARTIFACT.value,
#
# Shared Care Records
PointerTypes.SHARED_CARE_RECORD.value: Categories.RECORD_HEADINGS.value,
}

PRACTICE_SETTING_VALUE_SET_URL = (
Expand Down
8 changes: 6 additions & 2 deletions resources/fhir/NRLF-RecordCategory-ValueSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"resourceType": "ValueSet",
"id": "NRLF-RecordCategory",
"url": "https://fhir.nhs.uk/England/ValueSet/England-NRLRecordCategory",
"version": "1.1.3",
"version": "1.1.4",
"name": "NRLF Record Category",
"status": "draft",
"date": "2025-05-25T00:00:00+00:00",
"date": "2025-08-14T00:00:00+00:00",
"publisher": "NHS Digital",
"contact": {
"name": "NRL Team at NHS Digital",
Expand Down Expand Up @@ -45,6 +45,10 @@
{
"code": "419891008",
"display": "Record artifact"
},
{
"code": "716931000000107",
"display": "Record headings"
}
]
}
Expand Down
8 changes: 6 additions & 2 deletions resources/fhir/NRLF-RecordType-ValueSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"resourceType": "ValueSet",
"id": "NRLF-RecordType",
"url": "https://fhir.nhs.uk/England/ValueSet/England-NRLRecordType",
"version": "1.1.3",
"version": "1.1.4",
"name": "NRLF Record Type",
"status": "draft",
"date": "2025-05-22T00:00:00+00:00",
"date": "2025-08-14T00:00:00+00:00",
"publisher": "NHS Digital",
"contact": {
"name": "NRL Team at NHS Digital",
Expand Down Expand Up @@ -73,6 +73,10 @@
{
"code": "749001000000101",
"display": "Appointment"
},
{
"code": "887181000000106",
"display": "Clinical summary"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,10 @@ Feature: Producer - createDocumentReference - Success Scenarios
| pointer-type | pointer-category | type-name |
| 824321000000109 | 823651000000106 | SUMMARY_RECORD |

Examples: Record Artifacts
| pointer-type | pointer-category | type-name |
| 749001000000101 | 419891008 | APPOINTMENT |
Examples: Record Artifacts and Headings
| pointer-type | pointer-category | type-name |
| 749001000000101 | 419891008 | APPOINTMENT |
| 887181000000106 | 716931000000107 | SHARED_CARE_RECORD |

# Create with content and contact details
# Create with contact details only
Expand Down
1 change: 1 addition & 0 deletions tests/performance/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class LogReference:
"735324008": "Treatment Escalation Plan",
"824321000000109": "Summary Record",
"2181441000000107": "Personalised Care and Support Plan",
"887181000000106": "Clinical summary",
}


Expand Down