Unable to get Student's health care provider via VBA/API in EE

EEARecordMedicalFields for the cEAStudent object do not return any values.
For example:
cEAStudent.Medical.Fields(EEARecordMedicalFields.EARECORDMEDICAL_fld_PRIMARYPOLICYCONTACT)
cEAStudent.Medical.Fields(EEARecordMedicalFields.EARECORDMEDICAL_fld_PRIMARYHEALTHCAREPROVIDER)
 
cEAMedicalInsurance and cEAMedicalInsurances objects have been added and should now be used. 
To get to new objects you have to go through the IBBMetaField and use the ChildObject property.

    Dim oMeta As IBBMetaField
    Dim oMedInsurances As IBBDataCollection
    Dim oIns As IBBDataObject
    Set oMeta = oStudent.Medical
    Set oMedInsurances = oMeta.ChildObject(EEARecordMedical_Children.EARECORDMEDICAL_child_INSURANCES)
    For Each oIns In oMedInsurances
        Debug.Print oIns.Fields(EEAMedicalInsuranceFields.EAMEDICALINSURANCE_fld_PRIMARYINSURANCE)
        Debug.Print oIns.Fields(EEAMedicalInsuranceFields.EAMEDICALINSURANCE_fld_POLICYCONTACTNAME)
        Debug.Print oIns.Fields(EEAMedicalInsuranceFields.EAMEDICALINSURANCE_fld_ORGANIZATIONNAME)
    Next oIns

Environment

 7.82.104 Patch 18

Was this article helpful?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.