Skip to content

Commit 7a30fa1

Browse files
update docs
1 parent e67e998 commit 7a30fa1

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

DocuSign.Workspaces/DocuSign.Workspaces/ClientApp/src/components/RequestFormPhysician.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ import { ReactComponent as DocType } from '../assets/icons/doc.svg';
1616

1717
const listFiles = [
1818
{
19-
id: 211,
19+
id: 212,
2020
isForSignature: true,
2121
type: 'pdf',
22-
name: 'Patient Lab Report.pdf',
23-
path: '/Patient Lab Report.pdf',
22+
name: 'Physical Therapy Plan of CarePatient Information.pdf',
23+
path: '/Physical Therapy Plan of CarePatient Information.pdf',
2424
isNeedSign: true,
2525
status: 'success',
2626
},
2727
{
28-
id: 212,
28+
id: 213,
2929
isForSignature: true,
3030
type: 'pdf',
31-
name: 'Physical Therapy Plan of CarePatient Information.pdf',
32-
path: '/Physical Therapy Plan of CarePatient Information.pdf',
31+
name: 'Specialized Home Care Plan.pdf',
32+
path: '/Specialized Home Care Plan.pdf',
3333
isNeedSign: true,
3434
status: 'success',
3535
},
3636
{
37-
id: 213,
37+
id: 211,
3838
isForSignature: false,
3939
type: 'pdf',
40-
name: 'Specialized Home Care Plan.pdf',
41-
path: '/Specialized Home Care Plan.pdf',
40+
name: 'Patient Lab Report.pdf',
41+
path: '/Patient Lab Report.pdf',
4242
isNeedSign: false,
4343
status: 'success',
4444
},

DocuSign.Workspaces/DocuSign.Workspaces/Domain/CarePlans/CarePlansService.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public async Task<List<PhysicianModel>> GetPhysician()
4242
Name = physician + " Workspace"
4343
};
4444
var workspace = await docuSignApiProvider.Workspace2.CreateWorkspaceAsync(accountRepository.AccountId, workspaceBody);
45+
4546
physiciansWorkspaces.Add(new PhysicianModel
4647
{
4748
Name = physician,
@@ -70,6 +71,15 @@ public async Task<List<CareDocumentsModel>> SubmitToPhysician(SubmitToPhysicians
7071
{
7172
const string sentStatus = "sent";
7273
var documents = new List<CareDocumentsModel>();
74+
75+
var userForCreate = new WorkspaceUserForCreate
76+
{
77+
Email = model.Email,
78+
FirstName = model.Physician.Name,
79+
LastName = ""
80+
};
81+
await docuSignApiProvider.WorkspaceUsers.AddWorkspaceUserAsync(accountRepository.AccountId, model.Physician.WorkspaceId, userForCreate);
82+
7383
foreach (var document in model.Documents)
7484
{
7585
if (document.IsForSignature)
@@ -151,14 +161,6 @@ await docuSignApiProvider.EnvelopApi.UpdateAsync(accountRepository.AccountId, en
151161
};
152162
await docuSignApiProvider.WorkspaceDocuments.AddWorkspaceDocumentAsync(accountRepository.AccountId, model.Physician.WorkspaceId, documentRequest);
153163

154-
var userForCreate = new WorkspaceUserForCreate
155-
{
156-
Email = model.Email,
157-
FirstName = model.Physician.Name,
158-
LastName = ""
159-
};
160-
await docuSignApiProvider.WorkspaceUsers.AddWorkspaceUserAsync(accountRepository.AccountId, model.Physician.WorkspaceId, userForCreate);
161-
162164
documents.Add(new CareDocumentsModel(document.Name, document.IsForSignature, string.Empty));
163165
}
164166
}

0 commit comments

Comments
 (0)