Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62268807
patients.coffee
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 12, 01:57
Size
383 B
Mime Type
text/x-c++
Expires
Tue, May 14, 01:57 (2 d)
Engine
blob
Format
Raw Data
Handle
17626599
Attached To
R7177 epiph
patients.coffee
View Options
class @Patient
constructor: (doc) ->
_.extend this, doc
@Patients = new Meteor.Collection("patients",
transform: (doc) ->
new Patient(doc)
)
Patients.before.insert BeforeInsertTimestampHook
Patients.before.update BeforeUpdateTimestampHook
Meteor.methods
"createPatient": ->
checkIfTherapist()
_id = Patients.insert
therapistId: Meteor.userId()
_id
Event Timeline
Log In to Comment