public final class CommonObjectBuilderImpl extends Object implements CommonObjectBuilder
CommonObjectBuilder
requires following config property : kmehr.therlink.identifier.id.idhcparty ( or kmehr.default.identifier.id.idhcparty if default
properties for kmehr are used )Constructor and Description |
---|
CommonObjectBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
Author |
createAuthor(List<HcParty> list)
Creates the author part of the message
|
String |
createKmehrID()
Creates the id of the kmehr message
|
TherapeuticLink |
createTherapeuticLink(org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate,
Patient patient,
String hcpType,
String therLinkType,
String comment,
HcParty concernedHcp)
Creates a therapeutic link
|
TherapeuticLink |
createTherapeuticLink(Patient patient,
String hcpType,
String therLinkType,
Date startDate,
Date endDate,
String comment,
HcParty hcp)
Deprecated.
|
@Deprecated public TherapeuticLink createTherapeuticLink(Patient patient, String hcpType, String therLinkType, Date startDate, Date endDate, String comment, HcParty hcp) throws TechnicalConnectorException
CommonObjectBuilder
createTherapeuticLink
in interface CommonObjectBuilder
patient
- the concerned patienthcpType
- the type of the professional concerned by the therapeutic linktherLinkType
- the type of the therapeutic linkstartDate
- the start dateendDate
- (optional) the end datecomment
- (optional) a comment about the therapeutic linkhcp
- The HCP concerned by the link. If it's null, then we will use session info by defaultTechnicalConnectorException
- Deprecated : replaced by the other functionpublic Author createAuthor(List<HcParty> list) throws TechnicalConnectorException
CommonObjectBuilder
createAuthor
in interface CommonObjectBuilder
list
- list of professionals to add in the author partTechnicalConnectorException
public String createKmehrID() throws TechnicalConnectorException
CommonObjectBuilder
createKmehrID
in interface CommonObjectBuilder
TechnicalConnectorException
public TherapeuticLink createTherapeuticLink(org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, Patient patient, String hcpType, String therLinkType, String comment, HcParty concernedHcp) throws TechnicalConnectorException
CommonObjectBuilder
createTherapeuticLink
in interface CommonObjectBuilder
startDate
- the start dateendDate
- (optional) the end datepatient
- the concerned patienthcpType
- the type of the professional concerned by the therapeutic linktherLinkType
- the type of the therapeutic linkcomment
- (optional) a comment about the therapeutic linkconcernedHcp
- The HCP concerned by the link. If it's null, then we will use session info by defaultTechnicalConnectorException
be.ehealth.businessconnector.therlink.builders.CommonObjectBuilder#createTherapeuticLink(be.ehealth.business.common.domain.Patient,
java.lang.String, java.lang.String, org.joda.time.DateTime, org.joda.time.DateTime, java.lang.String,
be.ehealth.businessconnector.therlink.domain.HcParty)
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.