forked from HospitalRun/hospitalrun-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
p-mcgowan@homebot
committed
Nov 2, 2017
1 parent
e42b785
commit c4678a8
Showing
170 changed files
with
10,937 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
exports.root = (request, response) => { | ||
return response.status(501).send('root unimplemented'); | ||
return response.status(501).send('patients / unimplemented'); | ||
}; | ||
|
||
exports.notroot = (request, response) => { | ||
return response.status(501).send('not root unimplemented'); | ||
return response.status(501).send('patients /root unimplemented'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
exports.root = (request, response) => { | ||
return response.status(501).send('root unimplemented'); | ||
}; | ||
|
||
exports.notroot = (request, response) => { | ||
return response.status(501).send('not root unimplemented'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var router = require('express').Router(); | ||
|
||
// Pats controller | ||
var patientsController = require('../controllers/patients_controller.js'); | ||
|
||
|
||
router.get('/', patientsController.root); | ||
router.get('/root', patientsController.notroot); | ||
|
||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var router = require('express').Router(); | ||
|
||
var questionairreController = require('../controllers/questionairre_controller.js'); | ||
|
||
|
||
router.get('/', questionairreController.root); | ||
router.get('/root', questionairreController.notroot); | ||
|
||
module.exports = router; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
var router = require('express').Router(); | ||
|
||
// patients sub route | ||
var patientsRouter = require('./patients'); | ||
|
||
router.use((request, response, next) => { | ||
console.log(request.method, request.originalUrl, request.body); | ||
next(); | ||
}); | ||
|
||
// when pats, pats sub root | ||
router.use('/patients', patientsRouter); | ||
router.use('/patient', require('./patient')); | ||
router.use('/questionairre', require('./questionairre')); | ||
|
||
router.use((error, request, response, next) => { | ||
console.trace(error); | ||
if (!response.headerSent) { | ||
response.status(500).json({ error: 'Internal server error' }); | ||
} | ||
next(); | ||
}); | ||
|
||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/AllergyIntoleranceBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: AllergyIntoleranceEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/AppointmentBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: AppointmentEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/Bundle.raml | ||
|
||
#not to be used directly - use more specific types: GeneralBundle or <resourceName>Bundle | ||
type: Resource | ||
properties: | ||
resourceType?: string | ||
type: | ||
type: code | ||
enum: [document, message, transaction, transaction-response, batch, batch-response, history, searchset, collection] | ||
total?: unsignedInt | ||
link?: | ||
type: array | ||
items: | ||
type: BackboneElement | ||
properties: | ||
relation: string | ||
url: uri | ||
signature?: Signature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/ConditionBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: ConditionEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/DeviceBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: DeviceEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/EncounterBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: EncounterEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/GeneralBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: | ||
type: array | ||
items: | ||
type: BackboneElement | ||
properties: | ||
link?: | ||
type: array | ||
items: | ||
type: BackboneElement | ||
properties: | ||
relation: string | ||
url: uri | ||
fullUrl?: uri | ||
resource?: Resource | ||
search?: | ||
type: BackboneElement | ||
properties: | ||
mode?: | ||
type: code | ||
enum: [match, include, outcome] | ||
score?: decimal | ||
request?: | ||
type: BackboneElement | ||
properties: | ||
method: | ||
type: code | ||
enum: [GET, PUT, POST, DELETE] | ||
url: uri | ||
ifNoneMatch?: string | ||
ifModifiedSince?: instant | ||
ifMatch: string | ||
ifNoneExist: string | ||
response?: | ||
type: BackboneElement | ||
properties: | ||
status: string | ||
location?: uri | ||
etag?: string | ||
lastModified?: instant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/MedicationBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: MedicationEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/MedicationOrderBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: MedicationOrderEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/ObservationBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: ObservationEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/PatientBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: PatientEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/PractitionerBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: PractitionerEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/ScheduleBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: ScheduleEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/bundles/SlotBundle.raml | ||
|
||
type: Bundle | ||
properties: | ||
entry?: SlotEntry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/Address.raml | ||
|
||
type: Element | ||
properties: | ||
use?: | ||
type: code | ||
enum: [home, work, temp, old] | ||
type?: | ||
type: code | ||
enum: [postal, physical, both] | ||
text?: string | ||
line?: string[] | ||
city?: string | ||
district?: string | ||
state?: string | ||
postalCode?: string | ||
country?: string | ||
period?: Period |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/Annotation.raml | ||
|
||
type: Element | ||
properties: | ||
/^author(Reference|String)$/?: Reference | string | ||
time?: dateTime | ||
text?: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/Attachment.raml | ||
|
||
type: Element | ||
properties: | ||
contentType?: | ||
type: code | ||
description: Mime type of the content, with charset etc. | ||
language?: | ||
type: code | ||
description: Human language of the content (BCP-47) | ||
data?: base64Binary | ||
url?: uri | ||
size?: unsignedInt | ||
hash?: base64Binary | ||
title?: string | ||
creation?: dateTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/BackboneElement.raml | ||
|
||
type: Element | ||
properties: | ||
modifierExtension?: Extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/CodeableConcept.raml | ||
|
||
type: Element | ||
properties: | ||
coding?: Coding[] | ||
text?: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/Coding.raml | ||
|
||
properties: | ||
system?: uri | ||
version?: string | ||
code?: code | ||
display?: string | ||
userSelected?: boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/ContactPoint.raml | ||
|
||
type: Element | ||
properties: | ||
system?: | ||
enum: [phone,fax,email,pager,other] | ||
value?: string | ||
use?: string | ||
rank?: | ||
type: positiveInt | ||
period?: Period |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/Duration.raml | ||
|
||
type: Quantity | ||
description: a length of time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/Element.raml | ||
|
||
properties: | ||
id?: id | ||
extension?: Extension[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/Extension.raml | ||
|
||
properties: | ||
url: uri | ||
# Regex key below causes errors | ||
# /^value(Integer|Decimal|DateTime|Date|Instant|String|Uri|Boolean|Code|Markdown|Base64Binary|Coding|CodeableConcept|Attachment|Identifier|Quantity|Range|Period|Ratio|HumanName|Address|ContactPoint|Timing|Signature|Reference)$/: integer | decimal | dateTime | date | instant | string | uri | boolean | code | markdown | base64Binary | Coding | CodeableConcept | Attachment | Identifier | Quantity | Range | Period | Ratio | HumanName | Address | ContactPoint | Timing | Signature | Reference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/HumanName.raml | ||
|
||
type: Element | ||
properties: | ||
use?: | ||
type: code | ||
enum: [usual, official ,temp, nickname, anonymous, old, maiden] | ||
text?: | ||
family?: string[] | ||
given?: string[] | ||
prefix?: string[] | ||
suffix?: string[] | ||
period?: Period |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#%RAML 1.0 DataType | ||
|
||
#This file is located at dataTypes/elements/Identifier.raml | ||
|
||
properties: | ||
use?: code | ||
type?: CodeableConcept | ||
system?: uri | ||
value?: string | ||
period?: Period | ||
assigner?: Reference |
Oops, something went wrong.