PHP Class OEModule\OphCiExamination\components\ExaminationCreator

显示文件 Open project: openeyes/openeyes

Public Methods

Method Description
getEyes ( ) : array
getPortalUser ( ) : mixed | null
save ( $episodeId, $userId, $examination, $eventType, $eyeIds, $refractionType, $opNoteEventId = null ) : Event Create an examination event.

Protected Methods

Method Description
addComplication ( $userId, $eyeIds, $opNoteEventId, $eye, $complications, $eyeLabel )
addIop ( $eyeIds, $eye, $iop, $eyeLabel )
addVisualAcuityReading ( $userId, $visualAcuity, $unit, $vaData, $eyeLabel, $near = false )
createComments ( $userId, $examination, $examinationEvent )
createComplications ( $userId, $eyeIds, $examinationEvent ) : Element_OphCiExamination_PostOpComplications
createExamination ( $episodeId, $userId, $examination, $eventType ) : Event
createIop ( $userId, $eyeIds, $examinationEvent ) : Element_OphCiExamination_IntraocularPressure
createMessage ( $episodeId, $userId, $examination, $examinationEvent )
createVisualAcuity ( $userId, $eyeIds, $examinationEvent, $unit, $near = false ) : Element_OphCiExamination_VisualAcuity
createVisualFunction ( $userId, $eyeIds, $examinationEvent ) : array

Method Details

addComplication() protected method

protected addComplication ( $userId, $eyeIds, $opNoteEventId, $eye, $complications, $eyeLabel )
$userId
$eyeIds
$opNoteEventId
$eye
$complications
$eyeLabel

addIop() protected method

protected addIop ( $eyeIds, $eye, $iop, $eyeLabel )
$eyeIds
$eye
$iop
$eyeLabel

addVisualAcuityReading() protected method

protected addVisualAcuityReading ( $userId, $visualAcuity, $unit, $vaData, $eyeLabel, $near = false )
$userId
$visualAcuity
$unit
$vaData
$eyeLabel
$near

createComments() protected method

protected createComments ( $userId, $examination, $examinationEvent )
$userId
$examination
$examinationEvent

createComplications() protected method

protected createComplications ( $userId, $eyeIds, $examinationEvent ) : Element_OphCiExamination_PostOpComplications
$userId
$eyeIds
$examinationEvent
return OEModule\OphCiExamination\models\Element_OphCiExamination_PostOpComplications

createExamination() protected method

protected createExamination ( $episodeId, $userId, $examination, $eventType ) : Event
$episodeId
$userId
$examination
$eventType
return Event

createIop() protected method

protected createIop ( $userId, $eyeIds, $examinationEvent ) : Element_OphCiExamination_IntraocularPressure
$userId
$eyeIds
$examinationEvent
return OEModule\OphCiExamination\models\Element_OphCiExamination_IntraocularPressure

createMessage() protected method

protected createMessage ( $episodeId, $userId, $examination, $examinationEvent )
$episodeId
$userId
$examination
$examinationEvent

createVisualAcuity() protected method

protected createVisualAcuity ( $userId, $eyeIds, $examinationEvent, $unit, $near = false ) : Element_OphCiExamination_VisualAcuity
$userId
$eyeIds
$examinationEvent
$unit
$near
return OEModule\OphCiExamination\models\Element_OphCiExamination_VisualAcuity

createVisualFunction() protected method

protected createVisualFunction ( $userId, $eyeIds, $examinationEvent ) : array
$userId
$eyeIds
$examinationEvent
return array

getEyes() public method

public getEyes ( ) : array
return array

getPortalUser() public method

public getPortalUser ( ) : mixed | null
return mixed | null

save() public method

Create an examination event.
public save ( $episodeId, $userId, $examination, $eventType, $eyeIds, $refractionType, $opNoteEventId = null ) : Event
$episodeId
$userId
$examination
$eventType
$eyeIds
$refractionType
$opNoteEventId
return Event