|
|
|
|
@ -453,21 +453,30 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
|
|
|
|
|
.edit),
|
|
|
|
|
onTap: () {
|
|
|
|
|
updatePrescriptionForm(
|
|
|
|
|
context,
|
|
|
|
|
model
|
|
|
|
|
.prescriptionList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.medicationName,
|
|
|
|
|
model
|
|
|
|
|
.prescriptionList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.medicineCode,
|
|
|
|
|
model,
|
|
|
|
|
);
|
|
|
|
|
patient:
|
|
|
|
|
patient,
|
|
|
|
|
drugId: model
|
|
|
|
|
.prescriptionList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.medicineCode,
|
|
|
|
|
drugName: model
|
|
|
|
|
.prescriptionList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.medicationName,
|
|
|
|
|
remarks: model
|
|
|
|
|
.prescriptionList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.remarks,
|
|
|
|
|
model:
|
|
|
|
|
model,
|
|
|
|
|
context:
|
|
|
|
|
context);
|
|
|
|
|
//model.postPrescription();
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
@ -563,7 +572,12 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void updatePrescriptionForm(
|
|
|
|
|
context, String drugName, int drugId, PrescriptionViewModel model) {
|
|
|
|
|
{context,
|
|
|
|
|
String drugName,
|
|
|
|
|
int drugId,
|
|
|
|
|
String remarks,
|
|
|
|
|
PrescriptionViewModel model,
|
|
|
|
|
PatiantInformtion patient}) {
|
|
|
|
|
TextEditingController remarksController = TextEditingController();
|
|
|
|
|
TextEditingController doseController = TextEditingController();
|
|
|
|
|
TextEditingController frequencyController = TextEditingController();
|
|
|
|
|
@ -635,6 +649,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12.0,
|
|
|
|
|
),
|
|
|
|
|
AppText('Remarks'),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius:
|
|
|
|
|
@ -642,7 +657,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
|
|
|
|
|
border: Border.all(
|
|
|
|
|
width: 1.0, color: HexColor("#CCCCCC"))),
|
|
|
|
|
child: TextFields(
|
|
|
|
|
hintText: 'Remarks',
|
|
|
|
|
hintText: remarks,
|
|
|
|
|
controller: remarksController,
|
|
|
|
|
maxLines: 7,
|
|
|
|
|
minLines: 4,
|
|
|
|
|
|