Ejemplo n.º 1
0
 public PrescribedPharmaceuticalProduct(string nameOrDescription,
                                        string posology         = null,
                                        byte?quantity           = null,
                                        MedicationCode code     = null,
                                        int identifier          = 0,
                                        EntityState entityState = EntityState.Added)
     : base(nameOrDescription, posology, quantity, code, identifier, entityState)
 {
 }
 public PrescribedPharmaceuticalSubstance(string nameOrDescription,
                                          string posology         = null,
                                          string quantity         = null,
                                          string duration         = null,
                                          MedicationCode code     = null,
                                          int identifier          = 0,
                                          EntityState entityState = EntityState.Added)
     : base(nameOrDescription, posology, quantity, duration, code, identifier, entityState)
 {
 }
Ejemplo n.º 3
0
 protected PrescribedMedication(string nameOrDescription,
                                string posology         = null,
                                byte?quantity           = null,
                                MedicationCode code     = null,
                                int identifier          = 0,
                                EntityState entityState = EntityState.Added)
 {
     Condition.Requires(nameOrDescription, nameof(nameOrDescription)).IsNotNullOrWhiteSpace();
     Condition.Requires(identifier, nameof(identifier)).IsGreaterOrEqual(0);
     this.NameOrDescription = nameOrDescription;
     this.Posology          = posology;
     if (quantity.HasValue)
     {
         Condition.Requires(quantity, nameof(quantity)).IsGreaterOrEqual(1);
         this.Quantity = quantity;
     }
     this.Code        = code;
     this.identifier  = identifier;
     this.entityState = entityState;
 }