수술 일정 6종을 옮긴다 — 100종 → 106종
S_OprInf(수술 접수 일정 — GetOprInfDT 의 E_OprInf 축 큰 조회와 다른 표) 를 OprComNum + OprStt='E' 로 거르고 OprKey 순으로 한 행: - ETC_수술일자_1_몇년/_1_몇년2자리/_2_몇월/_3_몇일 — DESC(마지막 수술, '수술실 요청' 주석 그대로), OprDte 자름 - OCM_수술일자_마지막수술 — DESC, "9999-99-99" 형식 - OCM_수술일자 — Else 갈래는 ASC(첫 수술). PURME(주사오더 O_OdrInf 조회)· BSGH·HIMCHAN_*·GJHNSS(DESC) 분기는 미이식 안내 — Else 로 뭉개면 그 병원에서 첫/마지막이 뒤바뀐 날짜가 조용히 찍힌다. ## 게이트 - dotnet test 338/338 · --edit-smoke 실패 0(이름 검사 106종) - --db-patient 전건 통과 · --db-render P062 md5 불변 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
e065c5a645
commit
4dad271e9c
@@ -226,6 +226,22 @@ public sealed class PatientContextStore
|
||||
("d", code), ("y", date[..8]));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 수술 일정(S_OprInf) 한 행 — <c>OCM_수술일자</c>·<c>ETC_수술일자_*</c> 계열이 쓴다.
|
||||
/// <c>WHERE OprComNum = :c AND OprStt = 'E' ORDER BY OprKey</c> —
|
||||
/// 무인자(Else 갈래)는 ASC(첫 수술), ETC_ 계열과 마지막수술은 DESC('수술실 요청' 주석 그대로).
|
||||
/// GetOprInfDT(E_OprInf 축 큰 조회)와 <b>다른 표</b>다 — 이쪽은 수술 접수 일정이다.
|
||||
/// </summary>
|
||||
public IReadOnlyDictionary<string, string> ScheduledSurgery(decimal comNum, bool latestFirst)
|
||||
{
|
||||
using var connection = new OracleConnection(connectionString);
|
||||
connection.Open();
|
||||
return Row(connection,
|
||||
"SELECT * FROM (SELECT * FROM S_OprInf WHERE OprComNum = :c AND OprStt = 'E'"
|
||||
+ $" ORDER BY OprKey{(latestFirst ? " DESC" : string.Empty)}) WHERE ROWNUM = 1",
|
||||
("c", comNum));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 건물관리번호로 주소 — 레거시 <c>GetZipInfoByBuildingNumber</c>(clsCommonLib.vb:16600).
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user