include patient, user, business & business User to perscription widget
This commit is contained in:
@@ -109,7 +109,7 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||||||
"Med-Cert-${widget.selectedPatient.first_name} ${widget.selectedPatient.last_name}-${date.toString().substring(0, 10)}.pdf";
|
"Med-Cert-${widget.selectedPatient.first_name} ${widget.selectedPatient.last_name}-${date.toString().substring(0, 10)}.pdf";
|
||||||
if (response1.statusCode == 200) {
|
if (response1.statusCode == 200) {
|
||||||
var response2 = await http.post(
|
var response2 = await http.post(
|
||||||
Uri.parse(endpointInsertFiles),
|
Uri.parse("${AppEnviroment.baseApiUrl}/files/insert/"),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
"Content-Type": "application/json; charset=UTF-8"
|
"Content-Type": "application/json; charset=UTF-8"
|
||||||
},
|
},
|
||||||
@@ -379,6 +379,10 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||||||
noDaysController: noDaysController,
|
noDaysController: noDaysController,
|
||||||
noRepeatsController: noRepeatsController,
|
noRepeatsController: noRepeatsController,
|
||||||
outputController: outputController,
|
outputController: outputController,
|
||||||
|
selectedPatient: widget.selectedPatient,
|
||||||
|
signedInUser: widget.signedInUser,
|
||||||
|
business: widget.business,
|
||||||
|
businessUser: widget.businessUser,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user