|
@@ -42,21 +42,6 @@ export async function getEmrTree(patNo, times) {
|
|
|
return returnValue
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-export function getTemplate(code) {
|
|
|
- return service({
|
|
|
- url: `template/${code}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-export function getPatientsEmr(patNo) {
|
|
|
- return service({
|
|
|
- url: `document/docs/patient/${patNo}`,
|
|
|
- method: 'GET'
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
export async function getSnippet() {
|
|
|
let data = await service({
|
|
|
url: `snippet/list/tree`,
|
|
@@ -65,31 +50,4 @@ export async function getSnippet() {
|
|
|
return getTree(data, '_id', 'parent')
|
|
|
}
|
|
|
|
|
|
-export async function getDataByDocumentId(documentId) {
|
|
|
- let data = await service({
|
|
|
- url: `document/docs/data/${documentId}`,
|
|
|
- method: 'get'
|
|
|
- })
|
|
|
- let returnData = {}
|
|
|
- if (data) {
|
|
|
- for (let key in data) {
|
|
|
- let item = data[key].element
|
|
|
- console.log(item.code)
|
|
|
- if (item.code) {
|
|
|
- if (item.code.business) {
|
|
|
- if (item.code.business === 'ward_round_time') {
|
|
|
- console.log('查房时间', item)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- // if (item.code && item.code.business && item.code.business === 'ward_round_time') {
|
|
|
- // if (item.value) {
|
|
|
- // returnData['查房时间' + item.value] = item.value
|
|
|
- // }
|
|
|
- // }
|
|
|
- // console.log(item);
|
|
|
- }
|
|
|
- }
|
|
|
- console.log(returnData)
|
|
|
- console.log(data);
|
|
|
-}
|
|
|
+
|