/** * Création de service event * * @return CCDAPOCD_MT000040_ServiceEvent */ function setServiceEvent() { $service_event = self::$cda_factory->service_event; $serviceEvent = new CCDAPOCD_MT000040_ServiceEvent(); $ce = new CCDACE(); $time_start = $service_event["time_start"]; $time_stop = $service_event["time_stop"]; $ivl = parent::createIvlTs($time_start, $time_stop); $serviceEvent->setEffectiveTime($ivl); if ($service_event["nullflavor"]) { $ce->setNullFlavor($service_event["nullflavor"]); } else { $ce->setCode($service_event["code"]); $ce->setCodeSystem($service_event["oid"]); } $serviceEvent->appendPerformer(parent::$participation->setPerformer($service_event["executant"])); $serviceEvent->setCode($ce); return $serviceEvent; }