Files
his/scripts/api_check.sh

27 lines
857 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 诊断脚本 - 检查API返回
echo "=========================================="
echo "API 诊断工具"
echo "=========================================="
echo ""
# 请替换为实际的token和服务器地址
SERVER_URL="http://192.168.110.252:18080"
ENCOUNTER_ID="2038823905749327873"
echo "1. 检查 doctor-station API:"
echo "URL: ${SERVER_URL}/openhis/doctor-station/advice/request-base-info?encounterId=${ENCOUNTER_ID}"
echo ""
echo "2. 检查 reg-doctorstation API:"
echo "URL: ${SERVER_URL}/openhis/reg-doctorstation/advice-manage/reg-request-base-info?encounterId=${ENCOUNTER_ID}"
echo ""
echo "请在浏览器中访问上述URL查看返回的JSON数据"
echo ""
echo "需要确认:"
echo " - 是否有 adviceType=4 的记录?"
echo " - adviceName 是否有值?"
echo " - 手术医嘱是否包含在返回数据中?"