예제 #1
0
def test_SymptomDisease_model():
    disambiguation = wh.Disambiguation(validity="yes")

    model = wh.SymptomDisease(id="name",
                              type="type",
                              uid=124,
                              begin=1,
                              end=2,
                              covered_text="We got you covered",
                              negated=False,
                              hypothetical=False,
                              cui=123,
                              icd10_code="10",
                              section_normalized_name="snn",
                              modality="active",
                              symptom_disease_surface_form="sdsf",
                              date_in_milliseconds="20",
                              snomed_concept_id="sn_concept_id",
                              ccs_code="ccscode",
                              symptom_disease_normalized_name="sdnn",
                              section_surface_form="ssf",
                              icd9_code="icd9",
                              hcc_code="hcc",
                              disambiguation_data=disambiguation,
                              extra="more")

    assert model.__str__() is not None
예제 #2
0
def test_AttributeValueAnnotation_model():
    value_list = []
    disambiguation = wh.Disambiguation()
    insight_data = wh.InsightModelData()
    derived_from_list = []
    temporal_list = []
    evidence_spans_list = []
    model = wh.AttributeValueAnnotation(id="id", type="type", uid=1, begin=2, end=3, covered_text="covered",
                                        negated=False, hypothetical=False, preferred_name="preferred",
                                        values=value_list, source="source", source_version="sv", name="name",
                                        icd9_code="icd9", icd10_code="icd10", nci_code="nci", snomed_concept_id="sci",
                                        mesh_id="meshID", rx_norm_id="rni", loinc_id="li", vocabs="vocab",
                                        section_normalized_name="snn", section_surface_form="ssf", cpt_code="cpt",
                                        disambiguation_data=disambiguation, insight_model_data=insight_data, 
                                        ccs_code="ccs", hcc_code="hcc", rule_id="rule", derived_from=derived_from_list, 
                                        temporal=temporal_list, evidence_spans=evidence_spans_list, extra="more")
    assert model.__str__() is not None
def test_CancerDiagnosis_model():
    disambiguation = wh.Disambiguation(validity="yes")
    model = wh.CancerDiagnosis(id="mine",
                               type="yours",
                               uid=1234,
                               begin=23,
                               end=1964,
                               covered_text="We got you covered",
                               negated=False,
                               hypothetical=False,
                               cui=123,
                               section_normalized_name="normal",
                               modality="high",
                               section_surface_form="skin",
                               cancer="bad",
                               disambiguation_data=disambiguation,
                               extra_data="not much")
    assert model.__str__() is not None
def test_Procedure_model():
    disambiguation = wh.Disambiguation()
    model = wh.Procedure(id="name",
                         type="type",
                         uid=123,
                         begin=1,
                         end=2,
                         covered_text="We got you covered",
                         negated=False,
                         hypothetical=False,
                         cui=234,
                         section_normalized_name="snn",
                         date_in_milliseconds="20",
                         snomed_concept_id="sci",
                         procedure_surface_form="psf",
                         procedure_normalized_name="pnn",
                         section_surface_form="ssf",
                         disambiguation_data=disambiguation,
                         extra="more")
    assert model.__str__() is not None