You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rust/codelist-builder-rs/src/snomed_usage_data.rs
+28-2Lines changed: 28 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,30 @@
1
1
//! This file contains the snomed usage data struct and its implementation
2
+
//! It contains functionality for downloading and parsing SNOMED usage data files from NHS Digital. See https://digital.nhs.uk/data-and-information/publications/statistical/mi-snomed-code-usage-in-primary-care.
3
+
//!
4
+
//! Components of the file:
5
+
//!
6
+
//! SNOMED_Concept_ID:
7
+
//! SNOMED concepts which have been added to a patient record in a general practice system during the reporting period.
8
+
//!
9
+
//! Description:
10
+
//! The fully specified name associated with the SNOMED_Concept_ID on the final day of the reporting period (31 July).
11
+
//!
12
+
//! Usage:
13
+
//! The number of times that the SNOMED_Concept_ID was added into any patient record within the reporting period, rounded to the nearerst 10. Usage of 1 to 4 is displayed as *. SNOMED concepts with no code usage are not included.
14
+
//! Important notes:
15
+
//! - Data prior to 2019 was originally submitted mostly in READ V2 or CTV3, but in the usage files, these codes have been mapped to corresponding SNOMED codes using final 2020 version of the mapping tables published by NHS England.
16
+
//! - The usage does not show how many patients had each code added to their record - each addition regardless of whether it is the same patient increments the count by 1. Therefore it is not possible to infer the number of individual patients with a particular code.
17
+
//! - For the 2011-12 to 2017-18 data, it is stated that "Current maximum value is approximately 250,000,000" - no such maximum is stated for the 2018-19 onwards data.
18
+
//!
19
+
//! Active_at_Start:
20
+
//! Active status of the SNOMED_Concept_ID on the first day of the reporting period. This is taken from the most recent UK clinical extension, or associated International extention, which was published up to the start of the reporting year (1 August).
21
+
//! 1 = SNOMED concept was published and was active.
22
+
//! 0 = SNOMED concept was either not yet available or was inactive.
23
+
//!
24
+
//! Active_at_End:
25
+
//! Active status of the SNOMED_Concept_ID on the last day of the reporting period. This is taken from the most recent UK clinical extension, or associated International extention, which was published up to the end of the reporting year (31 July).
26
+
//! 1 = SNOMED concept was published and was active.
27
+
//! 0 = SNOMED concept was either not yet available or was inactive.
2
28
3
29
// Internal imports
4
30
usecrate::errors::CodeListBuilderError;
@@ -14,14 +40,14 @@ use serde::{Deserialize, Serialize};
14
40
/// # Fields
15
41
/// * `snomed_concept_id` - The snomed concept id
16
42
/// * `description` - The description
17
-
/// * `usage` - The usage
43
+
/// * `usage` - The usage. A count of 1-4 is denoted by a *. Counts above 4 are denoted by a number rounded to the nearest 10.
18
44
/// * `active_at_start` - Whether the concept was active at the start of the usage period
19
45
/// * `active_at_end` - Whether the concept was active at the end of the usage period
0 commit comments