- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在通过编码生成的 jaxb 类来生成 CCD 文档。我在文档的初始部分被困了几天。我会尽力解释我的问题。
<name>
<given>Henry</given>
</name>
我被困在生成文档的上述部分,确切地说是生成的部分。
我正在发布所有相关的 jaxb 类。
package com.smartdatasolutions.referralmanager.ccd;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* A name for a person. A sequence of name parts, such as
* given name or family name, prefix, suffix, etc. PN differs
* from EN because the qualifier type cannot include LS
* (Legal Status).
*
*
* <p>Java class for PN complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PN">
* <complexContent>
* <extension base="{urn:hl7-org:v3}EN">
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PN")
public class PN
extends EN
{
}
package com.smartdatasolutions.referralmanager.ccd;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
*
* A name for a person, organization, place or thing. A
* sequence of name parts, such as given name or family
* name, prefix, suffix, etc. Examples for entity name
* values are "Jim Bob Walton, Jr.", "Health Level Seven,
* Inc.", "Lake Tahoe", etc. An entity name may be as simple
* as a character string or may consist of several entity name
* parts, such as, "Jim", "Bob", "Walton", and "Jr.", "Health
* Level Seven" and "Inc.", "Lake" and "Tahoe".
*
*
* <p>Java class for EN complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="EN">
* <complexContent>
* <extension base="{urn:hl7-org:v3}ANY">
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="delimiter" type="{urn:hl7-org:v3}en.delimiter"/>
* <element name="family" type="{urn:hl7-org:v3}en.family"/>
* <element name="given" type="{urn:hl7-org:v3}en.given"/>
* <element name="prefix" type="{urn:hl7-org:v3}en.prefix"/>
* <element name="suffix" type="{urn:hl7-org:v3}en.suffix"/>
* </choice>
* <element name="validTime" type="{urn:hl7-org:v3}IVL_TS" minOccurs="0"/>
* </sequence>
* <attribute name="use" type="{urn:hl7-org:v3}set_EntityNameUse" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EN", propOrder = {
"content"
})
@XmlSeeAlso({
ON.class,
PN.class,
TN.class
})
public class EN {
@XmlElementRefs({
@XmlElementRef(name = "suffix", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false),
@XmlElementRef(name = "delimiter", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false),
@XmlElementRef(name = "given", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false),
@XmlElementRef(name = "family", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false),
@XmlElementRef(name = "prefix", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false),
@XmlElementRef(name = "validTime", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
})
@XmlMixed
protected List<Serializable> content;
@XmlAttribute(name = "use")
protected List<String> use;
/**
*
* A name for a person, organization, place or thing. A
* sequence of name parts, such as given name or family
* name, prefix, suffix, etc. Examples for entity name
* values are "Jim Bob Walton, Jr.", "Health Level Seven,
* Inc.", "Lake Tahoe", etc. An entity name may be as simple
* as a character string or may consist of several entity name
* parts, such as, "Jim", "Bob", "Walton", and "Jr.", "Health
* Level Seven" and "Inc.", "Lake" and "Tahoe".
* Gets the value of the content property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link EnSuffix }{@code >}
* {@link JAXBElement }{@code <}{@link EnDelimiter }{@code >}
* {@link String }
* {@link JAXBElement }{@code <}{@link EnGiven }{@code >}
* {@link JAXBElement }{@code <}{@link EnFamily }{@code >}
* {@link JAXBElement }{@code <}{@link EnPrefix }{@code >}
* {@link JAXBElement }{@code <}{@link IVLTS }{@code >}
*
*
*/
public List<Serializable> getContent() {
if (content == null) {
content = new ArrayList<Serializable>();
}
return this.content;
}
/**
* Gets the value of the use property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the use property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getUse().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getUse() {
if (use == null) {
use = new ArrayList<String>();
}
return this.use;
}
}
package com.smartdatasolutions.referralmanager.ccd;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for en.given complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="en.given">
* <complexContent>
* <restriction base="{urn:hl7-org:v3}ENXP">
* <attribute name="partType" type="{urn:hl7-org:v3}EntityNamePartType" fixed="GIV" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "en.given")
public class EnGiven
extends ENXP
{
}
package com.smartdatasolutions.referralmanager.ccd;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
*
* A character string token representing a part of a name.
* May have a type code signifying the role of the part in
* the whole entity name, and a qualifier code for more detail
* about the name part type. Typical name parts for person
* names are given names, and family names, titles, etc.
*
*
* <p>Java class for ENXP complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ENXP">
* <complexContent>
* <extension base="{urn:hl7-org:v3}ST">
* <attribute name="partType" type="{urn:hl7-org:v3}EntityNamePartType" />
* <attribute name="qualifier" type="{urn:hl7-org:v3}set_EntityNamePartQualifier" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ENXP")
@XmlSeeAlso({
EnDelimiter.class,
EnPrefix.class,
EnSuffix.class,
EnGiven.class,
EnFamily.class
})
public class ENXP
extends ST
{
@XmlAttribute(name = "partType")
protected String partType;
@XmlAttribute(name = "qualifier")
protected List<String> qualifier;
/**
* Gets the value of the partType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPartType() {
return partType;
}
/**
* Sets the value of the partType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPartType(String value) {
this.partType = value;
}
/**
* Gets the value of the qualifier property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the qualifier property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getQualifier().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getQualifier() {
if (qualifier == null) {
qualifier = new ArrayList<String>();
}
return this.qualifier;
}
}
目前我正在尝试这个,但它不起作用
PN pn = new PN();
EnGiven enGiven = new EnGiven();
enGiven.setPartType("Hnery");
pn.getContent().add(enGiven);
但它给出错误The method add(Serializable) in the type List<Serializable> is not applicable for the arguments (EnGiven)
最佳答案
我建议使用 MDHT,而不是与 CDA 模式中的 JAXB 代码作斗争(这是该项目的主要原因) https://www.projects.openhealthtools.org/sf/projects/mdht/
这是添加患者和患者姓名的代码片段
ContinuityOfCareDocument ccd = ConsolFactory.eINSTANCE.createContinuityOfCareDocument().init();
Patient patient = CDAFactory.eINSTANCE.createPatient();
PN pn = DatatypesFactory.eINSTANCE.createPN();
pn.addText("Plain Old Name Here");
patient.getNames().add(pn);
ccd.addPatient(patient);
CDAUtil.save(ccd, System.out);
这是生成的 XML
<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.22.1.2"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
<recordTarget>
<patientRole>
<patient>
<name>Plain Old Name Here</name>
</patient>
</patientRole>
</recordTarget>
</ClinicalDocument>
HTH肖恩
关于java - 设置 EnGiven 时 CCD 文档序列化错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24756207/
我正在研究HL7版本3的CDA和CCD。有人可以告诉我CDA和CCD的目的是什么,为什么要使用它?我做了很多尝试来找出问题,但我不能,请帮助我。 (如果我通过HL7版本2获得所有信息,为什么我应该使用
我正在写一个函数来在方形数组上画一个近似的圆(在 Matlab 中,但问题主要是算法)。 目标是制作一个掩模,用于集成从衍射极限点源(其直径对应于 CCD 阵列上的几个像素)落在 CCD 传感器的一部
我们如何从校准矩阵中知道相机传感器的尺寸? 我已经有了校准矩阵。但是焦距是像素形式的。 最佳答案 校准矩阵中的“焦距”实际上并非以像素表示。它实际上是一个比率,它将现实世界中的传感器尺寸与图像中像素的
我需要编写一个脚本来将医疗信息从 CCD 文档提取到数据库 (MySql)。然后,执行一系列查询以生成报告。我打算使用 php 作为脚本语言。任何人的任何想法都会受到赞赏。 最佳答案 据我所知,目前还
当我有 CCD 示例时,我应该使用: 一个 XSD 架构并得出结论,我有一个有效的 CCD。 或 我使用其他一些(非基于架构的)方法。 (UML 模型规则以及有效的 XML 文档。) 有没有ccd.x
我的公司将成为 HIE,我们正在研究如何与其他系统交换我们的信息。我们在美国,我看到目前通用的标准是HL7 V2。 HL7 V3 不向后兼容 HL7 V2。这些是我们计划实现的交易: o 出院总结 o
我正在通过编码生成的 jaxb 类来生成 CCD 文档。我在文档的初始部分被困了几天。我会尽力解释我的问题。 Henry
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 1
我正在尝试使用 MDHT API 生成 CCD 文档。我正在通过以下方式进行此操作。 下载 Java 运行时库并将它们放在类路径中并编写代码以使用 MDHT API 生成所有部分。 为每个部分编写代码
Closed. This question does not meet Stack Overflow guidelines。它当前不接受答案。 想改善这个问题吗?更新问题,以便将其作为on-topic
我接到了一个项目,要使用存储在 SQL Server 2008 数据库中的数据创建 HL7 护理连续性文档 (CCD)。我在 SQL 编程方面具有中高级知识,但我从未使用过 FOR XML 语句。 有
我正在使用 java 解析 ccd.xml。我可以使用 java 对象访问 ccd 的每个节点/元素。 查询:当htmlElement出现在ccd的任意节点。我的java对象没有到达那个节点?我可以获
我是一名优秀的程序员,十分优秀!