be.ehealth.businessconnector.chapterIV.builders.impl
Class AdmissionBuilderImpl
java.lang.Object
be.ehealth.businessconnector.chapterIV.builders.impl.AdmissionBuilderImpl
- All Implemented Interfaces:
- AdmissionBuilder
public class AdmissionBuilderImpl
- extends Object
- implements AdmissionBuilder
A builder for the chapter IV admission service. Implements : AdmissionBuilder
Method Summary |
ChapterIVBuilderResponse |
build(FolderType folder,
boolean isTest,
ChapterIVReferences references,
org.joda.time.DateTime agreementStartDate)
|
AskChap4MedicalAdvisorAgreementRequest |
buildRequest(FolderType folder,
boolean isTest,
ChapterIVReferences references,
org.joda.time.DateTime agreementStartDate)
|
AskChap4MedicalAdvisorAgreementRequest |
buildRequest(FolderType folder,
boolean isTest,
String commonReference,
String commonNIPReference,
org.joda.time.DateTime agreementStartDate)
builds the AskChap4MedicalAdvisorAgreementRequest . |
AdmissionBuilderImpl
public AdmissionBuilderImpl(CommonBuilder commonBuilder)
buildRequest
public final AskChap4MedicalAdvisorAgreementRequest buildRequest(FolderType folder,
boolean isTest,
String commonReference,
String commonNIPReference,
org.joda.time.DateTime agreementStartDate)
throws ChapterIVBusinessConnectorException,
TechnicalConnectorException
- Description copied from interface:
AdmissionBuilder
- builds the
AskChap4MedicalAdvisorAgreementRequest
. the folder should contain at least the following elements for the
connector to work :
- the ids list in folder.patient.ids should contain at least one id.
for the agreementStartDate parameter utility method is provided in FolderTypeUtils
.retrieveConsultationStartDateOrAgreementStartDate(FolderType folder), if this value is null you need to provide the
agreementStartDate yourself , following the chapterIV documentation
- Specified by:
buildRequest
in interface AdmissionBuilder
- Parameters:
folder
- FolderType
contains the information to retrieve/sendisTest
- boolean indicating if this message is a test or notcommonReference
- String used to fill out commonReference field in CommonInput tagcommonNIPReference
- String used to fill out commonNipReference field in CommonInput tagagreementStartDate
- not nullable : the agreementStartDate to be used in the request for the webservice : value : see
documentation chapterIV
- Returns:
- filled out AskChap4MedicalAdvisorAgreementRequest
- Throws:
ChapterIVBusinessConnectorException
TechnicalConnectorException
- See Also:
AdmissionBuilder.buildRequest(be.fgov.ehealth.standards.kmehr.schema.v1.FolderType,
boolean, java.lang.String, java.lang.String, DateTime)
buildRequest
public AskChap4MedicalAdvisorAgreementRequest buildRequest(FolderType folder,
boolean isTest,
ChapterIVReferences references,
org.joda.time.DateTime agreementStartDate)
throws ChapterIVBusinessConnectorException,
TechnicalConnectorException
- Specified by:
buildRequest
in interface AdmissionBuilder
- Parameters:
folder
- FolderType
contains the information to retrieve/sendisTest
- boolean indicating if this message is a test or notreferences
- contains all the references needed by ChapterIVagreementStartDate
- not nullable : the agreementStartDate to be used in the request for the webservice : value : see
documentation chapterIV
- Returns:
- filled out AskChap4MedicalAdvisorAgreementRequest
- Throws:
ChapterIVBusinessConnectorException
TechnicalConnectorException
- See Also:
AdmissionBuilder.buildRequest(be.fgov.ehealth.standards.kmehr.schema.v1.FolderType,
boolean, be.ehealth.businessconnector.chapterIV.domain.ChapterIVReferences, org.joda.time.DateTime)
build
public ChapterIVBuilderResponse build(FolderType folder,
boolean isTest,
ChapterIVReferences references,
org.joda.time.DateTime agreementStartDate)
throws ChapterIVBusinessConnectorException,
TechnicalConnectorException
- Specified by:
build
in interface AdmissionBuilder
- Parameters:
folder
- FolderType
contains the information to retrieve/sendisTest
- boolean indicating if this message is a test or notreferences
- contains all the references needed by ChapterIVagreementStartDate
- not nullable : the agreementStartDate to be used in the request for the webservice : value : see
documentation chapterIV
- Returns:
- a
Map
with all the object generated by the builder.
- Throws:
ChapterIVBusinessConnectorException
TechnicalConnectorException
- See Also:
AdmissionBuilder.build(be.fgov.ehealth.standards.kmehr.schema.v1.FolderType,
boolean, be.ehealth.businessconnector.chapterIV.domain.ChapterIVReferences, org.joda.time.DateTime)
Connector Packaging PERSPHYSICIAN 3.10.2 API
Copyright © {inceptionYear}-2016 eHealth. All Rights Reserved.