{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "OCF", "$id": "https://smart-data-models.github.io/dataModel.IoTDataModels/GlucoseMeal/schema.json", "title": "Context Meal for Glucose Meter", "description": "Smart Data Models Program adaptation of the original IoTData data Models. This Resource describes the Properties associated with context meal. Preprandial means pre-meal. Postprandial means post-meal. Fasting means the effect of long-term absence of food intake (overnight). The meal Property is a read-only value that is provided by the Server.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "rt": { "description": "Property. Resource Type", "items": { "enum": [ "oic.r.glucose.meal" ], "type": "string", "maxLength": 64 }, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array" }, "meal": { "description": "Property. Time of day when the measurement is taken.", "enum": [ "preprandial", "postprandial", "fasting", "bedtime", "casual" ], "readOnly": true, "type": "string" }, "n": { "type": "string", "maxLength": 64, "readOnly": true, "description": "Property. Friendly name of the Resource" }, "if": { "description": "Property. The OCF Interface set supported by this Resource", "items": { "enum": [ "oic.if.s", "oic.if.baseline" ], "type": "string", "maxLength": 64 }, "minItems": 1, "readOnly": true, "uniqueItems": true, "type": "array" }, "type": { "type": "string", "enum": [ "GlucoseMeal" ], "description": "Property. NGSI entity type. It has to be GlucoseMeal" } } } ], "derivedFrom": "https://github.com/OpenInterConnect/IoTDataModels/blob/master/GlucoseMealResURI.swagger.json", "license": "https://github.com/OpenInterConnect/IoTDataModels/blob/master/README.md", "required": [ "id", "type" ] }