Step F5:受试者 & 访视管理

This commit is contained in:
Cheng Zhou
2025-12-16 21:29:36 +08:00
parent 4f35769056
commit c630f8f8ea
33 changed files with 430 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
import { apiGet, apiPatch } from "./axios";
export const fetchVisits = (studyId: string, subjectId: string) =>
apiGet(`/api/v1/studies/${studyId}/subjects/${subjectId}/visits/`);
export const updateVisit = (studyId: string, subjectId: string, visitId: string, payload: Record<string, any>) =>
apiPatch(`/api/v1/studies/${studyId}/subjects/${subjectId}/visits/${visitId}`, payload);