Skip to content

Instantly share code, notes, and snippets.

@simonmd
Created November 1, 2010 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonmd/658954 to your computer and use it in GitHub Desktop.
Save simonmd/658954 to your computer and use it in GitHub Desktop.
{
"_id": "_design/patient_name",
"_rev": "2-5bd74fcede5b67023f8d80d5b1360e9a",
"language": "javascript",
"views": {
"patient_name": {
"map": "function(doc) {\n emit(doc.t00100010,{\"pat_id\":doc.t00100020,\"StudyDescription\":doc.t00400254, \"BirthDate\":doc.t00100030, \"Accession\":doc.t00080050, \"Modality\":doc.t00080060, \"StudyDate\":doc.t00080020, \"Institution\":doc.t00080080});\n}\n",
"reduce": "function(keys, values) {\nfor(var k=0;k<1;k++) return values[k];\n}"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment