|
@@ -18,6 +18,7 @@ import dayjs from 'dayjs';
|
|
|
|
|
|
|
|
export function reportsMethod(patientId: string) {
|
|
export function reportsMethod(patientId: string) {
|
|
|
return request.Get<ReportModel[], any[]>(`/fdhb-pc/analysisManage/getHarsTid`, {
|
|
return request.Get<ReportModel[], any[]>(`/fdhb-pc/analysisManage/getHarsTid`, {
|
|
|
|
|
+ name: 'list-report',
|
|
|
params: { patientId },
|
|
params: { patientId },
|
|
|
transform(data, headers) {
|
|
transform(data, headers) {
|
|
|
return data?.map(item => {
|
|
return data?.map(item => {
|
|
@@ -34,6 +35,7 @@ export function reportsMethod(patientId: string) {
|
|
|
export function reportMethod(id: string) {
|
|
export function reportMethod(id: string) {
|
|
|
return request.Get<ReportModel, any>(`/fdhb-pc/analysisManage/getHealRepDetailById`, {
|
|
return request.Get<ReportModel, any>(`/fdhb-pc/analysisManage/getHealRepDetailById`, {
|
|
|
hitSource: 'confirm-scheme',
|
|
hitSource: 'confirm-scheme',
|
|
|
|
|
+ name: 'get-report',
|
|
|
params: { healthAnalysisReportId: id },
|
|
params: { healthAnalysisReportId: id },
|
|
|
transform(data, headers) {
|
|
transform(data, headers) {
|
|
|
return {
|
|
return {
|
|
@@ -52,6 +54,8 @@ export function reportMethod(id: string) {
|
|
|
|
|
|
|
|
export function reportSchemeMethod(reportId: string) {
|
|
export function reportSchemeMethod(reportId: string) {
|
|
|
return request.Get(`/fdhb-pc/analysisManage/getCondProgDetailById`, {
|
|
return request.Get(`/fdhb-pc/analysisManage/getCondProgDetailById`, {
|
|
|
|
|
+ hitSource: /-scheme$/,
|
|
|
|
|
+ name: 'report-scheme',
|
|
|
params: { healthAnalysisReportId: reportId },
|
|
params: { healthAnalysisReportId: reportId },
|
|
|
transform(data: any, headers) {
|
|
transform(data: any, headers) {
|
|
|
data.healthAnalysisReportId ??= reportId;
|
|
data.healthAnalysisReportId ??= reportId;
|
|
@@ -91,6 +95,7 @@ export function editSchemeMethod(reportId: string, scheme: ReportSchemeItemModel
|
|
|
items: filterData(scheme.content),
|
|
items: filterData(scheme.content),
|
|
|
attrs: filterData(scheme.descriptions),
|
|
attrs: filterData(scheme.descriptions),
|
|
|
}, {
|
|
}, {
|
|
|
|
|
+ name: 'edit-scheme',
|
|
|
transform(data: string, headers) {
|
|
transform(data: string, headers) {
|
|
|
scheme.id ??= data;
|
|
scheme.id ??= data;
|
|
|
return scheme;
|
|
return scheme;
|
|
@@ -100,6 +105,7 @@ export function editSchemeMethod(reportId: string, scheme: ReportSchemeItemModel
|
|
|
|
|
|
|
|
export function deleteSchemeMethod(reportId: string, scheme: ReportSchemeItemModel) {
|
|
export function deleteSchemeMethod(reportId: string, scheme: ReportSchemeItemModel) {
|
|
|
return request.Get(`/fdhb-pc/analysisManage/condProgramDelete`, {
|
|
return request.Get(`/fdhb-pc/analysisManage/condProgramDelete`, {
|
|
|
|
|
+ name: 'delete-scheme',
|
|
|
params: { id: scheme.id },
|
|
params: { id: scheme.id },
|
|
|
transform(data: any, headers) {
|
|
transform(data: any, headers) {
|
|
|
return scheme;
|
|
return scheme;
|
|
@@ -127,6 +133,7 @@ export function confirmSchemeMethod(reportId: string) {
|
|
|
export function indicatorByReportIdMethod(reportId: string, filter = true) {
|
|
export function indicatorByReportIdMethod(reportId: string, filter = true) {
|
|
|
return request.Get<ReportIndicatorModel[], any[]>(`fdhb-pc/analysisManage/getLast7Day`, {
|
|
return request.Get<ReportIndicatorModel[], any[]>(`fdhb-pc/analysisManage/getLast7Day`, {
|
|
|
hitSource: 'update-indicator',
|
|
hitSource: 'update-indicator',
|
|
|
|
|
+ name: 'report-indicator',
|
|
|
params: { healthAnalysisReportId: reportId },
|
|
params: { healthAnalysisReportId: reportId },
|
|
|
transform(data, headers) {
|
|
transform(data, headers) {
|
|
|
const indicators = transformIndicators(data);
|
|
const indicators = transformIndicators(data);
|
|
@@ -143,6 +150,7 @@ export function indicatorByReportIdMethod(reportId: string, filter = true) {
|
|
|
export function indicatorByPatientIdMethod(patientId: string, filter = true) {
|
|
export function indicatorByPatientIdMethod(patientId: string, filter = true) {
|
|
|
return request.Get<ReportIndicatorModel[], any[]>(`/fdhb-pc/patientQuota/getCurQuovalByPatId`, {
|
|
return request.Get<ReportIndicatorModel[], any[]>(`/fdhb-pc/patientQuota/getCurQuovalByPatId`, {
|
|
|
hitSource: 'update-indicator',
|
|
hitSource: 'update-indicator',
|
|
|
|
|
+ name: 'patient-indicator',
|
|
|
params: { patientId },
|
|
params: { patientId },
|
|
|
transform(data, headers) {
|
|
transform(data, headers) {
|
|
|
const indicators = transformIndicators(data);
|
|
const indicators = transformIndicators(data);
|