Skip to content

Commit

Permalink
Merge pull request #8 from answerdigital/json-export
Browse files Browse the repository at this point in the history
JSON Export Functionality
  • Loading branch information
james-cockayne-ad authored Feb 9, 2024
2 parents 8723ad8 + 3057e46 commit 59c8ca6
Show file tree
Hide file tree
Showing 31 changed files with 699 additions and 2 deletions.
36 changes: 36 additions & 0 deletions Documentation/CdsConditionOccurrence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"omopTable": "ConditionOccurrence",
"origin": "CDS",
"omopColumns": [
{
"name": "nhs_number",
"sourceColumns": [
"NHSNumber"
]
},
{
"name": "condition_concept_id",
"sourceColumns": [
"DiagnosisCode"
]
},
{
"name": "condition_start_date",
"sourceColumns": [
"CDSActivityDate"
]
},
{
"name": "cds_diagnosis_id",
"sourceColumns": [
"DiagnosisId"
]
},
{
"name": "condition_source_value",
"sourceColumns": [
"DiagnosisCode"
]
}
]
}
18 changes: 18 additions & 0 deletions Documentation/CdsLocation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"omopTable": "Location",
"origin": "CDS",
"omopColumns": [
{
"name": "zip",
"sourceColumns": [
"Postcode"
]
},
{
"name": "location_source_value",
"sourceColumns": [
"Postcode"
]
}
]
}
66 changes: 66 additions & 0 deletions Documentation/CdsPerson.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"omopTable": "Person",
"origin": "CDS",
"omopColumns": [
{
"name": "person_source_value",
"sourceColumns": [
"NHSNumber"
]
},
{
"name": "gender_concept_id",
"sourceColumns": [
"PersonCurrentGenderCode"
]
},
{
"name": "year_of_birth",
"sourceColumns": [
"DateOfBirth"
]
},
{
"name": "month_of_birth",
"sourceColumns": [
"DateOfBirth"
]
},
{
"name": "day_of_birth",
"sourceColumns": [
"DateOfBirth"
]
},
{
"name": "birth_datetime",
"sourceColumns": [
"DateOfBirth"
]
},
{
"name": "race_concept_id",
"sourceColumns": [
"EthnicCategory"
]
},
{
"name": "gender_source_value",
"sourceColumns": [
"PersonCurrentGenderCode"
]
},
{
"name": "race_source_value",
"sourceColumns": [
"EthnicCategory"
]
},
{
"name": "race_source_concept_id",
"sourceColumns": [
"EthnicCategory"
]
}
]
}
54 changes: 54 additions & 0 deletions Documentation/CdsStructuredLocation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"omopTable": "Location",
"origin": "CDS",
"omopColumns": [
{
"name": "address_1",
"sourceColumns": [
"PatientAddressStructured1",
"PatientAddressStructured2"
]
},
{
"name": "address_2",
"sourceColumns": [
"PatientAddressStructured3"
]
},
{
"name": "city",
"sourceColumns": [
"PatientAddressStructured4"
]
},
{
"name": "county",
"sourceColumns": [
"PatientAddressStructured5"
]
},
{
"name": "zip",
"sourceColumns": [
"Postcode"
]
},
{
"name": "location_source_value",
"sourceColumns": [
"PatientAddressStructured1",
"PatientAddressStructured2",
"PatientAddressStructured3",
"PatientAddressStructured4",
"PatientAddressStructured5",
"Postcode"
]
},
{
"name": "nhs_number",
"sourceColumns": [
"NhsNumber"
]
}
]
}
62 changes: 62 additions & 0 deletions Documentation/CdsVisitDetail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"omopTable": "VisitDetail",
"origin": "CDS",
"omopColumns": [
{
"name": "nhs_number",
"sourceColumns": [
"NHSNumber"
]
},
{
"name": "RecordConnectionIdentifier",
"sourceColumns": [
"RecordConnectionIdentifier"
]
},
{
"name": "HospitalProviderSpellNumber",
"sourceColumns": [
"HospitalProviderSpellNumber"
]
},
{
"name": "visit_detail_start_date",
"sourceColumns": [
"VisitStartDate"
]
},
{
"name": "visit_detail_start_datetime",
"sourceColumns": [
"VisitStartDate",
"VisitStartTime"
]
},
{
"name": "visit_detail_end_date",
"sourceColumns": [
"VisitEndDate"
]
},
{
"name": "visit_detail_end_datetime",
"sourceColumns": [
"VisitEndDate",
"VisitEndTime"
]
},
{
"name": "visit_detail_concept_id",
"sourceColumns": [
"VisitOccurenceConceptId"
]
},
{
"name": "visit_detail_type_concept_id",
"sourceColumns": [
"VisitTypeConceptId"
]
}
]
}
56 changes: 56 additions & 0 deletions Documentation/CdsVisitOccurrenceWithSpell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"omopTable": "VisitOccurrence",
"origin": "CDS",
"omopColumns": [
{
"name": "NhsNumber",
"sourceColumns": [
"NHSNumber"
]
},
{
"name": "HospitalProviderSpellNumber",
"sourceColumns": [
"HospitalProviderSpellNumber"
]
},
{
"name": "visit_start_date",
"sourceColumns": [
"EpisodeStartDate"
]
},
{
"name": "visit_start_datetime",
"sourceColumns": [
"EpisodeStartDate",
"EpisodeStartTime"
]
},
{
"name": "visit_end_date",
"sourceColumns": [
"EpisodeEndDate"
]
},
{
"name": "visit_end_datetime",
"sourceColumns": [
"EpisodeEndDate",
"EpisodeEndTime"
]
},
{
"name": "visit_concept_id",
"sourceColumns": [
"VisitOccurenceConceptId"
]
},
{
"name": "visit_type_concept_id",
"sourceColumns": [
"VisitTypeConceptId"
]
}
]
}
44 changes: 44 additions & 0 deletions Documentation/CdsVisitOccurrenceWithoutSpell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"omopTable": "VisitOccurrence",
"origin": "CDS",
"omopColumns": [
{
"name": "NhsNumber",
"sourceColumns": [
"NHSNumber"
]
},
{
"name": "RecordConnectionIdentifier",
"sourceColumns": [
"RecordConnectionIdentifier"
]
},
{
"name": "visit_start_date",
"sourceColumns": [
"EpisodeStartDate"
]
},
{
"name": "visit_start_datetime",
"sourceColumns": [
"EpisodeStartDate",
"EpisodeStartTime"
]
},
{
"name": "visit_end_date",
"sourceColumns": [
"EpisodeEndDate"
]
},
{
"name": "visit_end_datetime",
"sourceColumns": [
"EpisodeEndDate",
"EpisodeEndTime"
]
}
]
}
Loading

0 comments on commit 59c8ca6

Please sign in to comment.