from base import report_content_to_test_docs _TEST_IMMUNIZATIONS = [ """ <Immunization xmlns='http://indivo.org/vocab/xml/documents#'> <dateAdministered>2009-05-16T00:00:00Z</dateAdministered> <administeredBy>Children's Hospital Boston</administeredBy> <vaccine> <type type='http://codes.indivo.org/codes/vaccinetypes/' value='hep-B' abbrev='hepb'>Hepatitis B</type> <manufacturer>Oolong Pharmaceuticals</manufacturer> <lot>AZ1234567</lot> <expiration>2009-06-01</expiration> </vaccine> <sequence>2</sequence> <anatomicSurface type='http://codes.indivo.org/codes/anatomicsurfaces/' value='shoulder' abbrev='shoulder'>Shoulder</anatomicSurface> <adverseEvent>pain and rash</adverseEvent> </Immunization> """, """ <Immunization xmlns='http://indivo.org/vocab/xml/documents#'> <dateAdministered>2008-05-12T00:00:00Z</dateAdministered> <vaccine> <type type='http://codes.indivo.org/codes/vaccinetypes/' value='82' abbrev='adenovirus, NOS'>adenovirus vaccine, NOS</type> </vaccine> <sequence>2</sequence> </Immunization> """, ] TEST_IMMUNIZATIONS = report_content_to_test_docs(_TEST_IMMUNIZATIONS)
from base import report_content_to_test_docs _TEST_VITALS = [ """ <VitalSign xmlns='http://indivo.org/vocab/xml/documents#'> <dateMeasured>2009-05-16T15:23:21Z</dateMeasured> <name type='http://codes.indivo.org/vitalsigns/' value='123' abbrev='BPsys'>Blood Pressure Systolic</name> <value>145</value> <unit type='http://codes.indivo.org/units/' value='31' abbrev='mmHg'>millimeters of mercury</unit> <site>left arm</site> <position>sitting down</position> </VitalSign> """, """ <VitalSign xmlns='http://indivo.org/vocab/xml/documents#'> <dateMeasured>2009-05-16T15:23:21Z</dateMeasured> <name type='http://codes.indivo.org/vitalsigns/' value='123' abbrev='weight'>weight test</name> <value>185</value> <unit type='http://codes.indivo.org/units/' value='31' abbrev='lbs'>pounds</unit> <site /> <position /> </VitalSign> """, ] TEST_VITALS = report_content_to_test_docs(_TEST_VITALS)
<Field name="quantitative_result_non_critical_range_min_value">120</Field> <Field name="quantitative_result_non_critical_range_min_unit">mEq/L</Field> <Field name="quantitative_result_normal_range_max_value">145</Field> <Field name="quantitative_result_normal_range_max_unit">mEq/L</Field> <Field name="quantitative_result_normal_range_min_value">135</Field> <Field name="quantitative_result_normal_range_min_unit">mEq/L</Field> <Field name="quantitative_result_value_value">140</Field> <Field name="quantitative_result_value_unit">mEq/L</Field> <Field name="collected_at">2010-12-27T17:00:00Z</Field> <Field name="collected_by_org_name">City Lab</Field> <Field name="collected_by_org_adr_country">USA</Field> <Field name="collected_by_org_adr_city">Springfield</Field> <Field name="collected_by_org_adr_postalcode">11111</Field> <Field name="collected_by_org_adr_region">MA</Field> <Field name="collected_by_org_adr_street">20 Elm St</Field> <Field name="collected_by_name_family">Finnialispi</Field> <Field name="collected_by_name_given">Tad</Field> <Field name="collected_by_role">Lab Specialist</Field> </Model> </Models> """, ] TEST_LABS = report_content_to_test_docs(_TEST_LABS)
from base import report_content_to_test_docs _TEST_EQUIPMENT = [ """ <Equipment xmlns='http://indivo.org/vocab/xml/documents#'> <dateStarted>2010-09-01</dateStarted> <name>Tractor</name> <vendor>John Deer</vendor> <description>Hello World</description> </Equipment> """, """ <Equipment xmlns="http://indivo.org/vocab/xml/documents#"> <dateStarted>2010-09-02</dateStarted> <name>cane</name> </Equipment> """ ] TEST_EQUIPMENT = report_content_to_test_docs(_TEST_EQUIPMENT)
<Field name="severity_identifier">24484000</Field> <Monkey name="woahthere">THIS SHOULDN'T BE THERE</Monkey> </Model> </Models> """, ] _TEST_ALLERGIES = [ """ <Models xmlns='http://indivo.org/vocab/xml/documents#'> <Model name="Allergy"> <Field name="allergic_reaction_title">Anaphylaxis</Field> <Field name="allergic_reaction_system">http://purl.bioontology.org/ontology/SNOMEDCT/</Field> <Field name="allergic_reaction_identifier">39579001</Field> <Field name="category_title">Drug allergy</Field> <Field name="category_system">http://purl.bioontology.org/ontology/SNOMEDCT/</Field> <Field name="category_identifier">416098002</Field> <Field name="drug_class_allergen_title">Sulfonamide Antibacterial</Field> <Field name="drug_class_allergen_system">http://purl.bioontology.org/ontology/NDFRT/</Field> <Field name="drug_class_allergen_identifier">N0000175503</Field> <Field name="severity_title">Severe</Field> <Field name="severity_system">http://purl.bioontology.org/ontology/SNOMEDCT/</Field> <Field name="severity_identifier">24484000</Field> </Model> </Models> """, ] TEST_ALLERGIES_INVALID = report_content_to_test_docs(_TEST_ALLERGIES_INVALID) TEST_ALLERGIES = report_content_to_test_docs(_TEST_ALLERGIES)
from base import report_content_to_test_docs _TEST_PROCEDURES = [ """ <Procedure xmlns='http://indivo.org/vocab/xml/documents#'> <datePerformed>2009-05-16T12:00:00Z</datePerformed> <name type='http://codes.indivo.org/procedures#' value='85' abbrev='append'>Appendectomy</name> <provider> <name>Kenneth Mandl</name> <institution>Children's Hospital Boston</institution> </provider> </Procedure> """, """ <Procedure xmlns='http://indivo.org/vocab/xml/documents#'> <datePerformed>2009-06-16T12:00:00Z</datePerformed> <name>Appendectomy</name> <provider> <name>Kenneth Mandl</name> <institution>Children's Hospital Boston</institution> </provider> </Procedure> """, ] TEST_PROCEDURES = report_content_to_test_docs(_TEST_PROCEDURES)
from base import report_content_to_test_docs hba1c = [ {'value' : '3.4', 'datetime' : '2009-01-02T12:03:10Z'}, {'value' : '9.2', 'datetime' : '2008-01-22T17:29:59Z'}, {'value' : '4.8', 'datetime' : '2007-11-02T12:16:38Z'}, {'value' : '4.6', 'datetime' : '2009-04-16T03:22:24Z'}, {'value' : '3.1', 'datetime' : '2009-09-12T12:13:43Z'}, {'value' : '3.3', 'datetime' : '2009-01-03T11:03:23Z'}, {'value' : '1.9', 'datetime' : '2009-08-11T02:38:32Z'}, {'value' : '1.3', 'datetime' : '2009-01-09T12:12:20Z'}, {'value' : '6.7', 'datetime' : '2009-03-12T02:43:39Z'}, {'value' : '3.7', 'datetime' : '2009-02-13T02:11:17Z'}] _TEST_MEASUREMENTS = [ """ <HBA1C xmlns='http://indivo.org/vocab/xml/documents#' value='1.77' unit='percent' datetime='2009-07-22T01:00:00.000Z' /> """, """ <HBA1C xmlns='http://indivo.org/vocab/xml/documents#' value='2.13' unit='percent' datetime='2009-06-17T03:00:00.034Z' /> """, """ <HBA1C xmlns='http://indivo.org/vocab/xml/documents#' value='3.13' unit='percent' datetime='2009-06-17T03:00:00Z' /> """, ] TEST_MEASUREMENTS = report_content_to_test_docs(_TEST_MEASUREMENTS)
}, { 'value': '3.3', 'datetime': '2009-01-03T11:03:23Z' }, { 'value': '1.9', 'datetime': '2009-08-11T02:38:32Z' }, { 'value': '1.3', 'datetime': '2009-01-09T12:12:20Z' }, { 'value': '6.7', 'datetime': '2009-03-12T02:43:39Z' }, { 'value': '3.7', 'datetime': '2009-02-13T02:11:17Z' }] _TEST_MEASUREMENTS = [ """ <HBA1C xmlns='http://indivo.org/vocab/xml/documents#' value='1.77' unit='percent' datetime='2009-07-22T01:00:00.000Z' /> """, """ <HBA1C xmlns='http://indivo.org/vocab/xml/documents#' value='2.13' unit='percent' datetime='2009-06-17T03:00:00.034Z' /> """, """ <HBA1C xmlns='http://indivo.org/vocab/xml/documents#' value='3.13' unit='percent' datetime='2009-06-17T03:00:00Z' /> """, ] TEST_MEASUREMENTS = report_content_to_test_docs(_TEST_MEASUREMENTS)
Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. Patient presents with a serious condition of X and is probably going to need to see a doctor about Y and Z. </content> </SimpleClinicalNote> """, ] TEST_CLINICAL_NOTES = report_content_to_test_docs(_TEST_CLINICAL_NOTES)
_TEST_IMMUNIZATIONS = [ """ <Immunization xmlns='http://indivo.org/vocab/xml/documents#'> <dateAdministered>2009-05-16T00:00:00Z</dateAdministered> <administeredBy>Children's Hospital Boston</administeredBy> <vaccine> <type type='http://codes.indivo.org/codes/vaccinetypes/' value='hep-B' abbrev='hepb'>Hepatitis B</type> <manufacturer>Oolong Pharmaceuticals</manufacturer> <lot>AZ1234567</lot> <expiration>2009-06-01</expiration> </vaccine> <sequence>2</sequence> <anatomicSurface type='http://codes.indivo.org/codes/anatomicsurfaces/' value='shoulder' abbrev='shoulder'>Shoulder</anatomicSurface> <adverseEvent>pain and rash</adverseEvent> </Immunization> """, """ <Immunization xmlns='http://indivo.org/vocab/xml/documents#'> <dateAdministered>2008-05-12T00:00:00Z</dateAdministered> <vaccine> <type type='http://codes.indivo.org/codes/vaccinetypes/' value='82' abbrev='adenovirus, NOS'>adenovirus vaccine, NOS</type> </vaccine> <sequence>2</sequence> </Immunization> """, ] TEST_IMMUNIZATIONS = report_content_to_test_docs(_TEST_IMMUNIZATIONS)
<Problem xmlns='http://indivo.org/vocab/xml/documents#'> <dateOnset>2009-05-16T12:00:00Z</dateOnset> <dateResolution>2009-05-16T16:00:00Z</dateResolution> <name type='http://codes.indivo.org/problems/' value='123' abbrev='MI'>Myocardial Infarction</name> <comments>mild heart attack</comments> <diagnosedBy>Steve Zabak</diagnosedBy> </Problem> """, """ <Problem xmlns='http://indivo.org/vocab/xml/documents#'> <dateOnset>2009-05-16T12:00:00Z</dateOnset> <dateResolution>2009-05-16T16:00:00Z</dateResolution> <name>Myocardial Infarction</name> <comments>mild heart attack</comments> <diagnosedBy>Steve Zabak</diagnosedBy> </Problem> """, """ <Problem xmlns='http://indivo.org/vocab/xml/documents#'> <name>Myocardial Infarction</name> <comments>mild heart attack</comments> <diagnosedBy>Steve Zabak</diagnosedBy> </Problem> """, ] TEST_PROBLEMS = report_content_to_test_docs(_TEST_PROBLEMS)
<frequency>every 12 hours</frequency> <prescription> <by> <name>Dr. Ken Mandl</name> <institution>Children's Hospital Boston</institution> </by> <on>2009-02-01</on> <stopOn>2010-01-31</stopOn> <dispenseAsWritten>true</dispenseAsWritten> <duration>P2M</duration> <refillInfo>once a month for 3 months</refillInfo> <instructions>don't take them all at once!</instructions> </prescription> </Medication> """, """ <Medication xmlns='http://indivo.org/vocab/xml/documents#'> <dateStarted>2009-02-05</dateStarted> <name type='http://indivo.org/codes/meds#' value='Tylenol' abbrev='Tylenol'>Tylenol</name> <dose> <textValue>2</textValue> </dose> <frequency type='http://indivo.org/codes/frequency#' value='225756002' abbrev='q4'>every 4 hours</frequency> </Medication> """, ] TEST_MEDICATIONS = report_content_to_test_docs(_TEST_MEDICATIONS)