Example #1
0
 public function setExchange(CExchangeHL7v2 $exchange)
 {
     $msg = $exchange->getMessage();
     $this->hl7_msg = $msg;
     $this->hl7_xml = $msg->toXML();
     $this->hl7_xml_msh_data = $this->hl7_xml->getMSHEvenementXML();
     $this->hl7_exchange = $exchange;
     $this->msg_xml = new CMbXMLDocument('utf-8');
     $this->setMsg($msg);
 }
Example #2
0
 public function setQueryParametersParticipantObjectDetail()
 {
     $participant_object_detail = $this->msg_xml->addElement($this->query_parameters, 'ParticipantObjectDetail');
     $MSH = $this->hl7_xml->queryNode("MSH", null, $foo, true);
     $MSH_10 = $this->hl7_xml->queryTextNode("MSH.10", $MSH);
     $this->msg_xml->addAttribute($participant_object_detail, 'type', 'MSH-10');
     $this->msg_xml->addAttribute($participant_object_detail, 'value', base64_encode($MSH_10));
     $this->query_parameters_participant_object_detail = $participant_object_detail;
 }