本文整理匯總了Java中org.hl7.v3.POCDMT000040Component3類的典型用法代碼示例。如果您正苦於以下問題:Java POCDMT000040Component3類的具體用法?Java POCDMT000040Component3怎麽用?Java POCDMT000040Component3使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
POCDMT000040Component3類屬於org.hl7.v3包,在下文中一共展示了POCDMT000040Component3類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: puraVarauksenSelitys
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Purkaa varuksen selityksen
*
* @param clinicalDocument
* @param varaus
*/
private void puraVarauksenSelitys(POCDMT000040ClinicalDocument clinicalDocument, LaakemaarayksenVarausTO varaus) {
POCDMT000040Component3 component3 = clinicalDocument.getComponent().getStructuredBody().getComponents().get(0);
POCDMT000040Component5 component5a = component3.getSection().getComponents().get(0);
POCDMT000040Component5 component5b = component5a.getSection().getComponents().get(0);
POCDMT000040Section section = component5b.getSection();
if ( !section.getEntries().isEmpty() ) {
POCDMT000040Entry entry = section.getEntries().get(0);
if ( entry != null && entry.getAct() != null && entry.getAct().getText() != null
&& !entry.getAct().getText().getContent().isEmpty() ) {
POCDMT000040Act act = entry.getAct();
ED text = act.getText();
varaus.setSelitys((String) text.getContent().get(0));
}
}
}
開發者ID:TheFinnishSocialInsuranceInstitution,項目名稱:KantaCDA-API,代碼行數:22,代碼來源:ReseptinVarauksenPurkaja.java
示例2: puraLukituksenSelitys
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Purkaa lukituksen selityksen
*
* @param clinicalDocument
* @param lukituksenPurku
*/
private void puraLukituksenSelitys(POCDMT000040ClinicalDocument clinicalDocument,
LaakemaarayksenLukitusTO lukitus) {
POCDMT000040Component3 component3 = clinicalDocument.getComponent().getStructuredBody().getComponents().get(0);
POCDMT000040Component5 component5a = component3.getSection().getComponents().get(0);
POCDMT000040Component5 component5b = component5a.getSection().getComponents().get(0);
POCDMT000040Section section = component5b.getSection();
if ( !section.getEntries().isEmpty() ) {
POCDMT000040Entry entry = section.getEntries().get(0);
if ( entry != null && entry.getAct() != null && entry.getAct().getText() != null
&& !entry.getAct().getText().getContent().isEmpty() ) {
POCDMT000040Act act = entry.getAct();
ED text = act.getText();
lukitus.setSelitys((String) text.getContent().get(0));
}
}
}
開發者ID:TheFinnishSocialInsuranceInstitution,項目名稱:KantaCDA-API,代碼行數:23,代碼來源:ReseptinLukituksenPurkaja.java
示例3: puraLaakemaarays
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Purkaa lääkemääräyksen näyttömuodon tiedot LaakemaaraysTO luokkaan
*
* @param String
* cda josta tiedot puretaan
* @return LaakemaaraysTO johon näyttömuodon tiedot on sijoitetaan
* @throws PurkuException
*/
public LaakemaaraysTO puraLaakemaarays(String cda) throws PurkuException {
try {
POCDMT000040ClinicalDocument clinicalDocument = JaxbUtil.getInstance().unmarshaller(cda);
LaakemaaraysTO laakemaarays = luoLaakemaaraysTO(clinicalDocument);
puraLeimakentat(clinicalDocument, laakemaarays);
tarkistaAsiakirjaVersio(clinicalDocument, laakemaarays);
POCDMT000040Component3 comp = getComponent(clinicalDocument.getComponent().getStructuredBody());
puraSection(comp.getSection(), laakemaarays);
return laakemaarays;
} catch (JAXBException e) {
throw new PurkuException(e);
}
}
開發者ID:TheFinnishSocialInsuranceInstitution,項目名稱:KantaCDA-API,代碼行數:22,代碼來源:ReseptiNayttomuodonPurkaja.java
示例4: addComponentToBody
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
public void addComponentToBody(String title, String text, String docboxSectionCode){
POCDMT000040Component3 component =
getComponent(stripNonValidXMLCharacters(title), null,
stripNonValidXMLCharacters(docboxSectionCode));
component.getSection().setText(getStrucDocTextWithBreaks(text));
listComponent.add(component);
}
示例5: addAttachmentsDescriptionToBody
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
public void addAttachmentsDescriptionToBody(Vector<String> attachments){
StrucDocText strucDocText = new StrucDocText();
for (String attachment : attachments) {
StrucDocLinkHtml strucDocLinkHtml = new StrucDocLinkHtml();
strucDocLinkHtml.setHref(attachment);
strucDocLinkHtml.getContent().add(attachment);
strucDocText.getContent().add(strucDocLinkHtml);
strucDocText.getContent().add(new StrucDocBr());
}
POCDMT000040Component3 component = getComponent(null, null, "ATT");
component.getSection().setText(strucDocText);
listComponent.add(component);
}
示例6: getComponent
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
private POCDMT000040Component3 getComponent(String title, String text,
String docboxSectionCode, String docboxSectionId){
POCDMT000040Component3 component = new POCDMT000040Component3();
POCDMT000040Section section = new POCDMT000040Section();
if (docboxSectionCode != null) {
CD cd = new CD();
cd.setCode(docboxSectionCode);
cd.setCodeSystem(docboxSectionId);
CE ce = new CE();
ce.getNullFlavor().add("NA");
ce.getTranslation().add(cd);
section.setCode(ce);
}
if (title != null) {
ST st = new ST();
st.setContent(title);
section.setTitle(st);
}
if (text != null) {
StrucDocText strucDocText = new StrucDocText();
strucDocText.getContent().add(text);
section.setText(strucDocText);
}
component.setSection(section);
return component;
}
示例7: addMedikamente
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Klinische Angaben Medikamente KMED Text mit <br/>
* Elementen getrennt für Einzeleinträge von Medikamenten
*
* @return String
*/
public boolean addMedikamente(String[] medikamente){
POCDMT000040Component3 component = getComponent("Medikamente", null, "KMED");
component.getSection().setText(getStrucDocTextWithBreaks(medikamente));
listComponent.add(component);
return true;
}
示例8: addInstrumente
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Klinische Angaben Instrumente KINSTRUMENT Selekion aus Liste: Verfügbare Instrumente abhängig
* von Leistung
*
* @return String
*/
public boolean addInstrumente(String[] liste){
POCDMT000040Component3 component = getComponent("Instrumente", null, "KINSTRUMENT");
component.getSection().setText(getStrucDocTextWithBreaks(liste));
listComponent.add(component);
return true;
}
示例9: addLagerung
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Klinische Angaben Lagerung KLAGERUNG Selekion aus Liste: Verfügbare Lagerungen abhängig von
* Leistung
*
* @return String
*/
public boolean addLagerung(String[] liste){
POCDMT000040Component3 component = getComponent("Lagerung", null, "KLAGERUNG");
component.getSection().setText(getStrucDocTextWithBreaks(liste));
listComponent.add(component);
return true;
}
示例10: addAnaesthesie
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Klinische Angaben Anästhesie KANÄSTHESIE Selekion aus Liste: Verfügbare Anästhesie abhängig
* von Leistung
*
* @return String
*/
public boolean addAnaesthesie(String[] liste){
POCDMT000040Component3 component = getComponent(null, null, "KANÄSTHESIE");
component.getSection().setText(this.getStrucDocTextWithBreaks(liste));
listComponent.add(component);
return true;
}
示例11: getComponent
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
private POCDMT000040Component3 getComponent(POCDMT000040StructuredBody body) {
if ( body.getComponents() != null && !body.getComponents().isEmpty() ) {
return body.getComponents().get(0);
}
return null;
}
開發者ID:TheFinnishSocialInsuranceInstitution,項目名稱:KantaCDA-API,代碼行數:7,代碼來源:ReseptiNayttomuodonPurkaja.java
示例12: kasaaUusimispyynto
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Kasaa uusimispyyntöasiakirjan konstruktorissa annetun UusimispyyntoTO:n tietojen perusteella.
*
* @return Uusimispyyntöasiakirja JAXB-elementteinä
*/
public POCDMT000040ClinicalDocument kasaaUusimispyynto() {
validoiLaakemaarays();
POCDMT000040ClinicalDocument doc = of.createPOCDMT000040ClinicalDocument();
String effectiveTimeValue = getDateFormat().format(new Date());
addIdFields(doc, uusimispyynto, effectiveTimeValue);
addRecordTarget(doc, uusimispyynto.getHenkilotiedot());
lisaaPuhnoRecordTargettiin(doc, uusimispyynto.getMatkapuhelinnumero());
doc.getAuthors().add(luoAuthor(uusimispyynto));
addCustodian(doc);
doc.getInformationRecipients().add(luoInformationRecipient(uusimispyynto));
addRelatedDocument(doc, uusimispyynto.getUusittavaLaakemaaraysOid(),
uusimispyynto.getUusittavaLaakemaaraysSetId(),
KantaCDAConstants.ReseptisanomanTyyppi.LAAKEMAARAYS.getTyyppi() + ".reseptisanomantyyppi",
XActRelationshipDocument.APND);
// luoComponentOffin palvelutapahtumanOid voi lienee olla null koska kyseinen pakollinen vain Lääkemääräyksissä,
// niiden korjauksissa ja mitätöinneissä jos ovat laadittu palvelutapahtuman yhteydessä.
addComponentOf(doc, effectiveTimeValue, uusimispyynto.getLaatimispaikka(), null);
addLocalHeader(doc);
// Tarvitseeko / pitääkö uusimispyynnöllä olla tabelOfContents?
if ( doc.getLocalHeader() != null && doc.getLocalHeader().getTableOfContents() != null
&& !doc.getLocalHeader().getTableOfContents().getContentsCodes().isEmpty() ) {
doc.getLocalHeader().setTableOfContents(null);
}
// CDA Body
doc.setComponent(of.createPOCDMT000040Component2());
doc.getComponent().setStructuredBody(of.createPOCDMT000040StructuredBody());
POCDMT000040Component3 component3 = of.createPOCDMT000040Component3();
POCDMT000040InfrastructureRootTemplateId templateId = of.createPOCDMT000040InfrastructureRootTemplateId();
fetchAttributes(ReseptiKasaaja.template_id, templateId);
component3.getTemplateIds().add(templateId);
component3.setSection(of.createPOCDMT000040Section());
component3.getSection().setAttributeID(getNextOID(uusimispyynto));
component3.getSection().setId(of.createII());
component3.getSection().getId().setRoot(getId(uusimispyynto));
component3.getSection().setCode(of.createCE());
fetchAttributes("contentsCode", component3.getSection().getCode());
component3.getSection().setTitle(of.createST());
component3.getSection().getTitle().getContent().add(component3.getSection().getCode().getDisplayName());
POCDMT000040Component5 component5a = of.createPOCDMT000040Component5();
component5a.setSection(of.createPOCDMT000040Section());
component5a.getSection().setAttributeID(getNextOID(uusimispyynto));
component5a.getSection().setId(of.createII());
component5a.getSection().getId().setRoot(getId(uusimispyynto));
// näyttömuoto
component5a.getSection().setText(luoNarrativeUusimispyynto(uusimispyynto));
POCDMT000040Component5 component5b = of.createPOCDMT000040Component5();
component5b.setSection(of.createPOCDMT000040Section());
component5b.getSection().setAttributeID(getNextOID(uusimispyynto));
component5b.getSection().setId(of.createII());
component5b.getSection().getId().setRoot(getId(uusimispyynto));
component5b.getSection().getEntries().add(luoPaaosa(uusimispyynto));
component5b.getSection().getEntries().add(luoValimisteenNimiMaaraajaJaMaaraysPvm(uusimispyynto));
component5a.getSection().getComponents().add(component5b);
component3.getSection().getComponents().add(component5a);
doc.getComponent().getStructuredBody().getComponents().add(component3);
return doc;
}
示例13: kasaaResepti
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
/**
* Kasaa resepti cdan annetun LaakemaaraysTOn pohjalta.
*
* @param laakemaarays
* LaakemaaraysTO josta cda muodostetaan
* @return POCDMT000040ClinicalDocument lääkemääräys cda
*/
private POCDMT000040ClinicalDocument kasaaResepti(LaakemaaraysTO laakemaarays) {
Calendar now = Calendar.getInstance(TimeZone.getTimeZone(ReseptiKasaaja.TIME_ZONE));
// TODO: Lisää laakemaarays.isKyseessaLaakkeenkaytonAloitus();
POCDMT000040ClinicalDocument clinicalDocument = of.createPOCDMT000040ClinicalDocument();
String effectiveTimeValue = getDateFormat().format(now.getTime());
String today = getTodayDateFormat().format(now.getTime());
addIdFields(clinicalDocument, laakemaarays, effectiveTimeValue);
addRecordTarget(clinicalDocument, laakemaarays.getPotilas());
addAuthor(clinicalDocument, luoAuthor(laakemaarays.getAmmattihenkilo()));
addCustodian(clinicalDocument);
addComponentOf(clinicalDocument, effectiveTimeValue, laakemaarays.getLaatimispaikka(),
laakemaarays.getPalvelutapahtumanOid());
addLocalHeader(clinicalDocument);
POCDMT000040Component2 component2 = of.createPOCDMT000040Component2();
clinicalDocument.setComponent(component2);
component2.setStructuredBody(of.createPOCDMT000040StructuredBody());
POCDMT000040Component3 component3 = of.createPOCDMT000040Component3();
component2.getStructuredBody().getComponents().add(component3);
component3.getTemplateIds().add(of.createPOCDMT000040InfrastructureRootTemplateId());
// TempalteId
fetchAttributes(ReseptiKasaaja.template_id, component3.getTemplateIds().get(0));
component3.setSection(of.createPOCDMT000040Section());
component3.getSection().setAttributeID(getNextOID(laakemaarays));
component3.getSection().setId(of.createII());
component3.getSection().getId().setRoot(getId(laakemaarays));
component3.getSection().setCode(of.createCE());
fetchAttributes(Kasaaja.LM_CONTENTS, component3.getSection().getCode());
component3.getSection().setTitle(of.createST());
// Title
component3.getSection().getTitle().getContent().add(component3.getSection().getCode().getDisplayName());
POCDMT000040Component5 component5 = luoComponent(laakemaarays);
component3.getSection().getComponents().add(component5);
// Narrative (paikka, aika, lääkäri)
component5.getSection().setText(luoNarrativePaikkaPvmLaakari(laakemaarays, today));
component5.getSection().getComponents().add(luoComponent(laakemaarays));
// Narrative (lääkemääräyksen tiedot)
component5.getSection().getComponents().get(0).getSection().setText(luoNarrativeLaakemaarays(laakemaarays));
List<POCDMT000040Entry> entries = component5.getSection().getComponents().get(0).getSection().getEntries();
// Valmisteen ja Pakkausten tiedot
entries.add(
luoValmisteenJaPakkauksenTiedot(laakemaarays, effectiveTimeValue, laakemaarays.getAmmattihenkilo()));
// Vaikuttavat aineet
if ( lisataankoVaikuttavatAineet(laakemaarays) ) {
entries.add(luoVaikuttavatAinesosat(laakemaarays));
}
// Muut ainesosat
// Vain apteekissa valmistettaville?
if ( laakemaarays.isApteekissaValmistettavaLaake() ) {
entries.add(luoMuutAinesosat(laakemaarays));
}
// annostus
entries.add(luoAnnostus(laakemaarays));
// Lääkemääräyksen muut tiedot
entries.add(luoMuutTiedot(laakemaarays));
return clinicalDocument;
}
示例14: processClinicalDocument
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
private void processClinicalDocument(POCDMT000040ClinicalDocument doc) {
// make this more eloquent later...
try {
POCDMT000040Component2 comp2 = doc.getComponent();
POCDMT000040StructuredBody body = comp2.getStructuredBody();
POCDMT000040Component3 comp3 = body.getComponent().get(0);
POCDMT000040Section section = comp3.getSection();
POCDMT000040Entry entry = section.getEntry().get(0);
POCDMT000040Act act = entry.getAct();
List<POCDMT000040EntryRelationship> relationships = act
.getEntryRelationship();
Iterator iterRelationships = relationships.iterator();
// determine if this is a negative disclosure
while (iterRelationships.hasNext()) {
POCDMT000040EntryRelationship rel = (POCDMT000040EntryRelationship) iterRelationships
.next();
POCDMT000040Act rAct = rel.getAct();
if (rAct != null) {
CD cd = rAct.getCode();
if (cd.getCode().equals("DISCLOSE")) {
if (rAct.isNegationInd()) {
patientAuthorization = "Deny";
} else {
patientAuthorization = "Disclose";
}
}
}
try {
POCDMT000040ObservationMedia obs = rel
.getObservationMedia();
if (obs != null) {
ED eVal = obs.getValue();
if (CONSENT_MEDIA_TYPE.equals(eVal.getMediaType())) {
String pConsent = (String) eVal.getContent().get(0);
policy = getXACMLPolicySetFromString(pConsent);
}
}
} catch (Exception px) {
// just ignore as many will be null
}
}
} catch (Exception ex) {
throw new DS4PException(ex.getMessage(), ex);
}
}
示例15: getDocumentComponent2
import org.hl7.v3.POCDMT000040Component3; //導入依賴的package包/類
private POCDMT000040Component2 getDocumentComponent2(CE conf, String intendedPurposeOfUse, String authorization, OrganizationPolicy orgPolicy, List<String> maskingActions, List<String> redactActions, String pdf, String xacml) {
POCDMT000040Component2 comp = new POCDMT000040Component2();
POCDMT000040StructuredBody body = new POCDMT000040StructuredBody();
POCDMT000040Component3 comp2 = new POCDMT000040Component3();
comp2.setTypeCode(ActRelationshipHasComponent.COMP);
POCDMT000040Section section = new POCDMT000040Section();
section.getClassCode().add("DOCSECT");
section.getMoodCode().add("EVN");
II sectTemp = new II();
sectTemp.setRoot("2.16.840.1.113883.3.445.17");
section.getTemplateId().add(sectTemp);
ST sectTitle = new ST();
sectTitle.getContent().add(new String("Consent Directive Detail"));
section.setTitle(sectTitle);
section.getEntry().add(getEntryPurposeOfUse(intendedPurposeOfUse, authorization, orgPolicy, maskingActions, redactActions, pdf, xacml));
section.setConfidentialityCode(conf);
POCDMT000040InfrastructureRootTypeId sectionId = new POCDMT000040InfrastructureRootTypeId();
sectionId.setRoot("2.16.840.1.113883.3.445.5");
POCDMT000040Entry entry = new POCDMT000040Entry();
entry.setTypeCode(XActRelationshipEntry.COMP);
POCDMT000040InfrastructureRootTypeId entryType = new POCDMT000040InfrastructureRootTypeId();
entryType.setRoot("2.16.840.1.113883.3.445.4");
entry.setTypeId(entryType);
POCDMT000040Act act = new POCDMT000040Act();
act.setClassCode(XActClassDocumentEntryAct.ACT);
act.setMoodCode(XDocumentActMood.DEF);
entry.setAct(act);
comp2.setSection(section);
body.getComponent().add(comp2);
comp.setStructuredBody(body);
return comp;
}