asNeededBoolean property
asNeededBoolean Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).
Implementation
FhirBoolean? get asNeededBoolean => throw _privateConstructorUsedError;