ErxChargeItem
public struct ErxChargeItem : Identifiable, Hashable, Codable
The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation.
-
init(identifier:
fhirData: taskId: enteredDate: accessCode: medication: medicationRequest: patient: practitioner: organization: pharmacy: invoice: medicationDispense: prescriptionSignature: receiptSignature: dispenseSignature: isRead: ) ErxChargeItem default initializer
Declaration
Swift
public init( identifier: String, fhirData: Data, taskId: String? = nil, enteredDate: String? = nil, accessCode: String? = nil, medication: ErxMedication? = nil, medicationRequest: ErxMedicationRequest = ErxMedicationRequest(quantity: nil), patient: ErxPatient? = nil, practitioner: ErxPractitioner? = nil, organization: ErxOrganization? = nil, pharmacy: DavOrganization? = nil, invoice: DavInvoice? = nil, medicationDispense: DavMedicationDispense? = nil, prescriptionSignature: ErxSignature? = nil, receiptSignature: ErxSignature? = nil, dispenseSignature: ErxSignature? = nil, isRead: Bool = false )
-
Id of the consent
Declaration
Swift
public var id: String { get }
-
Identifier of the charge item
Declaration
Swift
public let identifier: String
-
Complete FHIR bundle as json encoded data
Declaration
Swift
public let fhirData: Data
-
TaskId of the actual prescription
Declaration
Swift
public let taskId: String?
-
Date the charge item was entered
Declaration
Swift
public let enteredDate: String?
-
Access code authorising for the charge item
Declaration
Swift
public let accessCode: String?
-
Indicates if the message about the ChargeItem in the order section has been opened by the user
Declaration
Swift
public var isRead: Bool
-
The prescribed medication
Declaration
Swift
public let medication: ErxMedication?
-
Everything contained in a MedicationRequest resource
Declaration
Swift
public let medicationRequest: ErxMedicationRequest
-
Patient for whom the prescription is issued
Declaration
Swift
public let patient: ErxPatient?
-
Practitioner who issued the prescription
Declaration
Swift
public let practitioner: ErxPractitioner?
-
Organization that issued the prescription
Declaration
Swift
public let organization: ErxOrganization?
-
Pharmacy that issued the medication
Declaration
Swift
public let pharmacy: DavOrganization?
-
Invoice from an Account
Declaration
Swift
public let invoice: DavInvoice?
-
actual medication dispenses
Declaration
Swift
public let medicationDispense: DavMedicationDispense?
-
Prescription bundle signature
Declaration
Swift
public let prescriptionSignature: ErxSignature?
-
Receipt bundle signature
Declaration
Swift
public let receiptSignature: ErxSignature?
-
Dispense bundle signature
Declaration
Swift
public let dispenseSignature: ErxSignature?
-
ChargeItem with sparse data set
The full ChargeItem information is held as fhirData value and can be extracted as a
ErxChargeItem
Declaration
Swift
public var sparseChargeItem: ErxSparseChargeItem { get }