improvement: v1 standalone treatment/case creation made possible.
This commit is contained in:
@@ -1243,6 +1243,7 @@ export class TodayService {
|
||||
},
|
||||
select: {
|
||||
destinationOrganizationId: true,
|
||||
partnerClinicOrganizationId: true,
|
||||
tasks: { select: { status: true } },
|
||||
treatment: { select: { organizationId: true } },
|
||||
},
|
||||
@@ -1254,7 +1255,7 @@ export class TodayService {
|
||||
const partnerId =
|
||||
orgType === 'CLINIC'
|
||||
? labCase.destinationOrganizationId
|
||||
: labCase.treatment.organizationId;
|
||||
: labCase.treatment?.organizationId ?? labCase.partnerClinicOrganizationId;
|
||||
if (!partnerId) continue;
|
||||
|
||||
const isCompleted =
|
||||
|
||||
Reference in New Issue
Block a user