UNPKG

fhir-schemas

Version:

Schemas for Fast Healthcare Interoperability Resources.

46 lines (37 loc) 761 B
var Code = require('../datatypes/Code'); var CodingSchema = require('../datatypes/Coding'); var PeriodSchema = require('../datatypes/Period'); var ReferenceSchema = require('../datatypes/Reference'); exports.ContactPointSchema = new SimpleSchema({ "resourceType" : { type: String, defaultValue: "ContactPoint", }, "system" : { optional: true, type: Code }, "value" : { optional: true, type: String }, "use" : { optional: true, type: Code }, "rank" : { optional: true, type: Number // PositiveInt }, "period" : { optional: true, type: PeriodSchema } }); exports.ContactPoint = { create: function(){ var newContactPoint = { }; return newContactPoint; } }