ai.newnal.mydata.healthMedications
Medications taken, with their purpose, dosage and status. The health conditions and symptoms treated with the medications are kept in health.healthStatus, and allergies in health.allergies.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | mydata.newnal.ai |
| Commit rev | 3n2zsdjsg6t2b |
| Indexed |
Showing version bafyreidhdxgbbreh6ud3xtdazv5al2kb5qtw7pasqbg3qygj45hkow6w54. Show the latest
Checks
Validlarge-stringdefs.entry.properties.notesmaxLength is over 20 KB. Use a blob for content that large.large-stringdefs.entry.properties.purposemaxLength is over 20 KB. Use a blob for content that large.field-name-syntaxdefs.main.record.properties._metaThe field name _meta should be letters and digits, starting with a letter.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"entry": {
"description": "One medication taken.",
"properties": {
"codes": {
"description": "List of the codes for the medication in standard classifications (for example RxNorm or ATC).",
"items": {
"description": "One item of the list of the codes for the medication in standard classifications (for example RxNorm or ATC).",
"ref": "ai.newnal.mydata.defs#coding",
"type": "ref"
},
"maxLength": 20,
"type": "array"
},
"daysOfWeek": {
"description": "List of the weekdays the medication is taken on. Omit it when it is taken every day.",
"items": {
"description": "One item of the list of the weekdays the medication is taken on.",
"ref": "ai.newnal.mydata.defs#weekday",
"type": "ref"
},
"maxLength": 7,
"type": "array"
},
"dosage": {
"description": "The dosage of the medication.",
"maxGraphemes": 256,
"maxLength": 2560,
"type": "string"
},
"frequency": {
"description": "How often it recurs.",
"knownValues": [
"daily",
"as_needed",
"weekly",
"monthly"
],
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"mealTiming": {
"description": "When the medication is taken in relation to a meal.",
"knownValues": [
"before_meal",
"with_meal",
"after_meal",
"empty_stomach"
],
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"name": {
"description": "The name of the medication taken.",
"maxGraphemes": 256,
"maxLength": 2560,
"type": "string"
},
"notes": {
"description": "An additional note.",
"maxGraphemes": 3000,
"maxLength": 30000,
"type": "string"
},
"purpose": {
"description": "The reason for taking the medication, or the symptom it targets.",
"maxGraphemes": 3000,
"maxLength": 30000,
"type": "string"
},
"status": {
"description": "The status of taking the medication.",
"knownValues": [
"active",
"stopped",
"planned",
"paused",
"completed"
],
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"time": {
"closed": true,
"description": "The point in time or period over which the medication is taken.",
"refs": [
"ai.newnal.mydata.defs#instantTime",
"ai.newnal.mydata.defs#intervalTime"
],
"type": "union"
},
"timeCertainty": {
"description": "Whether time is exact or approximate. When it is approximate and time is a period, the period gives the earliest and the latest the value may be, not how long it lasted.",
"knownValues": [
"exact",
"approximate"
],
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"timesOfDay": {
"description": "List of the times of day the medication is taken at.",
"items": {
"description": "One item of the list of the times of day the medication is taken at.",
"knownValues": [
"morning",
"midday",
"evening",
"bedtime"
],
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"maxLength": 100,
"type": "array"
},
"timesPerDay": {
"description": "The number of times the medication is taken in a day.",
"maximum": 24,
"minimum": 1,
"type": "integer"
},
"treats": {
"description": "List of the AT-URIs of the health condition, symptom or allergy records this medication is taken for.",
"items": {
"description": "One item of the list of the AT-URIs of the health condition, symptom or allergy records this medication is taken for.",
"format": "at-uri",
"type": "string"
},
"maxLength": 100,
"type": "array"
}
},
"type": "object"
},
"main": {
"description": "Medications taken, with their purpose, dosage and status. The health conditions and symptoms treated with the medications are kept in health.healthStatus, and allergies in health.allergies.",
"key": "any",
"record": {
"properties": {
"_meta": {
"ref": "ai.newnal.mydata.defs#recordMeta",
"type": "ref"
},
"data": {
"closed": true,
"refs": [
"#section",
"#entry"
],
"type": "union"
}
},
"required": [
"data",
"_meta"
],
"type": "object"
},
"type": "record"
},
"section": {
"description": "Medications taken, with their purpose, dosage and status. The health conditions and symptoms treated with the medications are kept in health.healthStatus, and allergies in health.allergies.",
"properties": {
"noneKnown": {
"description": "True when, as far as is known, the user takes no medication. It is a statement, not the absence of one: a section with no item and without this key says nothing either way. It is removed when an item is added.",
"type": "boolean"
}
},
"type": "object"
}
},
"id": "ai.newnal.mydata.healthMedications",
"lexicon": 1
}