0

作为我大学作业的一部分,我必须创建一个用于电子健康监测和记录保存的 xml 数据模型,现在我了解了 XML 的概念和基本结构,但是对于构建它的最佳方式,我有点困惑;我有一个 xml 文档(见下面的结构),但我想问一下将外围设备和医疗记录保存在“健康”下的同一文档中是否是个好主意。因为这会使单个文档变得非常大。

<health>
    <pat>
        <person>
            <name></name>
            <gender></gender>
            <mobile></mobile>
            <email></email>
        </person>
        <address>
            <house></house>
            <street></street>
            <city></city>
            <pc></pc>
        </address>
    </pat>
    <Contact>
        <name></name>
        <tel></tel>
    </Contact>
    <doctor>
        <title></title>
        <firstname></firstname>
        <surname></surname>
        <tel></tel>
    </doctor>
    <drug>
        <name></name>
        <quantity></quantity>
        <cost></cost>
        <expirydate></expirydate>
        <prescribedate></prescribedate>
    </drug>
    <peripheraldata>
        <temperature></temperature>
    </peripheraldata>
    <records>
        <warnings></warnings>
        <symptoms></symptoms>
        <diagnosis></diagnosis>
        <date></date>
    </records>
</health>

提前致谢

4

1 回答 1

1

没有需求说明,很难为您提供帮助。HL7 是 XML 中的健康信息模式,它有数千页长且极其复杂。您显然想要更简单的东西,但是在变得简单之前,它可以简单到什么程度呢?

将多少信息放入文档中的问题对于 XML 来说始终是一个挑战。每位患者一份文件?每个患者集一份文件?如果患者在诊所有约会,这些约会是与患者同住,还是与诊所同住,或与医生同住,还是三者共处?这完全取决于您要达到的目标,而您还没有说。

于 2016-03-07T23:42:10.977 回答