Skip to content

Commit

Permalink
Merge pull request #66 from mcode/encounter-extractor
Browse files Browse the repository at this point in the history
Adding Encounter Extractor
  • Loading branch information
dmendelowitz authored Sep 18, 2023
2 parents 9b8e1f5 + 9d8e69b commit e9d77bc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/ICARECSVClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const {
CSVClinicalTrialInformationExtractor,
CSVConditionExtractor,
CSVCTCAdverseEventExtractor,
CSVEncounterExtractor,
CSVObservationExtractor,
CSVPatientExtractor,
CSVProcedureExtractor,
Expand All @@ -27,6 +28,7 @@ class ICARECSVClient extends BaseClient {
CSVClinicalTrialInformationExtractor,
CSVConditionExtractor,
CSVCTCAdverseEventExtractor,
CSVEncounterExtractor,
CSVObservationExtractor,
CSVPatientExtractor,
CSVProcedureExtractor,
Expand All @@ -49,6 +51,7 @@ class ICARECSVClient extends BaseClient {
{ type: 'CSVObservationExtractor', dependencies: ['CSVPatientExtractor'] },
{ type: 'CSVAdverseEventExtractor', dependencies: ['CSVPatientExtractor'] },
{ type: 'CSVCTCAdverseEventExtractor', dependencies: ['CSVPatientExtractor'] },
{ type: 'CSVEncounterExtractor', dependencies: ['CSVPatientExtractor'] },
];
// Sort extractors based on order and dependencies
this.extractorConfig = sortExtractors(this.extractorConfig, dependencyInfo);
Expand Down
4 changes: 4 additions & 0 deletions test/sample-client-data/encounter-information.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mrn,encounterId,status,classCode,classSystem,typeCode,typeSystem,startDate,endDate
123,encounterId-1,arrived,AMB,http://terminology.hl7.org/CodeSystem/v3-ActCode,11429006,http://snomed.info/sct,2020-01-10,2020-01-10
456,encounterId-2,planned,AMB,http://terminology.hl7.org/CodeSystem/v3-ActCode,270427003,http://snomed.info/sct,2021-02-10,2021-05-12
789,encounterId-3,cancelled,IMP,http://terminology.hl7.org/CodeSystem/v3-ActCode,,,,

0 comments on commit e9d77bc

Please sign in to comment.