@@ -872,6 +872,16 @@ paths:
872872 description : Comma-separated list of patient tag IDs
873873 style : form
874874 explode : false
875+ - name : sites
876+ schema :
877+ type : array
878+ items :
879+ type : string
880+ format : ' ^[a-f0-9]{24}$'
881+ in : query
882+ description : Comma-separated list of clinic site IDs
883+ style : form
884+ explode : false
875885 description : Retrieve a list of patients of a clinic
876886 post :
877887 summary : Create Patient Account
@@ -908,6 +918,75 @@ paths:
908918 $ref : ' #/components/schemas/PatientTag'
909919 tags :
910920 - Clinics
921+ ' /v1/clinics/{clinicId}/sites ' :
922+ parameters :
923+ - $ref : ' #/components/parameters/clinicId'
924+ get :
925+ summary : ' List Sites'
926+ operationId : ' ListSites'
927+ responses :
928+ ' 200 ' :
929+ description : ' List of clinic sites'
930+ content :
931+ application/json :
932+ schema :
933+ $ref : ' #/components/schemas/ClinicSites'
934+ description : ' List sites'
935+ tags :
936+ - Clinics
937+ post :
938+ summary : ' Create a Site'
939+ operationId : ' CreateSite'
940+ responses :
941+ ' 200 ' :
942+ description : ' List of clinic sites'
943+ content :
944+ application/json :
945+ schema :
946+ $ref : ' #/components/schemas/ClinicSites'
947+ description : ' Create a Site'
948+ requestBody :
949+ content :
950+ application/json :
951+ schema :
952+ $ref : ' #/components/schemas/Site'
953+ tags :
954+ - Clinics
955+ ' /v1/clinics/{clinicId}/sites/{siteId} ' :
956+ parameters :
957+ - $ref : ' #/components/parameters/clinicId'
958+ - $ref : ' #/components/parameters/siteId'
959+ put :
960+ summary : ' Update a Site'
961+ operationId : ' UpdateSite'
962+ responses :
963+ ' 200 ' :
964+ description : ' List of clinic sites'
965+ content :
966+ application/json :
967+ schema :
968+ $ref : ' #/components/schemas/ClinicSites'
969+ description : ' Update a Site'
970+ requestBody :
971+ content :
972+ application/json :
973+ schema :
974+ $ref : ' ./clinic/models/site.v1.yaml'
975+ tags :
976+ - Clinics
977+ delete :
978+ summary : ' Delete a Site'
979+ operationId : ' DeleteSite'
980+ responses :
981+ ' 200 ' :
982+ description : ' List of clinic sites'
983+ content :
984+ application/json :
985+ schema :
986+ $ref : ' #/components/schemas/ClinicSites'
987+ description : ' Delete a Site'
988+ tags :
989+ - Clinics
911990 ' /v1/clinics/{clinicId}/clinicians/{clinicianId} ' :
912991 parameters :
913992 - $ref : ' #/components/parameters/clinicId'
@@ -2139,6 +2218,14 @@ components:
21392218 type : array
21402219 items :
21412220 $ref : ' #/components/schemas/PatientTag'
2221+ ClinicSites :
2222+ type : array
2223+ items :
2224+ $ref : ' #/components/schemas/ClinicSite'
2225+ ClinicSite :
2226+ $ref : ./clinic/models/clinicsite.v1.yaml
2227+ Site :
2228+ $ref : ./clinic/models/site.v1.yaml
21422229 DateTime :
21432230 $ref : ./common/models/datetime.v1.yaml
21442231 DataSource :
@@ -2210,6 +2297,8 @@ components:
22102297 minLength : 1
22112298 tags :
22122299 $ref : ' #/components/schemas/PatientTagIds'
2300+ siteIds :
2301+ $ref : ' #/components/schemas/SiteIds'
22132302 AssociateClinicianToUser :
22142303 title : Associate Clinician
22152304 type : object
@@ -2313,6 +2402,8 @@ components:
23132402 type : boolean
23142403 PatientTagIds :
23152404 $ref : ./clinic/models/patienttagids.v1.yaml
2405+ SiteIds :
2406+ $ref : ./clinic/models/siteids.v1.yaml
23162407 TideConfig :
23172408 $ref : ./clinic/models/tide/config.v1.yaml
23182409 TideFilters :
@@ -2596,6 +2687,13 @@ components:
25962687 schema :
25972688 type : string
25982689 pattern : ' ^[a-f0-9]{24}$'
2690+ siteId :
2691+ name : siteId
2692+ in : path
2693+ required : true
2694+ schema :
2695+ type : string
2696+ pattern : ' ^[a-f0-9]{24}$'
25992697 userId :
26002698 name : userId
26012699 in : path
0 commit comments