Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove PII from Patient CSV export #1416

Merged
merged 2 commits into from
Jul 1, 2023
Merged
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
5 changes: 0 additions & 5 deletions care/facility/models/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,9 @@ def save(self, *args, **kwargs) -> None:

CSV_MAPPING = {
# Patient Details
"external_id": "Patient ID",
"name": "Patient Name",
"facility__name": "Facility Name",
"gender": "Gender",
"age": "Age",
# Policy Details
"policy__policy_id": "Policy ID/Name",
"created_date": "Date of Registration",
"created_date__time": "Time of Registration",
# Last Consultation Details
Expand All @@ -495,7 +491,6 @@ def save(self, *args, **kwargs) -> None:
"last_consultation__icd11_provisional_diagnoses": "Provisional Diagnoses",
"last_consultation__suggestion": "Decision after consultation",
"last_consultation__category": "Category",
"last_consultation__discharge_reason": "Discharge reason",
"last_consultation__discharge_date": "Date of discharge",
"last_consultation__discharge_date__time": "Time of discharge",
}
Expand Down