Comment on page
PhilippinesProfessionalRegulationCommissionCardModel
A class derived from DocumentModel containing details specific to the Philippines professional regulation commission card document
@objc final public class PhilippinesProfessionalRegulationCommissionCardModel : DocumentModel {
@objc final public var lastName: String? { get }
@objc final public var firstName: String? { get }
@objc final public var middleInitialName: String? { get }
@objc final public var registrationNumber: String? { get }
@objc final public var registrationDate: Date? { get }
@objc final public var validUntil: Date? { get }
@objc final public var profession: String? { get }
@objc final public var dateOfBirth: Date? { get }
@objc final public var dateIssued: Date? { 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 last name of the subject as found on the document. | OCR | |
String? | The first name of the subject as found on the document. | OCR | |
String? | The middle name or initial of the subject as found on the document. | OCR | |
String? | The registration number as found on the document. | OCR | |
Date? | The registration date as found on the document. | OCR | |
Date? | The expiry date of the document as found on the document. | OCR | |
String? | The profession of the subject as found on the document. | OCR | |
Date? | The date of birth of the subject as found on the document. | OCR | |
Date? | The issue date of the document 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 lastName: String? { get }
Example:
"DOE"
The last name of the subject as found on the document.
@objc final public var firstName: String? { get }
Example:
"JOHN"
The first name of the subject as found on the document.
@objc final public var middleInitialName: String? { get }
Example:
"MARTIN"
The middle name or initial of the subject as found on the document.
@objc final public var registrationNumber: String? { get }
Example:
"0123456"
The registration number as found on the document.
@objc final public var registrationDate: Date? { get }
Example:
1990/01/01
The registration date as found on the document.
@objc final public var validUntil: Date? { get }
Example:
1990/01/01
The expiry date of the document as found on the document.
@objc final public var profession: String? { get }
Example:
"PHYSICIAN"
The profession of the subject as found on the document.
@objc final public var dateOfBirth: Date? { get }
Value can be
nil
because it is not included on all documentsExample:
1990/01/01
The date of birth of the subject as found on the document.
@objc final public var dateIssued: Date? { get }
Value can be
nil
because it is not included on all documentsExample:
1990/01/01
The issue date of the document 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.