Skip to content

Instantly share code, notes, and snippets.

@esseti
Last active May 31, 2016 09:12
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 esseti/55624080d690254551ef5bd092bbcc93 to your computer and use it in GitHub Desktop.
Save esseti/55624080d690254551ef5bd092bbcc93 to your computer and use it in GitHub Desktop.
structure = [{
"name": "physician_id", "type": "string", "indexed":True
},{
"name": "patient_birth_date","type": "date", "indexed":True
},{
"name": "observation","type": "string","indexed":True
},{
"name": "visit_date","type": "datetime","indexed":True
}]
schema = chino.schemas.create(repository_id, 'my schema', structure) #repository_id from step 2
schema_id = schema._id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment