PatientList

open class PatientList

A class to hold a list of patients, created from a query performed against a FHIRServer.

The retrieve method must be called at least once so the list can start retrieving patients from the server. Use the onStatusUpdate and onPatientUpdate blocks to keep informed about status changes.

You can use subscript syntax to safely retrieve a patient from the list: patientList[5]

  • Current list status.

    Declaration

    Swift

    open var status: PatientListStatus = .unknown
  • A block executed whenever the receiver’s status changes.

    Declaration

    Swift

    open var onStatusUpdate: ((FHIRError?) -> Void)?
  • A block to be called when the patients property changes.

    Declaration

    Swift

    open var onPatientUpdate: ((Void) -> Void)?
  • Undocumented

    Declaration

    Swift

    open class PatientList
  • The number of patients currently in the list.

    Declaration

    Swift

    open var actualNumberOfPatients: UInt
  • Undocumented

    Declaration

    Swift

    open class PatientList
  • Undocumented

    Declaration

    Swift

    open class PatientList
  • How to order the list.

    Declaration

    Swift

    open var order = PatientListOrder.nameFamilyASC
  • The query used to create the list.

    Declaration

    Swift

    open let query: PatientListQuery
  • Indicating whether not all patients have yet been loaded.

    Declaration

    Swift

    open var hasMore: Bool
  • Undocumented

    Declaration

    Swift

    open class PatientList
  • Executes the patient query against the given FHIR server and updates the receiver’s patients property when done.

    Declaration

    Swift

    open func retrieve(fromServer server: FHIRServer)

    Parameters

    fromServer

    A FHIRServer instance to query the patients from

  • Attempts to retrieve the next batch of patients. You should check hasMore before calling this method.

    Declaration

    Swift

    open func retrieveMore(fromServer server: FHIRServer)

    Parameters

    fromServer

    A FHIRServer instance to retrieve the batch from