source: ccr2ccd-xslt/trunk/make/QRDA-File-Generation-Script-For-All-CCRs-Available.sh@ 1806

Last change on this file since 1806 was 1004, checked in by George Lilly, 14 years ago

final PQRI files

File size: 839 bytes
Line 
1#!/bin/bash
2
3echo "Which directory contains your CCRs? Please provide the full path /home/vademo4-09/CCR or whatever is appropriate"
4read mypath
5#sample file name PAT_100955_CCR_V1_0_0.xml
6for i in $(ls -1 $mypath/PAT_*_CCR_V1_0_0.xml); do
7echo "$i" | awk -F_ '{ print $2 }' >> CCR-DFNs.txt
8#list of the DFNs for the patients who have CCRs in the CCR directory
9file="CCR-DFNs.txt"
10done
11for DFN in $(cat "${file}");
12do
13echo "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.