Пример #1
0
 /**
  * Called by the base class to add external identifiers to the meta data.
  *
  * @param metaData the meta data instance receiving the external identifiers.
  * @param ebXML the ebXML instance containing the external identifiers.
  */
 protected void addExternalIdentifiersFromEbXML(C metaData, E ebXML) {
   String patientID = ebXML.getExternalIdentifierValue(patientIdExternalId);
   metaData.setPatientId(Hl7v2Based.parse(patientID, Identifiable.class));
   metaData.setUniqueId(ebXML.getExternalIdentifierValue(uniqueIdExternalId));
 }
Пример #2
0
 /**
  * Called by the base class to add external identifiers to the ebXML instance.
  *
  * @param metaData the meta data instance containing the external identifiers.
  * @param ebXML the ebXML instance receiving the external identifiers.
  * @param objectLibrary the object library.
  */
 protected void addExternalIdentifiers(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) {
   String patientID = Hl7v2Based.render(metaData.getPatientId());
   ebXML.addExternalIdentifier(patientID, patientIdExternalId, patientIdLocalizedString);
   ebXML.addExternalIdentifier(
       metaData.getUniqueId(), uniqueIdExternalId, uniqueIdLocalizedString);
 }