My Health


My Health ViewController
My Health contains both medical history and feed section.
Once we initialized the SDK and authenticated the user, we can retrieve the MeetingDoctors UI using the following method:
Errors returned
- Framework not initializated or user not authenticated
MeetingDoctorsError.illegalStateException(reason: .frameworkInitializationFailed))
- Installation not created
MeetingDoctorsError.illegalStateException(reason: .installationNotCreated))
public static func myHealthViewController() async throws -> UIViewController
Implementation example
So we can invoke the my health by adding the following method:
do {
let viewController = try await MeetingDoctors.myHealthViewController()
// Handle success
} catch {
// Handle error
}
Medical History

Medical Prescription (aka Receta electrónica) it's inside the Medical History flow. To check the medical prescription you must show the Medical History flow inside your app.
Once we initialized the SDK and authenticated the user, we can retrieve the MeetingDoctors UI using the following method:
Errors returned
- Framework not initializated or user not authenticated
MeetingDoctorsError.illegalStateException(reason: .frameworkInitializationFailed))
- Installation not created
MeetingDoctorsError.illegalStateException(reason: .installationNotCreated))
- Feature not enabled for that company
MeetingDoctorsError.medicalHistory(reason: .notEnabled))
public static func medicalHistoryViewController() async throws -> UIViewController
Implementation example
So we can invoke the medical history by adding the following method:
do {
let viewController = try await MeetingDoctors.medicalHistoryViewController()
// Handle success
} catch {
// Handle error
}
Feed

Once we initialized the SDK and authenticated the user, we can retrieve the MeetingDoctors UI using the following method:
Errors returned
- Framework not initializated or user not authenticated
MeetingDoctorsError.illegalStateException(reason: .frameworkInitializationFailed))
- Installation not created
MeetingDoctorsError.illegalStateException(reason: .installationNotCreated))
public static func feedsViewController() async throws -> UIViewController
Implementation example
So we can invoke the feed by adding the following method:
do {
let viewController = try await MeetingDoctors.feedsViewController()
// Handle success
} catch {
// Handle error
}