|
@@ -1812,32 +1812,62 @@
|
1812
|
1812
|
//药品
|
1813
|
1813
|
for (let b = 0; b < prescription.advices.length; b++) {
|
1814
|
1814
|
console.log("prescription.advices[b].drug.drug_status.startsWith('停用')",prescription.advices[b].drug.drug_status.startsWith('停用'))
|
1815
|
|
- if(prescription.advices[b].drug!=null && prescription.advices[b].drug.drug_status.startsWith('停用') == false){
|
1816
|
|
- let obj = {
|
1817
|
|
- advice_id: prescription.advices[b].id,
|
1818
|
|
- drug_name: prescription.advices[b].advice_name,
|
1819
|
|
- single_dose: prescription.advices[b].single_dose,
|
1820
|
|
- delivery_way: prescription.advices[b].delivery_way,
|
1821
|
|
- execution_frequency: prescription.advices[b].execution_frequency,
|
1822
|
|
- retail_price: prescription.advices[b].price.toString(),
|
1823
|
|
- remark: prescription.advices[b].remark,
|
1824
|
|
- day: prescription.advices[b].day,
|
1825
|
|
- prescribing_number: prescription.advices[b].prescribing_number.toString(),
|
1826
|
|
- single_dose_unit: prescription.advices[b].single_dose_unit,
|
1827
|
|
- prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
|
1828
|
|
- medical_insurance_number: prescription.advices[b].med_list_codg,
|
1829
|
|
- id: prescription.advices[b].drug_id,
|
1830
|
|
- drug: prescription.advices[b].drug,
|
1831
|
|
- groupno: prescription.advices[b].groupno,
|
1832
|
|
- frequency_type: prescription.advices[b].frequency_type,
|
1833
|
|
- day_count: prescription.advices[b].day_count,
|
1834
|
|
- week_day: prescription.advices[b].week_day,
|
1835
|
|
- number: prescription.advices[b].drug.number
|
|
1815
|
+ //孝感原生堂做特殊处理
|
|
1816
|
+ if(this.org_id != 0 && this.org_id!=10598){
|
|
1817
|
+ if(prescription.advices[b].drug!=null && prescription.advices[b].drug.drug_status.startsWith('停用') == false){
|
|
1818
|
+ let obj = {
|
|
1819
|
+ advice_id: prescription.advices[b].id,
|
|
1820
|
+ drug_name: prescription.advices[b].advice_name,
|
|
1821
|
+ single_dose: prescription.advices[b].single_dose,
|
|
1822
|
+ delivery_way: prescription.advices[b].delivery_way,
|
|
1823
|
+ execution_frequency: prescription.advices[b].execution_frequency,
|
|
1824
|
+ retail_price: prescription.advices[b].price.toString(),
|
|
1825
|
+ remark: prescription.advices[b].remark,
|
|
1826
|
+ day: prescription.advices[b].day,
|
|
1827
|
+ prescribing_number: prescription.advices[b].prescribing_number.toString(),
|
|
1828
|
+ single_dose_unit: prescription.advices[b].single_dose_unit,
|
|
1829
|
+ prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
|
|
1830
|
+ medical_insurance_number: prescription.advices[b].med_list_codg,
|
|
1831
|
+ id: prescription.advices[b].drug_id,
|
|
1832
|
+ drug: prescription.advices[b].drug,
|
|
1833
|
+ groupno: prescription.advices[b].groupno,
|
|
1834
|
+ frequency_type: prescription.advices[b].frequency_type,
|
|
1835
|
+ day_count: prescription.advices[b].day_count,
|
|
1836
|
+ week_day: prescription.advices[b].week_day,
|
|
1837
|
+ number: prescription.advices[b].drug.number
|
1836
|
1838
|
|
1837
|
|
- }
|
1838
|
|
- tempAdvice.push(obj)
|
|
1839
|
+ }
|
|
1840
|
+ tempAdvice.push(obj)
|
1839
|
1841
|
}
|
1840
|
1842
|
|
|
1843
|
+ }else{
|
|
1844
|
+ if(prescription.advices[b].drug!=null){
|
|
1845
|
+ let obj = {
|
|
1846
|
+ advice_id: prescription.advices[b].id,
|
|
1847
|
+ drug_name: prescription.advices[b].advice_name,
|
|
1848
|
+ single_dose: prescription.advices[b].single_dose,
|
|
1849
|
+ delivery_way: prescription.advices[b].delivery_way,
|
|
1850
|
+ execution_frequency: prescription.advices[b].execution_frequency,
|
|
1851
|
+ retail_price: prescription.advices[b].price.toString(),
|
|
1852
|
+ remark: prescription.advices[b].remark,
|
|
1853
|
+ day: prescription.advices[b].day,
|
|
1854
|
+ prescribing_number: prescription.advices[b].prescribing_number.toString(),
|
|
1855
|
+ single_dose_unit: prescription.advices[b].single_dose_unit,
|
|
1856
|
+ prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
|
|
1857
|
+ medical_insurance_number: prescription.advices[b].med_list_codg,
|
|
1858
|
+ id: prescription.advices[b].drug_id,
|
|
1859
|
+ drug: prescription.advices[b].drug,
|
|
1860
|
+ groupno: prescription.advices[b].groupno,
|
|
1861
|
+ frequency_type: prescription.advices[b].frequency_type,
|
|
1862
|
+ day_count: prescription.advices[b].day_count,
|
|
1863
|
+ week_day: prescription.advices[b].week_day,
|
|
1864
|
+ number: prescription.advices[b].drug.number
|
|
1865
|
+
|
|
1866
|
+ }
|
|
1867
|
+ tempAdvice.push(obj)
|
|
1868
|
+ }
|
|
1869
|
+ }
|
|
1870
|
+
|
1841
|
1871
|
}
|
1842
|
1872
|
//项目
|
1843
|
1873
|
for (let b = 0; b < prescription.project.length; b++) {
|
|
@@ -1920,8 +1950,94 @@
|
1920
|
1950
|
}
|
1921
|
1951
|
tempProject.push(obj)
|
1922
|
1952
|
}
|
1923
|
|
- }else if(prescription.project[b].type == 3 && prescription.project[b].good_info.good_status.startsWith('停用') == false){
|
1924
|
|
- if (this.org_id == 10206 ) {
|
|
1953
|
+ //针对孝感原生堂
|
|
1954
|
+ }else if(prescription.project[b].type == 3){
|
|
1955
|
+
|
|
1956
|
+ if(this.org_id!=0&&this.org_id!=10510 && prescription.project[b].good_info.good_status.startsWith('停用') == false){
|
|
1957
|
+
|
|
1958
|
+ if (this.org_id == 10206 ) {
|
|
1959
|
+ let obj = {
|
|
1960
|
+ id: prescription.project[b].id,
|
|
1961
|
+ project_id: prescription.project[b].project_id,
|
|
1962
|
+ project_name: prescription.project[b].project.project_name,
|
|
1963
|
+ statistical_classification: prescription.project[b].project.statistical_classification,
|
|
1964
|
+ single_dose: prescription.project[b].single_dose,
|
|
1965
|
+ delivery_way: prescription.project[b].delivery_way,
|
|
1966
|
+ execution_frequency: prescription.project[b].execution_frequency,
|
|
1967
|
+ number_days: prescription.project[b].day,
|
|
1968
|
+ total: prescription.project[b].count.toString(),
|
|
1969
|
+ price: prescription.project[b].price,
|
|
1970
|
+ remark: prescription.project[b].remark,
|
|
1971
|
+ medical_code: prescription.project[b].project.medical_code,
|
|
1972
|
+ type: prescription.project[b].type,
|
|
1973
|
+ frequency_type: prescription.project[b].frequency_type,
|
|
1974
|
+ day_count: prescription.project[b].day_count,
|
|
1975
|
+ week_day: prescription.project[b].week_day,
|
|
1976
|
+ number_days:prescription.project[b].day
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+ }
|
|
1980
|
+
|
|
1981
|
+ if (prescription.project[b].type == 2) {
|
|
1982
|
+ obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
|
1983
|
+ obj['medical_code'] = prescription.project[b].project.medical_code
|
|
1984
|
+ obj['project_name'] = prescription.project[b].project.project_name
|
|
1985
|
+ obj['project'] = prescription.project[b].project
|
|
1986
|
+ obj['unit'] = prescription.project[b].unit
|
|
1987
|
+ obj['number'] = ""
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+ } else if (prescription.project[b].type == 3) {
|
|
1991
|
+ obj['statistical_classification'] = ''
|
|
1992
|
+ obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
|
1993
|
+ obj['project_name'] = prescription.project[b].good_info.good_name
|
|
1994
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
1995
|
+ obj['unit'] = prescription.project[b].good_info.packing_unit
|
|
1996
|
+ obj['number'] = prescription.project[b].good_info.good_number
|
|
1997
|
+
|
|
1998
|
+ }
|
|
1999
|
+ tempProject.push(obj)
|
|
2000
|
+ }else{
|
|
2001
|
+ let obj = {
|
|
2002
|
+ id: prescription.project[b].id,
|
|
2003
|
+ project_id: prescription.project[b].project_id,
|
|
2004
|
+ project_name: prescription.project[b].project.project_name,
|
|
2005
|
+ statistical_classification: prescription.project[b].project.statistical_classification,
|
|
2006
|
+ single_dose: prescription.project[b].single_dose,
|
|
2007
|
+ delivery_way: prescription.project[b].delivery_way,
|
|
2008
|
+ execution_frequency: prescription.project[b].execution_frequency,
|
|
2009
|
+ number_days: prescription.project[b].day,
|
|
2010
|
+ total: prescription.project[b].count.toString(),
|
|
2011
|
+ price: prescription.project[b].price,
|
|
2012
|
+ remark: prescription.project[b].remark,
|
|
2013
|
+ medical_code: prescription.project[b].project.medical_code,
|
|
2014
|
+ type: prescription.project[b].type,
|
|
2015
|
+ frequency_type: prescription.project[b].frequency_type,
|
|
2016
|
+ day_count: prescription.project[b].day_count,
|
|
2017
|
+ week_day: prescription.project[b].week_day,
|
|
2018
|
+ number_days:prescription.project[b].day
|
|
2019
|
+
|
|
2020
|
+ }
|
|
2021
|
+
|
|
2022
|
+ if (prescription.project[b].type == 2) {
|
|
2023
|
+ obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
|
2024
|
+ obj['medical_code'] = prescription.project[b].project.medical_code
|
|
2025
|
+ obj['project_name'] = prescription.project[b].project.project_name
|
|
2026
|
+ obj['project'] = prescription.project[b].project
|
|
2027
|
+ obj['unit'] = prescription.project[b].unit
|
|
2028
|
+ } else if (prescription.project[b].type == 3) {
|
|
2029
|
+ obj['statistical_classification'] = ''
|
|
2030
|
+ obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
|
2031
|
+ obj['project_name'] = prescription.project[b].good_info.good_name
|
|
2032
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
2033
|
+ obj['unit'] = prescription.project[b].good_info.packing_unit
|
|
2034
|
+ }
|
|
2035
|
+ tempProject.push(obj)
|
|
2036
|
+ }
|
|
2037
|
+
|
|
2038
|
+ }else{
|
|
2039
|
+
|
|
2040
|
+ if (this.org_id == 10206 ) {
|
1925
|
2041
|
let obj = {
|
1926
|
2042
|
id: prescription.project[b].id,
|
1927
|
2043
|
project_id: prescription.project[b].project_id,
|
|
@@ -2000,6 +2116,10 @@
|
2000
|
2116
|
}
|
2001
|
2117
|
tempProject.push(obj)
|
2002
|
2118
|
}
|
|
2119
|
+ }
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
|
2003
|
2123
|
}
|
2004
|
2124
|
}
|
2005
|
2125
|
// var preTime = nowTime
|