Comment on page
PhilippinesPhilHealthInsuranceCardModel
A class derived from DocumentModel containing details specific to the Philippines phil health insurance card document
@objc final public class PhilippinesPhilHealthInsuranceCardModel : DocumentModel {
@objc final public var philHealthNumber: String? { get }
@objc final public var fullName: String? { get }
@objc final public var dateOfBirth: Date? { get }
@objc final public var sex: Sex { get }
@objc final public var address: String? { get }
override final public func encode(to encoder: Encoder) throws
}
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
Name | Type | Description | Data source |
String? | The phil health number of the subject as found on the document. | OCR | |
String? | The full name of the subject as found on the document. | OCR | |
Date? | The date of birth of the subject as found on the document. | OCR | |
The sex of the subject as found on the document. | OCR | ||
String? | The address of the subject as found on the document. | OCR |
Signature | Return Type | Description |
Void | Encodes the model using the encoder provided. Used to convert the model to JSON. |
@objc final public var philHealthNumber: String? { get }
Example:
"01-234567890-1"
The phil health number of the subject as found on the document.
@objc final public var fullName: String? { get }
Example:
"JOHN DOE"
The full name of the subject as found on the document.
@objc final public var dateOfBirth: Date? { get }
Example:
1990/01/01
The date of birth of the subject as found on the document.
Example:
Sex.Male
The sex of the subject as found on the document.
@objc final public var address: String? { get }
Example:
"UNIT/HOUSE NO. BUILDING, STREET NAME, BARANGAY, CITY/MUNICIPALITY"
The address of the subject as found on the document.
override final public func encode(to encoder: Encoder) throws
Encodes the model using the encoder provided. Used to convert the model to JSON.
Last modified 1yr ago