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 @@ -91,6 +91,7 @@ class PointerTypes(Enum):
MRI_AXILLA_BOTH = "https://nicip.nhs.uk|MAXIB"
APPOINTMENT = "http://snomed.info/sct|749001000000101"
SHARED_CARE_RECORD = "http://snomed.info/sct|887181000000106"
ABOUT_ME = "http://snomed.info/sct|1515851000000101" # NOSONAR (S5332) This is a type code, not an actual URL

@staticmethod
def list():
Expand All @@ -111,6 +112,7 @@ class Categories(Enum):
DIAGNOSTIC_PROCEDURE = "http://snomed.info/sct|103693007"
RECORD_ARTIFACT = "http://snomed.info/sct|419891008"
RECORD_HEADINGS = "http://snomed.info/sct|716931000000107"
CLINICAL_DOCUMENT = "http://snomed.info/sct|423876004" # NOSONAR (S5332) This is a category code, not an actual URL

@staticmethod
def list():
Expand Down Expand Up @@ -141,6 +143,7 @@ def coding_value(self):
},
Categories.RECORD_ARTIFACT.value: {"display": "Record artifact"},
Categories.RECORD_HEADINGS.value: {"display": "Record headings"},
Categories.CLINICAL_DOCUMENT.value: {"display": "Clinical document"},
}

TYPE_ATTRIBUTES = {
Expand Down Expand Up @@ -190,6 +193,7 @@ def coding_value(self):
"display": "Appointment",
},
PointerTypes.SHARED_CARE_RECORD.value: {"display": "Clinical summary"},
PointerTypes.ABOUT_ME.value: {"display": "About me"},
}

TYPE_CATEGORIES = {
Expand Down Expand Up @@ -221,6 +225,9 @@ def coding_value(self):
#
# Shared Care Records
PointerTypes.SHARED_CARE_RECORD.value: Categories.RECORD_HEADINGS.value,
#
# Clinical documents
PointerTypes.ABOUT_ME.value: Categories.CLINICAL_DOCUMENT.value,
}

#
Expand Down
4 changes: 4 additions & 0 deletions resources/fhir/NRLF-RecordCategory-ValueSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
{
"code": "716931000000107",
"display": "Record headings"
},
{
"code": "423876004",
"display": "Clinical document"
}
]
}
Expand Down
4 changes: 4 additions & 0 deletions resources/fhir/NRLF-RecordType-ValueSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
{
"code": "887181000000106",
"display": "Clinical summary"
},
{
"code": "1515851000000101",
"display": "About me"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ Feature: Producer - createDocumentReference - Success Scenarios
| 749001000000101 | 419891008 | APPOINTMENT |
| 887181000000106 | 716931000000107 | SHARED_CARE_RECORD |

Examples: Clinical documents
| pointer-type | pointer-category | type-name |
| 1515851000000101 | 423876004 | ABOUT_ME |

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


Expand Down
12 changes: 12 additions & 0 deletions tests/performance/type-category-mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,16 @@ export const CATEGORY_TYPE_GROUPS = [
},
],
},
{
category: {
code: "423876004",
display: "Clinical document",
},
types: [
{
code: "1515851000000101",
display: "About me",
},
],
},
];
Loading