issuer field on prescription document
[confetti] / pages / prescriptions.sh
index 20b2bc0..73c5c2c 100755 (executable)
@@ -34,6 +34,12 @@ list_prescriptions(){
   | sort -r | cut -f2
 }
 
+list_prescription_issuers(){
+  sed -rn 's;^issuer:(.+)$;\1;p' ${_DATA}/prescriptions/*.mpx \
+  | sort -u
+}
+
+
 edit_prescription(){
   id="$1"
   prescfile="$_DATA/prescriptions/$id"