Skip to content

Commit

Permalink
Add new Pharmacy First code for analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
viv3ckj committed Jan 7, 2025
1 parent fa12372 commit 0df6bab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions analysis/codelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,16 @@
)
# Community Pharmacist Consultation Service for minor illness - 1577041000000109
# Pharmacy First service - 983341000000102
pharmacy_first_consultation_codelist = ["1577041000000109", "983341000000102"]
# Community Pharmacy First Service - 2129921000000100
pharmacy_first_consultation_codelist = ["1577041000000109", "983341000000102", "2129921000000100"]

# PF codes separated for individual analysis
pharmacy_first_event_codes = {
# Community Pharmacist (CP) Consultation Service for minor illness (procedure)
"consultation_service": ["1577041000000109"],
# Pharmacy First service (qualifier value)
"pharmacy_first_service": ["983341000000102"],
"combined_pf_service": ["1577041000000109", "983341000000102"],
# Community Pharmacy Pharmacy First Service
"community_pharmacy_first_service": ["2129921000000100"],
"combined_pf_service": ["1577041000000109", "983341000000102", "2129921000000100"],
}
2 changes: 2 additions & 0 deletions lib/functions/tidy_measures.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pf_measures_name_dict <- list(
consultation_service = "Consultation Service",
pharmacy_first_service = "Pharmacy First Consultation",
community_pharmacy_first_service = "Community Pharmacy First Service",
combined_pf_service = "Pharmacy First Consultations (Combined)",
acute_otitis_media = "Acute Otitis Media",
herpes_zoster = "Herpes Zoster",
Expand All @@ -15,6 +16,7 @@ pf_measures_name_dict <- list(
pf_measures_name_mapping <- list(
consultation_service = "clinical_service",
pharmacy_first_service = "clinical_service",
community_pharmacy_first_service = "clinical_service",
combined_pf_service = "pharmacy_first_services",
acute_otitis_media = "clinical_condition",
herpes_zoster = "clinical_condition",
Expand Down

0 comments on commit 0df6bab

Please sign in to comment.