This function creates a special object that allows to load the previous values of the observations into the form controls.
object.MakePreviousObservationLoader()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfileForm interface |
ISProfileFormPreviousObservationLoader
Create a special object that allows to load the previous values of the observations into the form controls.
Dim aLoader
Set aLoader = Form.MakePreviousObservationLoader
aLoader.SetPatientID(Form.PatientID).SetCaseID(0).SetLoadEmpty(False)
aLoader.SetPreviousCollectionID(0) ' 0 = latest values by concept, n>0 = a real HRC ID
aLoader.AddConcept("IH", "z..Ph").AddControlAsText("edtRythm")
aLoader.AddConcept("IH", "z..DB").AddControlAsValue("edtCervicalScreeningEnrolment")
aLoader.Load
if aLoader.HasData then
aLoader.FillControls
end if
Profile.MsgBox("HasData: " & aLoader.HasData)