feat(osi): 实现老年人自理能力查询(T-303)

This commit is contained in:
ila
2026-07-13 19:53:49 +08:00
parent ab5499acd4
commit d60b979785
13 changed files with 363 additions and 21 deletions
+3
View File
@@ -17,6 +17,7 @@ func runServer(cfg config.Config, addr string) error {
hr := handler.NewHealthRecordHandler(client)
hc := handler.NewHealthCheckHandler(client)
elderly := handler.NewElderlyHandler(client)
pub := handler.NewPublicHandler(client)
mux := http.NewServeMux()
mux.HandleFunc("/api/health-record/find", hr.Find)
@@ -24,6 +25,7 @@ func runServer(cfg config.Config, addr string) error {
mux.HandleFunc("/api/health-check/last", hc.Last)
mux.HandleFunc("/api/health-check/all", hc.All)
mux.HandleFunc("/api/health-check/list", hc.List)
mux.HandleFunc("/api/elderly/self-care", elderly.SelfCare)
mux.HandleFunc("/api/dictionaries/grid-addresses", pub.GridAddresses)
mux.HandleFunc("/api/dictionaries/doctors", pub.Doctors)
mux.HandleFunc("/api/dictionaries/drugs", pub.Drugs)
@@ -35,6 +37,7 @@ func runServer(cfg config.Config, addr string) error {
fmt.Printf(" GET http://%s/api/health-check/last?idCard=<身份证>\n", addr)
fmt.Printf(" GET http://%s/api/health-check/all?idCard=<身份证>\n", addr)
fmt.Printf(" GET http://%s/api/health-check/list?checkYear=<年度>&idCard=<身份证>\n", addr)
fmt.Printf(" GET http://%s/api/elderly/self-care?idCard=<身份证>\n", addr)
fmt.Printf(" GET http://%s/api/dictionaries/grid-addresses?parentCode=<区划码>\n", addr)
fmt.Printf(" GET http://%s/api/dictionaries/doctors?manaUnitId=<机构码>\n", addr)
fmt.Printf(" GET http://%s/api/dictionaries/drugs?ypmc=<药品名>\n", addr)