public function toFhir() { return (object) array('reference' => \Yii::app()->service->referenceToFhirUrl($this)); }