Skip to content

Commit

Permalink
feat: WHS-688 support temporal
Browse files Browse the repository at this point in the history
  • Loading branch information
dlangst committed Nov 6, 2020
1 parent 7bc07d3 commit 4aaaeb2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
15 changes: 15 additions & 0 deletions annotator-for-clinical-data/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,7 @@ namespace AnnotatorForClinicalDataV1 {
hccCode?: string;
ruleId?: string;
derivedFrom?: Concept[];
temporal?: Temporal[];
}

/** AttributeValueEntry. */
Expand Down Expand Up @@ -1732,6 +1733,7 @@ namespace AnnotatorForClinicalDataV1 {
insightModelData?: InsightModel;
ruleId?: string;
derivedFrom?: Concept[];
temporal?: Temporal[];
}

/** ConceptValue. */
Expand Down Expand Up @@ -1798,6 +1800,7 @@ namespace AnnotatorForClinicalDataV1 {
relations?: Relations[];
spellingCorrections?: SpellingCorrection[];
spellCorrectedText?: SpellCorrectedText[];
temporalSpans?: Temporal[];
}

/** DeployCartridgeResponse. */
Expand Down Expand Up @@ -1918,6 +1921,7 @@ namespace AnnotatorForClinicalDataV1 {
sectionNormalizedName?: string;
sectionSurfaceForm?: string;
insightModelData?: InsightModel;
temporal?: Temporal[];
}

/** MedicationInsight. */
Expand Down Expand Up @@ -1998,6 +2002,7 @@ namespace AnnotatorForClinicalDataV1 {
sectionSurfaceForm?: string;
snomedConceptId?: string;
insightModelData?: InsightModel;
temporal?: Temporal[];
}

/** ProcedureInsight. */
Expand Down Expand Up @@ -2123,6 +2128,7 @@ namespace AnnotatorForClinicalDataV1 {
sectionNormalizedName?: string;
sectionSurfaceForm?: string;
insightModelData?: InsightModel;
temporal?: Temporal[];
}

/** Task. InsightModel. */
Expand All @@ -2134,6 +2140,15 @@ namespace AnnotatorForClinicalDataV1 {
clinicalAssessmenttScore?: number;
}

/** Temporal. */
export interface Temporal {
begin?: number;
end?: number;
coveredText?: string;
temporalType?: JsonObject;
relationTypes?: JsonObject;
}

/** Type. InsightModel. */
export interface Type {
deviceScore?: number;
Expand Down
32 changes: 15 additions & 17 deletions package-lock.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const archive = props.get('archive');
let authenticatorType = new NoAuthAuthenticator();
const disableSsl = true;
const analyzeText =
'The patient has cancer and patient is currently taking 400 ml sisplatin chemotherapy. CT scan detected tumor in left lung. Aspirin from once daily to twice daily.\nHISTORY: Patient is allergic to latex. Patient cannot walk and needs help bathing and getting around. The lab values were: white blood cell count 4.6, hemoglobin 12.2. Echocardiogram demonstrated ejection fraction of approx 60%. Patient cannot dress or feed without help as the patient can not see. Patient may die soon but has not died yet. Patient smoked for 20 years. Patient can not clean up after defacating in toilet. Jone Doe was seen at Baylor Hospitall in Austin, TX. Johndoe@testaddress.com - (555) 555-5555. The patient started on metformin because his blood sugar was too high.';
'The patient has cancer and patient is currently taking 400 ml sisplatin chemotherapy. CT scan detected tumor in left lung. Aspirin from once daily to twice daily.\nHISTORY: Patient is allergic to latex. Patient cannot walk and needs help bathing and getting around. The lab values were: white blood cell count 4.6, hemoglobin 12.2. Echocardiogram demonstrated ejection fraction of approx 60%. Patient cannot dress or feed without help as the patient can not see. Patient may die soon but has not died yet. Patient smoked for 20 years. Patient can not clean up after defacating in toilet. Jone Doe was seen at Baylor Hospitall in Austin, TX. Johndoe@testaddress.com - (555) 555-5555. The patient started on metformin because his blood sugar was too high. She had gallbladder removal September 19 2020';

if (apikey !== 'undefined' && apikey !== null && apikey.length > 0) {
const baseOptions = {
Expand Down

0 comments on commit 4aaaeb2

Please sign in to comment.