fhir-schemas
Version:
Schemas for Fast Healthcare Interoperability Resources.
83 lines (80 loc) • 2.43 kB
JavaScript
var AddressSchema = require('../datatypes/Address');
var AnnotationSchema = require('../datatypes/Annotation');
var BaseSchema = require('../datatypes/Base');
var Code = require('../datatypes/Code');
var CodingSchema = require('../datatypes/Coding');
var CodeableConcept = require('../datatypes/CodeableConcept');
var ContactPointSchema = require('../datatypes/ContactPoint');
var DomainResourceSchema = require('../datatypes/DomainResource');
var GroupSchema = require('../datatypes/Group');
var HumanNameSchema = require('../datatypes/HumanName');
var IdentifierSchema = require('../datatypes/Identifier');
var PeriodSchema = require('../datatypes/Period');
var QuantitySchema = require('../datatypes/Quantity');
var ReferenceSchema = require('../datatypes/Reference');
var TimingSchema = require('../datatypes/Timing');
exports.LocationSchema = new SimpleSchema([
BaseSchema,
DomainResourceSchema,
{
"resourceType" : {
type: String,
defaultValue: "Location"
},
"identifier" : {
optional: true,
type: [ IdentifierSchema ]
}, // Unique code or number identifying the location to its users
"status" : {
optional: true,
type: Code
}, // active | suspended | inactive
"name" : {
optional: true,
type: String
}, // Name of the location as used by humans
"description" : {
optional: true,
type: String
}, // Description of the location
"mode" : {
optional: true,
type: Code
}, // instance | kind
"type" : {
optional: true,
type: CodeableConceptSchema
}, // Type of function performed
"telecom" : {
optional: true,
type: [ ContactPointSchema ]
}, // Contact details of the location
"address" : {
optional: true,
type: AddressSchema
}, // Physical location
"physicalType" : {
optional: true,
type: CodeableConceptSchema
}, // Physical form of the location
"position.longitude" : {
decimal: true,
type: Number
}, // R! Longitude with WGS84 datum
"position.latitude" : {
decimal: true,
type: Number
}, // R! Latitude with WGS84 datum
"position.altitude" : {
optional: true,
type: Number
}, // Altitude with WGS84 datum
"managingOrganization" : {
optional: true,
type: ReferenceSchema
}, // Organization responsible for provisioning and upkeep
"partOf" : {
optional: true,
type: ReferenceSchema
} // Another Location this one is physically part of
}]);