Examples |
{
"fhir": {
"KBV_PR_Base_Patient": {
"pid": [
{
"use": "usual",
"type": {
"coding": [
{
"MR-Type": {
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"version": "1",
"code": "MR",
"display": "_id_abc123",
"userSelected": false
}
}
],
"text": "Technical database identifier"
},
"system": "de.mementor",
"value": "_id_abc123"
}
],
"active": true,
"gender": "female",
"birthDate": 1988,
"telecom": [
{
"system": "email",
"value": "mail@example.com"
}
]
},
"observation": {
"$id": "#/properties/fhir/properties/observation",
"type": "object",
"title": "The observation schema",
"default": {},
"examples": [
{
"blood-pressure": [
{
"id": "blood-pressure",
"subject": {
"reference": "Patient/123456789"
},
"effectiveDateTime": "2022-02-08T05:51:01.673Z",
"performer": {
"reference": "Patient/123456789"
},
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "85354-9",
"display": "Blood pressure panel with all children optional"
}
],
"text": "Blood pressure systolic & diastolic"
},
"component": [
{
"code": {
"coding": {
"system": "app.actens.io",
"code": "8480-6",
"display": "Systolic blood pressure"
}
},
"valueQuantity": {
"value": 120,
"unit": "mm[Hg]"
}
},
{
"code": {
"coding": [
{
"system": "app.actens.io",
"code": "8462-4",
"display": "Diastolic blood pressure"
}
]
},
"valueQuantity": {
"value": 80,
"unit": "mm[Hg]"
}
},
{
"code": {
"coding": [
{
"system": "app.actens.io",
"display": "Pulse"
}
]
},
"valueQuantity": {
"value": 70,
"unit": "BPM"
}
}
]
}
],
"medicationadministration": []
}
],
"required": [
"blood-pressure",
"medicationadministration"
],
"properties": {
"blood-pressure": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure",
"type": "array",
"title": "The blood-pressure schema",
"default": [],
"additionalItems": true,
"items": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items",
"anyOf": [
{
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0",
"type": "object",
"title": "The first anyOf schema",
"default": {},
"examples": [
{
"id": "blood-pressure",
"subject": {
"reference": "Patient/123456789"
},
"effectiveDateTime": "2022-02-08T05:51:01.673Z",
"performer": {
"reference": "Patient/123456789"
},
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "85354-9",
"display": "Blood pressure panel with all children optional"
}
],
"text": "Blood pressure systolic & diastolic"
},
"component": [
{
"code": {
"coding": {
"system": "app.actens.io",
"code": "8480-6",
"display": "Systolic blood pressure"
}
},
"valueQuantity": {
"value": 120,
"unit": "mm[Hg]"
}
},
{
"code": {
"coding": [
{
"system": "app.actens.io",
"code": "8462-4",
"display": "Diastolic blood pressure"
}
]
},
"valueQuantity": {
"value": 80,
"unit": "mm[Hg]"
}
},
{
"code": {
"coding": [
{
"system": "app.actens.io",
"display": "Pulse"
}
]
},
"valueQuantity": {
"value": 70,
"unit": "BPM"
}
}
]
}
],
"required": [
"id",
"subject",
"effectiveDateTime",
"performer",
"code",
"component"
],
"properties": {
"id": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/id",
"type": "string",
"title": "The id schema",
"default": ""
},
"subject": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/subject",
"type": "object",
"title": "The subject schema",
"default": {},
"required": [
"reference"
],
"properties": {
"reference": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/subject/properties/reference",
"type": "string",
"title": "The reference schema",
"default": ""
}
},
"additionalProperties": true
},
"effectiveDateTime": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/effectiveDateTime",
"type": "string",
"title": "The effectiveDateTime schema",
"default": "",
"examples": [
"2022-02-08T05:51:01.673Z"
]
},
"performer": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/performer",
"type": "object",
"title": "The performer schema",
"default": {},
"required": [
"reference"
],
"properties": {
"reference": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/performer/properties/reference",
"type": "string",
"title": "The reference schema",
"default": ""
}
},
"additionalProperties": true
},
"code": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/code",
"type": "object",
"title": "The code schema",
"default": {},
"examples": [
{
"coding": [
{
"system": "http://loinc.org",
"code": "85354-9",
"display": "Blood pressure panel with all children optional"
}
],
"text": "Blood pressure systolic & diastolic"
}
],
"required": [
"coding",
"text"
],
"properties": {
"coding": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/code/properties/coding",
"type": "array",
"title": "The coding schema",
"default": [],
"examples": [
[
{
"system": "http://loinc.org",
"code": "85354-9",
"display": "Blood pressure panel with all children optional"
}
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/code/properties/coding/items",
"anyOf": [
{
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/code/properties/coding/items/anyOf/0",
"type": "object",
"title": "The first anyOf schema",
"default": {},
"examples": [
{
"system": "http://loinc.org",
"code": "85354-9",
"display": "Blood pressure panel with all children optional"
}
],
"required": [
"system",
"code",
"display"
],
"properties": {
"system": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/code/properties/coding/items/anyOf/0/properties/system",
"type": "string",
"title": "The system schema",
"default": "",
"examples": [
"http://loinc.org"
]
},
"code": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/code/properties/coding/items/anyOf/0/properties/code",
"type": "string",
"title": "The code schema",
"default": "",
"examples": [
"85354-9"
]
},
"display": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/code/properties/coding/items/anyOf/0/properties/display",
"type": "string",
"title": "The display schema",
"default": "",
"examples": [
"Blood pressure panel with all children optional"
]
}
},
"additionalProperties": true
}
]
}
},
"text": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/code/properties/text",
"type": "string",
"title": "The text schema",
"default": "",
"examples": [
"Blood pressure systolic & diastolic"
]
}
},
"additionalProperties": true
},
"component": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component",
"type": "array",
"title": "The component schema",
"default": [],
"examples": [
[
{
"code": {
"coding": {
"system": "app.actens.io",
"code": "8480-6",
"display": "Systolic blood pressure"
}
},
"valueQuantity": {
"value": 120,
"unit": "mm[Hg]"
}
},
{
"code": {
"coding": [
{
"system": "app.actens.io",
"code": "8462-4",
"display": "Diastolic blood pressure"
}
]
},
"valueQuantity": {
"value": 80,
"unit": "mm[Hg]"
}
}
]
],
"additionalItems": true,
"items": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items",
"anyOf": [
{
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0",
"type": "object",
"title": "The first anyOf schema",
"default": {},
"required": [
"code",
"valueQuantity"
],
"properties": {
"code": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0/properties/code",
"type": "object",
"title": "The code schema",
"default": {},
"required": [
"coding"
],
"properties": {
"coding": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0/properties/code/properties/coding",
"type": "object",
"title": "The coding schema",
"default": {},
"required": [
"system",
"code",
"display"
],
"properties": {
"system": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0/properties/code/properties/coding/properties/system",
"type": "string",
"title": "The system schema",
"default": "",
"examples": [
"app.actens.io"
]
},
"code": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0/properties/code/properties/coding/properties/code",
"type": "string",
"title": "The code schema",
"default": "",
"examples": [
"8480-6"
]
},
"display": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0/properties/code/properties/coding/properties/display",
"type": "string",
"title": "The display schema",
"default": "",
"examples": [
"Systolic blood pressure"
]
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"valueQuantity": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0/properties/valueQuantity",
"type": "object",
"title": "The valueQuantity schema",
"default": {},
"examples": [
{
"value": 120,
"unit": "mm[Hg]"
}
],
"required": [
"value",
"unit"
],
"properties": {
"value": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0/properties/valueQuantity/properties/value",
"type": "integer",
"title": "The value schema",
"default": 0,
"examples": [
120
]
},
"unit": {
"$id": "#/properties/fhir/properties/observation/properties/blood-pressure/items/anyOf/0/properties/component/items/anyOf/0/properties/valueQuantity/properties/unit",
"type": "string",
"title": "The unit schema",
"default": "",
"examples": [
"mm[Hg]"
]
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
]
}
}
},
"additionalProperties": true
}
]
}
},
"medicationadministration": {
"$id": "#/properties/fhir/properties/observation/properties/medicationadministration",
"type": "array",
"title": "The medicationadministration schema",
"default": [],
"additionalItems": true,
"items": {
"$id": "#/properties/fhir/properties/observation/properties/medicationadministration/items"
}
}
},
"additionalProperties": true
}
},
"mementor": {
"user": {
"profile": {
"medicalAccess": {
"code": "VTYAPGZT",
"validUntil": "2020-11-26T14:43:25.945Z",
"used": false
},
"sleepTracker": {
"accessToken": "_randomString_abc123",
"provider": "fitbit",
"expiresInSeconds": 31536000,
"providerUserId": "6DQSA2",
"refreshToken": "_randomString_abc123"
},
"generali": {
"recordId": 0,
"cancelled": false,
"phase": 0
},
"clients": [
"_id_abc123"
],
"dataProcessingConsent": true,
"dataProcessingConsentDate": null,
"language": "de_ch",
"active": true,
"anonymized": false,
"speakingRate": 9,
"showSubtitles": false,
"autoNext": true,
"loginCount": 1157,
"trustedDevices": [
"_randomString_abc123",
"_randomString_abc123"
],
"twoFactorAuthentication": true,
"newsletter": false,
"notifications": true,
"_id": "_id_abc123",
"joined": "2020-08-01T08:03:07.308Z",
"email": "mail@example.com",
"__v": 37,
"lastLogin": "2020-11-27T09:42:49.619Z",
"name": "Benutzername 123",
"coachingId": "_id_abc123",
"lastReadSystemNotifications": "2020-07-26T16:58:59.717Z",
"gender": "female",
"age": 22,
"notificationUpdateHash": "bf4ef823d3a65f64c27433131c2d4e65bde74928",
"resetToken": "_randomString_abc123",
"resetTokenCreatedDate": "2020-11-13T09:51:49.896Z",
"newEmail": "newMail@example.com",
"newEmailToken": "_randomString_abc123",
"newEmailTokenCreatedDate": "2020-11-23T12:59:32.097Z",
"demoAccount": false
},
"roles": [
{
"_id": "_id_abc123",
"name": "support",
"user": "_id_abc123",
"client": "_id_abc123",
"__v": 0
}
]
},
"licensing": {
"licenses": [
{
"vouchers": [
"_id_abc123"
],
"_id": "_id_abc123",
"user": "_id_abc123",
"coachingKey": "SLEEP",
"licenseType": "diga",
"datePaid": "2019-10-25T17:42:02.486Z",
"validUntil": "2020-10-25T17:42:02.486Z",
"__v": 0,
"id": "_id_abc123"
}
],
"vouchers": [
{
"validity": 0,
"quantity": 1,
"demoAccount": false,
"_id": "_id_abc123",
"code": "ABCD-EFGH-IJKL-MNOP",
"coachingKey": "SLEEP",
"provider": "_id_abc123",
"discount": 100,
"client": "_id_abc123",
"__v": 0
}
]
},
"communication": {
"messages": [
{
"content": "Ihre Lizenz für das Coaching Schlafcoaching wird in 7 Tagen ablaufen. ",
"dateRead": null,
"_id": "_id_abc123",
"dateSent": "2019-10-24T13:51:21.340Z",
"messageType": "expiringLicenseNonDiga",
"senderMail": "\"mementor no-reply\" ",
"recipientMail": "mail.example@com",
"recipientUser": "_id_abc123",
"sendAsMail": true,
"subject": "Lizenz läuft bald ab",
"__v": 0
},
{
"content": "Du hast in den letzten drei Tagen vergessen, das Schlaftagebuch auszufüllen ",
"dateRead": null,
"_id": "_id_abc123",
"dateSent": "2019-10-24T13:51:21.340Z",
"messageType": "sleepJournalReminder",
"senderMail": "\"mementor no-reply\" ",
"recipientMail": "mail.example@com",
"recipientUser": "_id_abc123",
"sendAsMail": true,
"subject": "Schlaftagebucheinträge vergessen",
"__v": 0
}
]
},
"training": {
"coachings": [
{
"version": 9,
"published": false,
"_id": "_id_abc123",
"released": true,
"modules": [
{
"optional": false,
"progress": 100,
"completed": true,
"startedDate": "2020-06-04T06:13:19.198Z",
"completionDate": "2020-11-15T06:20:53.192Z",
"history": [],
"requiredEntries": 0,
"createdEntries": 0,
"menuOpened": false,
"_id": "_id_abc123",
"module": "_id_abc123"
},
{
"optional": false,
"progress": 100,
"completed": true,
"startedDate": "2020-07-24T10:28:18.405Z",
"completionDate": "2020-11-15T06:20:53.193Z",
"history": [
"_id_abc123",
"_id_abc123"
],
"requiredEntries": 3,
"createdEntries": 1,
"menuOpened": true,
"_id": "_id_abc123",
"module": "_id_abc123"
}
],
"key": "SLEEP",
"name": {
"_id": "_id_abc123",
"de_ch": "Schlafcoaching",
"fr_ch": "Coaching de sommeil",
"en_us": "Sleep coaching",
"it_ch": "Coaching del sonno"
},
"__v": 6,
"user": "_id_abc123",
"client": "_id_abc123",
"lastUpdate": "2019-10-24T13:31:48.619Z"
}
],
"sleepWindows": [
{
"_id": "_id_abc123",
"lastModified": "2020-07-24T10:31:28.383Z",
"user": "_id_abc123",
"start": "2020-07-23T22:50:00.000Z",
"end": "2020-07-24T04:50:00.000Z",
"duration": 360,
"__v": 0,
"efficiency": 76.72783521303259
},
{
"_id": "_id_abc123",
"start": "2020-07-23T23:00:00.000Z",
"end": "2020-07-24T05:00:00.000Z",
"duration": 360,
"lastModified": "2020-10-01T06:57:44.735Z",
"efficiency": null,
"user": "_id_abc123",
"__v": 0
}
],
"userInputs": {
"sleepJournal": {
"sleepJournalEntries": [
{
"bedPhase": {
"toBedDate": "2020-07-19T20:00:00.000Z",
"getUpDate": "2020-07-20T04:20:00.000Z"
},
"sleepPhase": {
"noSleep": false,
"triedToSleepDate": "2020-07-19T20:20:00.000Z",
"fallAsleepDate": "2020-07-19T20:40:00.000Z",
"awakeAmount": 3,
"awakeDuration": 20,
"wakeUpDate": "2020-07-20T04:00:00.000Z",
"quality": 74
},
"fromTracker": false,
"_id": "_id_abc123",
"user": "_id_abc123",
"bedDuration": 500,
"sleepDuration": 420,
"fallAsleepDuration": 20,
"activeAfterWakeup": 20,
"efficiency": 84,
"__v": 0
},
{
"bedPhase": {
"toBedDate": "2020-07-20T20:00:00.000Z",
"getUpDate": "2020-07-21T04:00:00.000Z"
},
"sleepPhase": {
"noSleep": false,
"triedToSleepDate": "2020-07-20T20:20:00.000Z",
"fallAsleepDate": "2020-07-20T20:30:00.000Z",
"awakeAmount": 1,
"awakeDuration": 1,
"wakeUpDate": "2020-07-21T03:00:00.000Z",
"quality": 83
},
"fromTracker": false,
"_id": "_id_abc123",
"user": "_id_abc123",
"bedDuration": 480,
"sleepDuration": 389,
"fallAsleepDuration": 10,
"activeAfterWakeup": 60,
"efficiency": 81.04166666666667,
"__v": 0
}
],
"awakeJournalEntries": [
{
"_id": "_id_abc123",
"created": "2020-08-10T09:59:00.000Z",
"mood": 5,
"performance": 2,
"energy": 4,
"alcoholRecent": 2,
"caffeineRecent": 2,
"user": "_id_abc123",
"__v": 0
},
{
"_id": "_id_abc123",
"created": "2020-10-23T09:48:00.000Z",
"mood": 4,
"performance": 3,
"energy": 5,
"alcoholRecent": 2,
"caffeineRecent": 1,
"user": "_id_abc123",
"__v": 0
}
]
},
"answers": [
{
"history": [
{
"saved": "2019-12-16T19:46:32.883Z",
"step": "_id_abc123",
"value": "Alex"
},
{
"saved": "2019-12-16T19:52:47.972Z",
"step": "_id_abc123",
"value": "Benita"
}
],
"updates": 5,
"_id": "_id_abc123",
"answerContainer": "_id_abc123",
"client": "_id_abc123",
"user": "_id_abc123",
"__v": 0,
"value": "Mein Benutzername 123",
"created": "2020-11-27T09:43:38.379Z"
},
{
"history": [],
"updates": 10,
"_id": "_id_abc123",
"answerContainer": "_id_abc123",
"client": "_id_abc123",
"user": "_id_abc123",
"__v": 0,
"value": "9",
"created": "2020-11-27T09:43:38.380Z"
}
]
}
}
}
}
|