本文整理汇总了Java中org.hl7.v3.POCDMT000040PatientRole类的典型用法代码示例。如果您正苦于以下问题:Java POCDMT000040PatientRole类的具体用法?Java POCDMT000040PatientRole怎么用?Java POCDMT000040PatientRole使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
POCDMT000040PatientRole类属于org.hl7.v3包,在下文中一共展示了POCDMT000040PatientRole类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: lisaaPuhnoRecordTargettiin
import org.hl7.v3.POCDMT000040PatientRole; //导入依赖的package包/类
/**
* Lisää matkapuhelinnumeron clinicalDocument/recordTarget/patientRole/telecom elementtin jos annettu numero ei ole
* tyhjä tai null ja cda/recordTarget/patientRole/patient on asetettu
*
* @param doc
* POCDMT000040ClinicalDocument johon puh. sijoitetaan jos ehdot täyttyvät
* @param matkapuhelinnumero
* String matkapuhelinnumero joka telecom elementtiin sijoitetaan
*/
private void lisaaPuhnoRecordTargettiin(POCDMT000040ClinicalDocument doc, String matkapuhelinnumero) {
if ( !onkoNullTaiTyhja(matkapuhelinnumero) ) {
POCDMT000040PatientRole patientRole = getRecordTargetPatientRole(doc);
if ( null != patientRole ) {
TEL puhelinnumero = of.createTEL();
puhelinnumero.setValue(muodostaTelecomValue(matkapuhelinnumero, KantaCDAConstants.TEL_PREFIX));
puhelinnumero.getUses().add("MC");
patientRole.getTelecoms().add(puhelinnumero);
}
}
}
示例2: getRecordTargetPatientRole
import org.hl7.v3.POCDMT000040PatientRole; //导入依赖的package包/类
/**
* Apumetodi joka palauttaa clinicalDocument/recordTarget/patientRole elementin jos patientRole elementtin luotu ja
* sen patient elementti luotu
*
* @param doc
* POCDMT000040ClinicalDocument josta patientRolea etsitään
* @return POCDMT000040PatientRole elementti jos löytyi, muuten null
*/
private POCDMT000040PatientRole getRecordTargetPatientRole(POCDMT000040ClinicalDocument doc) {
if ( null == doc || doc.getRecordTargets().isEmpty() ) {
return null;
}
for (POCDMT000040RecordTarget recordTarget : doc.getRecordTargets()) {
POCDMT000040PatientRole patientRole = recordTarget.getPatientRole();
if ( null != patientRole && null != patientRole.getPatient() ) {
return patientRole;
}
}
return null;
}
示例3: getDocumentRecordTargets
import org.hl7.v3.POCDMT000040PatientRole; //导入依赖的package包/类
private List<POCDMT000040RecordTarget> getDocumentRecordTargets(String patientId, String patientName, String patientGender, String patientBirthDate, OrganizationPolicy orgPolicy) {
List targets = new ArrayList();
POCDMT000040RecordTarget target = new POCDMT000040RecordTarget();
II uniqueId = new II();
uniqueId.setExtension(patientId);
uniqueId.setRoot(orgPolicy.getHomeCommunityId());
POCDMT000040Patient patient = new POCDMT000040Patient();
CE gender = new CE();
gender.setCode(patientGender);
patient.setAdministrativeGenderCode(gender);
TS birthtime = new TS();
birthtime.setValue(patientBirthDate);
patient.setBirthTime(birthtime);
PN patientname = new PN();
StringTokenizer st = new StringTokenizer(patientName);
String first = st.nextToken();
String last = st.nextToken();
patientname.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "given"), EnGiven.class, first));
patientname.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "family"), EnFamily.class, last));
patient.getName().add(patientname);
AD patientaddr = new AD();
patientaddr.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "streetAddressLine"), AdxpStreetAddressLine.class, orgPolicy.getOrganizationConsentPolicyInfo().getDefaultPatientDemographics().getAddr().getStreetAddressLine()));
patientaddr.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "city"), AdxpCity.class, orgPolicy.getOrganizationConsentPolicyInfo().getDefaultPatientDemographics().getAddr().getCity()));
patientaddr.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "state"), AdxpState.class, orgPolicy.getOrganizationConsentPolicyInfo().getDefaultPatientDemographics().getAddr().getState()));
patientaddr.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "postalCode"), AdxpPostalCode.class, orgPolicy.getOrganizationConsentPolicyInfo().getDefaultPatientDemographics().getAddr().getPostalCode()));
patientaddr.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "county"), AdxpCounty.class, orgPolicy.getOrganizationConsentPolicyInfo().getDefaultPatientDemographics().getAddr().getCounty()));
patientaddr.getContent().add(new JAXBElement(new QName("urn:hl7-org:v3", "country"), AdxpCountry.class, orgPolicy.getOrganizationConsentPolicyInfo().getDefaultPatientDemographics().getAddr().getCountry()));
POCDMT000040PatientRole patientRole = new POCDMT000040PatientRole();
patientRole.getId().add(uniqueId);
patientRole.getAddr().add(patientaddr);
patientRole.setPatient(patient);
target.setPatientRole(patientRole);
targets.add(target);
return targets;
}
示例4: getVisitor
import org.hl7.v3.POCDMT000040PatientRole; //导入依赖的package包/类
/**
* Ruft den Wert der visitor-Eigenschaft ab.
*
* @return
* possible object is
* {@link POCDMT000040PatientRole }
*
*/
public POCDMT000040PatientRole getVisitor() {
return visitor;
}
示例5: setVisitor
import org.hl7.v3.POCDMT000040PatientRole; //导入依赖的package包/类
/**
* Legt den Wert der visitor-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link POCDMT000040PatientRole }
*
*/
public void setVisitor(POCDMT000040PatientRole value) {
this.visitor = value;
}