Medication class abstract

Annotations
  • @freezed

Constructors

Medication.new({@Default(null) String? compoundPrescription, @Default(null) Substanceproduct? substanceProduct, @Default(null) Medicinalproduct? medicinalProduct, @Default(null) int? numberOfPackages, @Default(null) String? batch, @Default(null) int? expirationDate, @Default(null) String? instructionForPatient, @Default(null) String? instructionForReimbursement, @Default(null) String? commentForDelivery, @Default(null) String? drugRoute, @Default(null) String? temporality, @Default(null) CodeStub? frequency, @Default(null) CodeStub? reimbursementReason, @Default(null) bool? substitutionAllowed, @Default(null) int? beginMoment, @Default(null) int? endMoment, @Default(null) int? deliveryMoment, @Default(null) int? endExecutionMoment, @Default(null) Duration? duration, @Default(null) Renewal? renewal, @Default(null) bool? knownUsage, @Default(null) List<RegimenItem>? regimen, @Default(null) String? posology, @Default(null) Map<String, ParagraphAgreement>? agreements, @Default(null) String? medicationSchemeIdOnSafe, @Default(null) int? medicationSchemeSafeVersion, @Default(null) int? medicationSchemeTimeStampOnSafe, @Default(null) String? medicationSchemeDocumentId, @Default(null) String? safeIdName, @Default(null) String? idOnSafes, @Default(null) int? timestampOnSafe, @Default(null) bool? changeValidated, @Default(null) bool? newSafeMedication, @Default(null) String? medicationUse, @Default(null) String? beginCondition, @Default(null) String? endCondition, @Default(null) String? origin, @Default(null) bool? medicationChanged, @Default(null) bool? posologyChanged, @Default(null) List<Suspension>? suspension, @Default(null) String? prescriptionRID, @Default(null) int? status})
const
factory

Properties

agreements Map<String, ParagraphAgreement>?
no setterinherited
batch String?
no setterinherited
beginCondition String?
no setterinherited
beginMoment int?
no setterinherited
changeValidated bool?
no setterinherited
commentForDelivery String?
no setterinherited
compoundPrescription String?
no setterinherited
copyWith → $MedicationCopyWith<Medication>
Create a copy of Medication with the given fields replaced by the non-null parameter values.
no setterinherited
deliveryMoment int?
no setterinherited
drugRoute String?
no setterinherited
duration Duration?
no setterinherited
endCondition String?
no setterinherited
endExecutionMoment int?
no setterinherited
endMoment int?
no setterinherited
expirationDate int?
no setterinherited
frequency CodeStub?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
idOnSafes String?
no setterinherited
instructionForPatient String?
no setterinherited
instructionForReimbursement String?
no setterinherited
knownUsage bool?
no setterinherited
medicationChanged bool?
no setterinherited
medicationSchemeDocumentId String?
no setterinherited
medicationSchemeIdOnSafe String?
no setterinherited
medicationSchemeSafeVersion int?
no setterinherited
medicationSchemeTimeStampOnSafe int?
no setterinherited
medicationUse String?
no setterinherited
medicinalProduct Medicinalproduct?
no setterinherited
newSafeMedication bool?
no setterinherited
numberOfPackages int?
no setterinherited
origin String?
no setterinherited
posology String?
no setterinherited
posologyChanged bool?
no setterinherited
prescriptionRID String?
no setterinherited
regimen List<RegimenItem>?
no setterinherited
reimbursementReason CodeStub?
no setterinherited
renewal Renewal?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeIdName String?
no setterinherited
status int?
no setterinherited
substanceProduct Substanceproduct?
no setterinherited
substitutionAllowed bool?
no setterinherited
suspension List<Suspension>?
no setterinherited
temporality String?
no setterinherited
timestampOnSafe int?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

encode(Medication value) Map<String, dynamic>
fromJSON(Map<String, dynamic> data) Medication