Rev | Line | |
---|
[1004] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | echo "Which directory contains your CCRs? Please provide the full path /home/vademo4-09/CCR or whatever is appropriate"
|
---|
| 4 | read mypath
|
---|
| 5 | #sample file name PAT_100955_CCR_V1_0_0.xml
|
---|
| 6 | for i in $(ls -1 $mypath/PAT_*_CCR_V1_0_0.xml); do
|
---|
| 7 | echo "$i" | awk -F_ '{ print $2 }' >> CCR-DFNs.txt
|
---|
| 8 | #list of the DFNs for the patients who have CCRs in the CCR directory
|
---|
| 9 | file="CCR-DFNs.txt"
|
---|
| 10 | done
|
---|
| 11 | for DFN in $(cat "${file}");
|
---|
| 12 | do
|
---|
| 13 | echo "java -jar /usr/share/java/saxon.jar -o /home/vademo4-09/QRDA/PAT_${DFN}_QRDA_V1_0_0-`date +%m-%d-%Y_%H`.xml /home/vademo4-09/CCR/PAT_${DFN}_CCR_V1_0_0.xml New-ccr_qrda.xsl" >> "qrda2-`date +%m-%d-%Y_%H`.sh";done
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | #model lines of gernerated file
|
---|
| 17 | #!/bin/bash
|
---|
| 18 | #java -jar /usr/share/java/saxon.jar -o /home/vademo4-09/QRDA/M1-PAT_100146_QRDA_V1_0_0.xml /home/vademo4-09/CCR/M1_100146_CCR_V1_0_0.xml M1-ccr_qrda.xsl
|
---|
Note:
See
TracBrowser
for help on using the repository browser.