コード例 #1
0
 /**
  * Build Z84 event
  *
  * @param CAffectation $affectation Affectation
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($affectation)
 {
     /** @var CSejour $sejour */
     $sejour = $affectation->_ref_sejour;
     $sejour->_ref_hl7_affectation = $affectation;
     parent::build($affectation);
     /** @var CPatient $patient */
     $patient = $sejour->_ref_patient;
     // Patient Identification
     $this->addPID($patient, $sejour);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Doctors
     $this->addROLs($patient);
     // Next of Kin / Associated Parties
     $this->addNK1s($patient);
     // Patient Visit
     $this->addPV1($sejour);
     // Patient Visit - Additionale Info
     $this->addPV2($sejour);
     // Movement segment
     $this->addZBE($sejour);
     // Situation professionnelle
     $this->addZFP($sejour);
     // Compléments sur la rencontre
     $this->addZFV($sejour);
     // Mouvement PMSI
     $this->addZFM($sejour);
     // Complément démographique
     $this->addZFD($sejour);
     // Guarantor
     $this->addGT1($patient);
 }
コード例 #2
0
 /**
  * Build Z99 event
  *
  * @param CMbObject $object Object
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($object)
 {
     if ($object instanceof CAffectation) {
         $affectation = $object;
         $sejour = $affectation->_ref_sejour;
         $sejour->_ref_hl7_affectation = $affectation;
         parent::build($affectation);
     } else {
         $sejour = $object;
         parent::build($sejour);
     }
     $patient = $sejour->_ref_patient;
     // Patient Identification
     $this->addPID($patient, $sejour);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Doctors
     $this->addROLs($patient);
     // Next of Kin / Associated Parties
     $this->addNK1s($patient);
     // Patient Visit
     $this->addPV1($sejour);
     // Patient Visit - Additionale Info
     $this->addPV2($sejour);
     // Build specific segments (i18n)
     $this->buildI18nSegments($sejour);
     // Guarantor
     $this->addGT1($patient);
 }
コード例 #3
0
 /**
  * Build A24 event
  *
  * @param CPatient $patient Person
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($patient)
 {
     parent::build($patient);
     // Patient Identification
     $this->addPID($patient);
     // Patient link Identification
     $this->addPID($patient->_patient_link);
 }
コード例 #4
0
 /**
  * Build A40 event
  *
  * @param CPatient $patient Person
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($patient)
 {
     parent::build($patient);
     // Patient Identification
     $this->addPID($patient);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Merge Patient Information
     $this->addMRG($patient->_patient_elimine);
 }
コード例 #5
0
 /**
  * Build A37 event
  *
  * @param CPatient $patient Person
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($patient)
 {
     parent::build($patient);
     // Patient Identification
     $this->addPID($patient);
     /* @toto old ? */
     $patient_link = new CPatient();
     $patient_link->load($patient->_old->patient_link_id);
     // Patient link Identification
     $this->addPID($patient_link);
 }
コード例 #6
0
 /**
  * Build A24 event
  *
  * @param CPatient $patient Person
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($patient)
 {
     parent::build($patient);
     // Patient Identification
     $this->addPID($patient);
     $patient_links = $patient->loadPatientLinks();
     /* @toto first ? */
     $patient_link = $patient_links[0];
     // Patient link Identification
     $this->addPID($patient_link);
 }
コード例 #7
0
 /**
  * Build A42 event
  *
  * @param CSejour $sejour Sejour
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($sejour)
 {
     parent::build($sejour);
     $patient = $sejour->_ref_patient;
     // Patient Identification
     $this->addPID($patient);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Merge Patient Information
     $this->addMRG($sejour->_sejour_elimine);
     $this->addPV1($sejour);
 }
コード例 #8
0
 /**
  * Build A44 event
  *
  * @param CSejour $sejour Admit
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($sejour)
 {
     parent::build($sejour);
     $patient = $sejour->_ref_patient;
     // Patient Identification
     $this->addPID($patient, $sejour);
     // Patient Additional Demographic
     $this->addPD1($patient);
     $old_patient = new CPatient();
     $old_patient->load($sejour->_old->patient_id);
     // Merge Patient Information
     $this->addMRG($old_patient);
 }
コード例 #9
0
 /**
  * Build A08 event
  *
  * @param CMbObject $object Object
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($object)
 {
     // Dans le cas où le A08 est dédié à la mise à jour des données du patient
     if ($object instanceof CPatient) {
         $patient = $object;
         /** @var CSejour $sejour */
         $sejour = isset($patient->_ref_sejour) ? $patient->_ref_sejour : null;
         if (!$sejour || !$sejour->_id) {
             parent::build($patient);
             // Patient Identification
             $this->addPID($patient);
             // Patient Additional Demographic
             $this->addPD1($patient);
             if ($this->version > "2.3.1") {
                 // Doctors
                 $this->addROLs($patient);
             }
             // Next of Kin / Associated Parties
             $this->addNK1s($patient);
             // Patient Visit
             $this->addPV1();
             return;
         } else {
             $object = $sejour;
             $object->loadRefPatient();
         }
     }
     if ($object instanceof CAffectation) {
         $affectation = $object;
         /** @var CSejour $sejour */
         $sejour = $affectation->_ref_sejour;
         $sejour->_ref_hl7_affectation = $affectation;
         /** @var CPatient $patient */
         $patient = $sejour->_ref_patient;
         parent::build($affectation);
     } else {
         $sejour = $object;
         $patient = $sejour->_ref_patient;
         parent::build($sejour);
     }
     // Patient Identification
     $this->addPID($patient, $sejour);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Next of Kin / Associated Parties
     $this->addNK1s($patient);
     // Patient Visit
     $this->addPV1($sejour);
     // Patient Visit - Additionale Info
     $this->addPV2($sejour);
 }
コード例 #10
0
 /**
  * Build A29 event
  *
  * @param CPatient $patient Person
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($patient)
 {
     parent::build($patient);
     // Patient Identification
     $this->addPID($patient);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Doctors
     $this->addROLs($patient);
     // Next of Kin / Associated Parties
     $this->addNK1s($patient);
     // Patient Visit
     $this->addPV1();
 }
コード例 #11
0
 /**
  * Build A55 event
  *
  * @param CSejour $sejour Admit
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($sejour)
 {
     parent::build($sejour);
     $patient = $sejour->_ref_patient;
     // Patient Identification
     $this->addPID($patient, $sejour);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Patient Visit
     $this->addPV1($sejour);
     // Patient Visit - Additionale Info
     $this->addPV2($sejour);
     // Build specific segments (i18n)
     $this->buildI18nSegments($sejour);
 }
コード例 #12
0
 /**
  * Build A28 event
  *
  * @param CPatient $patient Person
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($patient)
 {
     parent::build($patient);
     // Patient Identification
     $this->addPID($patient);
     // Patient Additional Demographic
     $this->addPD1($patient);
     if ($this->version > "2.3.1") {
         // Doctors
         $this->addROLs($patient);
     }
     // Next of Kin / Associated Parties
     $this->addNK1s($patient);
     // Build specific segments (i18n)
     $this->buildI18nSegments($patient);
 }
コード例 #13
0
 /**
  * Build A06 event
  *
  * @param CSejour $sejour Admit
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($sejour)
 {
     parent::build($sejour);
     /** @var CPatient $patient */
     $patient = $sejour->_ref_patient;
     // Patient Identification
     $this->addPID($patient, $sejour);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Doctors
     $this->addROLs($patient);
     // Next of Kin / Associated Parties
     $this->addNK1s($patient);
     // Patient Visit
     $this->addPV1($sejour);
     // Build specific segments (i18n)
     $this->buildI18nSegments($sejour);
 }
コード例 #14
0
 /**
  * Build A52 event
  *
  * @param CAffectation $affectation Affectation
  *
  * @see parent::build()
  *
  * @return void
  */
 function build($affectation)
 {
     /** @var CSejour $sejour */
     $sejour = $affectation->_ref_sejour;
     $sejour->_ref_hl7_affectation = $affectation;
     parent::build($affectation);
     /** @var CPatient $patient */
     $patient = $sejour->_ref_patient;
     // Patient Identification
     $this->addPID($patient, $sejour);
     // Patient Additional Demographic
     $this->addPD1($patient);
     // Patient Visit
     $this->addPV1($sejour);
     // Patient Visit - Additionale Info
     $this->addPV2($sejour);
     // Build specific segments (i18n)
     $this->buildI18nSegments($sejour);
 }