be.ehealth.business.mycarenetcommons.builders.impl
Class AbstractCommonBuilderImpl

java.lang.Object
  extended by be.ehealth.business.mycarenetcommons.builders.impl.AbstractCommonBuilderImpl
All Implemented Interfaces:
CommonBuilder, ConfigurableImplementation
Direct Known Subclasses:
GenericCommonBuilderImpl, IndependantProfessionalCommonBuilderImpl

public abstract class AbstractCommonBuilderImpl
extends Object
implements CommonBuilder

Implementation for the CommonBuilder interface


Field Summary
 
Fields inherited from interface be.ehealth.business.mycarenetcommons.builders.CommonBuilder
PROJECT_NAME_KEY
 
Constructor Summary
AbstractCommonBuilderImpl()
           
 
Method Summary
 CommonInput createCommonInput(PackageInfo packageInfo, boolean isTest, String inputReference)
          Creates CommonInputType part with given parameters
 Origin createOrigin(PackageInfo packageInfo)
          Create an Origin
 Routing createRouting(Patient patientInfo, org.joda.time.DateTime refDate)
          Create the Routing with the patientInfo
 Routing createRoutingToMutuality(String mutuality, org.joda.time.DateTime refDate)
          Create the Routing with the mutuality
 String getProjectName()
           
 void initialize(Map<String,Object> parameterMap)
          initializes the implementation with additional parameters.
 void setProjectName(String projectName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCommonBuilderImpl

public AbstractCommonBuilderImpl()
Method Detail

initialize

public void initialize(Map<String,Object> parameterMap)
                throws TechnicalConnectorException
Description copied from interface: ConfigurableImplementation
initializes the implementation with additional parameters.

Specified by:
initialize in interface ConfigurableImplementation
Parameters:
parameterMap - Map with for each propertyString ,the input parameter as Object.
Throws:
TechnicalConnectorException - if the parameterMap is not correct.

createCommonInput

public CommonInput createCommonInput(PackageInfo packageInfo,
                                     boolean isTest,
                                     String inputReference)
                              throws TechnicalConnectorException
Description copied from interface: CommonBuilder
Creates CommonInputType part with given parameters

Specified by:
createCommonInput in interface CommonBuilder
Parameters:
packageInfo - the packageInfo: provides info about the software package creating the message
isTest - true if you're running a test, false otherwise
inputReference - the inputReference : unique reference created by the careprovider
Returns:
filled CommonInput object
Throws:
TechnicalConnectorException

createOrigin

public Origin createOrigin(PackageInfo packageInfo)
                    throws TechnicalConnectorException
Create an Origin

Specified by:
createOrigin in interface CommonBuilder
Parameters:
packageInfo - the packageInfo: provides info about the software package creating the message
Returns:
filled Origin object
Throws:
TechnicalConnectorException

getProjectName

public String getProjectName()
Returns:
the projectName

setProjectName

public void setProjectName(String projectName)
Parameters:
projectName - the projectName to set

createRouting

public Routing createRouting(Patient patientInfo,
                             org.joda.time.DateTime refDate)
Create the Routing with the patientInfo

Specified by:
createRouting in interface CommonBuilder
Parameters:
patientInfo - all the available informations about the concerned patient
refDate - the reference date
Returns:
the RoutingType object

createRoutingToMutuality

public Routing createRoutingToMutuality(String mutuality,
                                        org.joda.time.DateTime refDate)
Create the Routing with the mutuality

Specified by:
createRoutingToMutuality in interface CommonBuilder
Parameters:
mutuality - the mutuality identifier (X00).
refDate - the reference date.
Returns:
the Routing Object



Connector Packaging PERSPHYSICIAN 3.10.2 API
Copyright © {inceptionYear}-2016 eHealth. All Rights Reserved.