Skip to content

Instantly share code, notes, and snippets.

@simonmd
Created November 1, 2010 22:03
Show Gist options
  • Save simonmd/658952 to your computer and use it in GitHub Desktop.
Save simonmd/658952 to your computer and use it in GitHub Desktop.
{
"_id": "_design/patient_id",
"_rev": "1-17546bcc3050ddc486f9daf875bdeef5",
"language": "javascript",
"views": {
"patient_id": {
"map": "function(doc) {\n emit(doc.t00100020,{Nombre:doc.t00100010,\"StudyDescription\":doc.t00400254, \"StudyDate\":doc.t00080020, \"StudyIUID\":doc.t0020000D});\n}\n",
"reduce": "function(keys, values) {\nfor(var k=0;k<1;k++) return values[k];\n}\n"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment