Class Iti104Utils
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.iti104.Iti104Utils
Utilities of the Patient Identity Feed FHIR [ITI-104] transaction, shared by both ends of it.
- Since:
- 6.0
- Author:
- Christian Ohr
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<Identifier> patientIdentifier(Object request, Map<String, Object> parameters) Determines the identifier of the patient the conditional update or delete is about.static StringtoToken(Identifier identifier)
-
Method Details
-
patientIdentifier
Determines the identifier of the patient the conditional update or delete is about. In this order, it is taken from- the
Iti104Parametersthe Manager has received - the
Iti104Constants.ITI104_PATIENT_IDENTIFIER_HEADERheader - the request itself, if it is an identifier (for a delete) or a Patient that has exactly one identifier (for an update)
- Parameters:
request- request, i.e. the Patient or the identifier of the patient to be deletedparameters- request parameters or Camel headers- Returns:
- the identifier of the patient, if it could be determined
- the
-
toToken
- Parameters:
identifier- identifier- Returns:
- the identifier as FHIR token, i.e.
system|value
-