full diff

ai.newnal.mydata.healthMedications

From
bafyreidhdxgbbreh6ud3xtdazv5al2kb5qtw7pasqbg3qygj45hkow6w54 indexed 2026-11-24 04:23 UTC View this version
To
bafyreieqyoebnwrlcwbgvh27aa5ihjvvxy5tapwu2sh5qveih42hfisz7y indexed 2026-11-24 11:45 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "entry": {
55 "description": "One medication taken.",
66 "properties": {
77 "codes": {
88 "description": "List of the codes for the medication in standard classifications (for example RxNorm or ATC).",
99 "items": {
1010 "description": "One item of the list of the codes for the medication in standard classifications (for example RxNorm or ATC).",
1111 "ref": "ai.newnal.mydata.defs#coding",
1212 "type": "ref"
1313 },
1414 "maxLength": 20,
1515 "type": "array"
1616 },
1717 "daysOfWeek": {
1818 "description": "List of the weekdays the medication is taken on. Omit it when it is taken every day.",
1919 "items": {
2020 "description": "One item of the list of the weekdays the medication is taken on.",
2121 "ref": "ai.newnal.mydata.defs#weekday",
2222 "type": "ref"
2323 },
2424 "maxLength": 7,
2525 "type": "array"
2626 },
2727 "dosage": {
2828 "description": "The dosage of the medication.",
2929 "maxGraphemes": 256,
3030 "maxLength": 2560,
3131 "type": "string"
3232 },
3333 "frequency": {
3434 "description": "How often it recurs.",
3535 "knownValues": [
3636 "daily",
3737 "as_needed",
3838 "weekly",
3939 "monthly"
4040 ],
4141 "maxGraphemes": 64,
4242 "maxLength": 640,
4343 "type": "string"
4444 },
4545 "mealTiming": {
4646 "description": "When the medication is taken in relation to a meal.",
4747 "knownValues": [
4848 "before_meal",
4949 "with_meal",
5050 "after_meal",
5151 "empty_stomach"
5252 ],
5353 "maxGraphemes": 64,
5454 "maxLength": 640,
5555 "type": "string"
5656 },
5757 "name": {
5858 "description": "The name of the medication taken.",
5959 "maxGraphemes": 256,
6060 "maxLength": 2560,
6161 "type": "string"
6262 },
6363 "notes": {
6464 "description": "An additional note.",
6565 "maxGraphemes": 3000,
6666 "maxLength": 30000,
6767 "type": "string"
6868 },
6969 "purpose": {
7070 "description": "The reason for taking the medication, or the symptom it targets.",
7171 "maxGraphemes": 3000,
7272 "maxLength": 30000,
7373 "type": "string"
7474 },
7575 "status": {
7676 "description": "The status of taking the medication.",
7777 "knownValues": [
7878 "active",
7979 "stopped",
8080 "planned",
8181 "paused",
8282 "completed"
8383 ],
8484 "maxGraphemes": 64,
8585 "maxLength": 640,
8686 "type": "string"
8787 },
8888 "time": {
8989 "closed": true,
90 "description": "The point in time or period over which the medication is taken.",
90 "description": "The point in time or period over which the medication is taken. When it is a period, endAt is left out both while the medication is still taken and when the end is not known; status says which (active: still taken; stopped or completed: ended).",
9191 "refs": [
9292 "ai.newnal.mydata.defs#instantTime",
9393 "ai.newnal.mydata.defs#intervalTime"
9494 ],
9595 "type": "union"
9696 },
9797 "timeCertainty": {
98 "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.",
98 "description": "Whether the start and end of time are exact or approximate. The period is still the time over which the medication is taken.",
9999 "knownValues": [
100100 "exact",
101101 "approximate"
102102 ],
103103 "maxGraphemes": 64,
104104 "maxLength": 640,
105105 "type": "string"
106106 },
107107 "timesOfDay": {
108108 "description": "List of the times of day the medication is taken at.",
109109 "items": {
110110 "description": "One item of the list of the times of day the medication is taken at.",
111111 "knownValues": [
112112 "morning",
113113 "midday",
114114 "evening",
115115 "bedtime"
116116 ],
117117 "maxGraphemes": 64,
118118 "maxLength": 640,
119119 "type": "string"
120120 },
121121 "maxLength": 100,
122122 "type": "array"
123123 },
124124 "timesPerDay": {
125125 "description": "The number of times the medication is taken in a day.",
126126 "maximum": 24,
127127 "minimum": 1,
128128 "type": "integer"
129129 },
130130 "treats": {
131131 "description": "List of the AT-URIs of the health condition, symptom or allergy records this medication is taken for.",
132132 "items": {
133133 "description": "One item of the list of the AT-URIs of the health condition, symptom or allergy records this medication is taken for.",
134134 "format": "at-uri",
135135 "type": "string"
136136 },
137137 "maxLength": 100,
138138 "type": "array"
139139 }
140140 },
141141 "type": "object"
142142 },
143143 "main": {
144144 "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.",
145145 "key": "any",
146146 "record": {
147147 "properties": {
148148 "_meta": {
149149 "ref": "ai.newnal.mydata.defs#recordMeta",
150150 "type": "ref"
151151 },
152152 "data": {
153153 "closed": true,
154154 "refs": [
155155 "#section",
156156 "#entry"
157157 ],
158158 "type": "union"
159159 }
160160 },
161161 "required": [
162162 "data",
163163 "_meta"
164164 ],
165165 "type": "object"
166166 },
167167 "type": "record"
168168 },
169169 "section": {
170170 "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.",
171171 "properties": {
172172 "noneKnown": {
173173 "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.",
174174 "type": "boolean"
175175 }
176176 },
177177 "type": "object"
178178 }
179179 },
180180 "id": "ai.newnal.mydata.healthMedications",
181181 "lexicon": 1
182182}

Compare other versions