|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: |
SELECT DISTINCT LEFT(C.COMMENT_CODE,1) as C1, C.PTNO, MIN(C.COMMENT_CODE) AS COMMENT_CODE, P.HOSPITAL, C.RECORD_NUM FROM COMMENTS C INNER JOIN PATIENT_TABLE P ON C.PTNO = P.PTNO LEFT JOIN COMMENTS TT ON TT.PTNO = C.PTNO AND LEFT(C.COMMENT_CODE,1) = LEFT(TT.COMMENT_CODE,1) AND TT.DATEENTERED < @DTBEGIN WHERE LEFT(C.COMMENT_CODE,1) IN (1,2,3,5,8) AND C.COMMENT_CODE IS NOT NULL AND CAST(CONVERT(VARCHAR,C.DATEENTERED,101) AS DATETIME) BETWEEN @DTBEGIN AND @DTEND AND P.HOSPITAL = @HOSPITALID AND TT.PTNO IS NULL GROUP BY C.COMMENT_CODE, C.PTNO, P.HOSPITAL, C.RECORD_NUM UNION SELECT DISTINCT LEFT(C.COMMENT_CODE,1) as C1, C.PTNO, MIN(C.COMMENT_CODE) AS COMMENT_CODE, P.HOSPITAL, C.RECORD_NUM FROM COMMENTS C INNER JOIN PATIENT_TABLE P ON C.PTNO = P.PTNO LEFT JOIN COMMENTS TT ON TT.PTNO = C.PTNO AND LEFT(C.COMMENT_CODE,3) = LEFT(TT.COMMENT_CODE,3) AND TT.DATEENTERED < @DTBEGIN WHERE LEFT(C.COMMENT_CODE,3) IN (400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,427,428,429,430,431,432,435,436,437,438,439,440,446,447,448,449,450,451,452,455,456,466,467,468,471,472,473,474,475,476,477,478,480,481,484,486,487,488,489,490,491,492,493,494,495,496,497,498,499) AND C.COMMENT_CODE IS NOT NULL AND CAST(CONVERT(VARCHAR,C.DATEENTERED,101) AS DATETIME) BETWEEN @DTBEGIN AND @DTEND AND P.HOSPITAL = @HOSPITALID AND TT.PTNO IS NULL GROUP BY C.COMMENT_CODE, C.PTNO, P.HOSPITAL, C.RECORD_NUM |
Advertisement
| Hall of Fame |