def init(): dom = ET.parse('gpl2.xml') root = dom.getroot() toc = cdautil.sections(root) problems.derive_problems(toc) medications.derive_medications(toc) # x=yield_smart('problems') # s=x() return (dom, root, toc)
def init(): dom = ET.parse('gpl2.xml') root = dom.getroot() toc = cdautil.sections(root) problems.derive_problems(toc) medications.derive_medications(toc) # x=yield_smart('problems') # s=x() return (dom, root, toc) if __name__ == '__main__': dom = ET.parse('gpl2.xml') root = dom.getroot() # tree(root); toc=cdautil.sections(root); # print; # listtoc(toc); # print ; # show(toc,'problem-1') problems.derive_problems(toc) medications.derive_medications(toc) listtoc(toc) # listtoc(toc) # g.prefix_mapping("ccd","https:this.ccd.com/patient888999/records/") gr=problems.smart_problems(toc) outn3=gr.serialize(format='n3') print outn3; gr=medications.smart_medications(toc) moutn3=gr.serialize(format='n3') print moutn3;