-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mapping stage picks up on lists in schema
- Loading branch information
1 parent
ed090ae
commit a0dcc3b
Showing
4 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"Case ID": { | ||
"type": "integer", | ||
"description": "Unique identifier for each case", | ||
"PrimaryKey": true | ||
}, | ||
"Age": { | ||
"type": "integer", | ||
"description": "Age of the patient", | ||
"minimum": 0 | ||
}, | ||
"Gender": { | ||
"type": "string", | ||
"description": "Gender of the patient", | ||
"enum": [ | ||
"Male", | ||
"Female", | ||
"Other" | ||
] | ||
}, | ||
"Location": { | ||
"type": "string", | ||
"description": "City or region where the case was reported" | ||
}, | ||
"Date of Onset": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Date when symptoms first appeared" | ||
}, | ||
"Symptoms": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"description": "List of symptoms exhibited by the patient", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"fever", | ||
"cough", | ||
"dyspnea", | ||
"fatigue", | ||
"myalgia", | ||
"headache", | ||
"anosmia" | ||
] | ||
} | ||
}, | ||
"Outcome": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "Final outcome for the patient (recovered or deceased)", | ||
"enum": [ | ||
"Recovered", | ||
"Deceased", | ||
null | ||
] | ||
}, | ||
"Vaccination Status": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "Vaccination status of the patient", | ||
"enum": [ | ||
"Yes", | ||
"No", | ||
"Partial", | ||
"Unknown" | ||
] | ||
}, | ||
"Days to Recovery": { | ||
"type": [ | ||
"integer", | ||
"null" | ||
], | ||
"description": "Number of days to recover, null for deceased cases" | ||
}, | ||
"Underlying Conditions": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "Pre-existing health conditions of the patient", | ||
"enum": [ | ||
"None", | ||
"Asthma", | ||
"Diabetes", | ||
"Hypertension", | ||
"Heart Disease", | ||
"Chronic Lung Disease", | ||
"Chronic Kidney Disease", | ||
null | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"Case ID", | ||
"Age", | ||
"Gender", | ||
"Location", | ||
"Date of Onset" | ||
], | ||
"additionalProperties": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
target_field,source_description,source_field,common_values,target_values,value_mapping | ||
Case ID,Case Number,CaseNumber,,, | ||
Age,Person Age,PersonAge,,, | ||
Gender,Sex,Sex,"Male, F, Female, M","Male, Female, Other","female=Female, f=Female, male=Male, m=Male" | ||
Location,City,City,"Chicago, Houston, Philly",, | ||
Date of Onset,Onset Date,OnsetDate,,, | ||
Symptoms,Reported Symptoms,ReportedSymptoms,"fever, fatigue, cough, short breath, headache, muscle pain, coughing","fever, cough, dyspnea, fatigue, myalgia, headache, anosmia","fever=fever, coughing=cough, cough=cough, fatigue=fatigue, short breath=dyspnea, muscle pain=myalgia, headache=headache" | ||
Outcome,Health Outcome,HealthOutcome,"recovered, Recov, Dead, Recovered, Died","Recovered, Deceased, None","recov=Recovered, died=Deceased, recovered=Recovered, dead=Deceased" | ||
Vaccination Status,Vaccination Status,VaxStatus,"yes, no, Partial, No, Yes, none","Yes, No, Partial, Unknown","partial=Partial, none=Unknown, no=No, yes=Yes" | ||
Days to Recovery,Recovery Days,RecoveryDays,,, | ||
Underlying Conditions,Pre-existing Conditions,PreexistingConditions,,"None, Asthma, Diabetes, Hypertension, Heart Disease, Chronic Lung Disease, Chronic Kidney Disease, None", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters