Skip to content

Commit ba24828

Browse files
committed
deploy ddfbaac (ddfbaac)
1 parent 6f0169d commit ba24828

9 files changed

Lines changed: 1861 additions & 161 deletions

File tree

eventTypes.json

Lines changed: 120 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,9 +1903,22 @@
19031903
"incomplete",
19041904
"withdrawal",
19051905
"condom",
1906-
"cervical-barrier"
1906+
"cervical-barrier",
1907+
"protected"
19071908
]
19081909
},
1910+
"ratio/proportion": {
1911+
"description": "A proportion value from 0 to 1. Represents a fraction of a whole: 0 = none, 1 = maximum. Used for subjective scales (e.g. bleeding intensity) where reference points are defined by item options.",
1912+
"type": "number",
1913+
"minimum": 0,
1914+
"maximum": 1
1915+
},
1916+
"test-result/scale": {
1917+
"description": "Generic qualitative test result on a scale from -1 to 1. Negative values indicate a negative result, 0 indicates indeterminate, positive values indicate a positive result. The magnitude represents intensity or confidence. Common values: -1 (negative), 0 (indeterminate), 1 (positive). Intermediate values can represent semi-quantitative results (e.g., 0.5 for a weak positive). Applicable to any binary or semi-quantitative test: medical (OPK, pregnancy, COVID), environmental, industrial, etc.",
1918+
"type": "number",
1919+
"minimum": -1,
1920+
"maximum": 1
1921+
},
19091922
"pregnancy/detailed": {
19101923
"description": "Pregnancy. The value of `event.time` should indicate the start of pregnancy. When content value is 'ongoing' `event.duration` must be set to `null`. For any other value `event.duration` should be set to indicate when the pregnancy state terminated.",
19111924
"type": "string",
@@ -1919,41 +1932,59 @@
19191932
]
19201933
},
19211934
"medication/basic": {
1922-
"description": "Simple medication based on name and eventual coding",
1935+
"description": "Simple medication intake identified by free-text name. 'intake' follows the same structure as medication/coded-v1 for dose and route.",
19231936
"type": "object",
19241937
"required": [
1925-
"label"
1938+
"name"
19261939
],
19271940
"properties": {
19281941
"name": {
1929-
"description": "The name of product",
1942+
"description": "Free-text name of the medication",
19301943
"type": "string"
19311944
},
1932-
"doseMg": {
1933-
"description": "The dosage in milligrams",
1934-
"type": "number"
1935-
},
1936-
"frequencyHours": {
1937-
"description": "Frequency in Hours. If non null, 'event.duration' should reflect the full period, otherwise it reflects one intake",
1938-
"type": "number"
1939-
},
1940-
"codes": {
1941-
"type": "array",
1942-
"items": {
1943-
"type": "object",
1944-
"required": [
1945-
"system",
1946-
"content"
1947-
],
1948-
"properties": {
1949-
"system": {
1950-
"description": "The system code for HDS",
1951-
"type": "string"
1952-
},
1953-
"content": {
1954-
"description": "Accordingly to the norm, appropriate content for coding",
1955-
"type": "object"
1956-
}
1945+
"intake": {
1946+
"description": "User-entered intake regimen",
1947+
"type": "object",
1948+
"properties": {
1949+
"doseValue": {
1950+
"description": "Amount per intake (e.g. 2 for '2 tablets', 5 for '5 mL')",
1951+
"type": "number"
1952+
},
1953+
"doseUnit": {
1954+
"description": "HDS eventType reference for the dose unit",
1955+
"type": "string",
1956+
"enum": [
1957+
"dose/tablet",
1958+
"dose/drop",
1959+
"dose/puff",
1960+
"dose/application",
1961+
"dose/suppository",
1962+
"dose/unit",
1963+
"volume/ml",
1964+
"mass/mg",
1965+
"mass/mcg",
1966+
"mass/g"
1967+
]
1968+
},
1969+
"route": {
1970+
"description": "Route of administration",
1971+
"type": "string",
1972+
"enum": [
1973+
"oral",
1974+
"sublingual",
1975+
"parenteral",
1976+
"intravenous",
1977+
"intramuscular",
1978+
"subcutaneous",
1979+
"inhalation",
1980+
"nasal",
1981+
"topical",
1982+
"transdermal",
1983+
"ophthalmic",
1984+
"otic",
1985+
"rectal",
1986+
"vaginal"
1987+
]
19571988
}
19581989
}
19591990
}
@@ -2323,6 +2354,66 @@
23232354
"contact/display-name": {
23242355
"description": "User display name",
23252356
"type": "string"
2357+
},
2358+
"cervix-position/3d-vectors": {
2359+
"description": "Cervical position observation as three 0–1 vectors: height (low→high), firmness (firm→soft), openness (closed→open). Each dimension follows the fertility direction (0 = least fertile, 1 = most fertile).",
2360+
"type": "object",
2361+
"properties": {
2362+
"height": {
2363+
"description": "Cervix height: 0 = low, 0.5 = medium, 1 = high",
2364+
"type": "number",
2365+
"minimum": 0,
2366+
"maximum": 1
2367+
},
2368+
"firmness": {
2369+
"description": "Cervix firmness: 0 = firm, 0.5 = medium, 1 = soft",
2370+
"type": "number",
2371+
"minimum": 0,
2372+
"maximum": 1
2373+
},
2374+
"openness": {
2375+
"description": "Cervical os openness: 0 = closed, 0.5 = medium, 1 = open",
2376+
"type": "number",
2377+
"minimum": 0,
2378+
"maximum": 1
2379+
}
2380+
}
2381+
},
2382+
"mood/5d-vectors": {
2383+
"description": "Mood observation as five 0–1 dimensional vectors based on Russell's Circumplex and PAD models. Valence (unpleasant→pleasant), arousal (calm→activated), dominance (powerless→in-control), social orientation (self→other-focused), temporal focus (past→future).",
2384+
"type": "object",
2385+
"properties": {
2386+
"valence": {
2387+
"description": "Pleasure/displeasure: 0 = very unpleasant, 0.5 = neutral, 1 = very pleasant",
2388+
"type": "number",
2389+
"minimum": 0,
2390+
"maximum": 1
2391+
},
2392+
"arousal": {
2393+
"description": "Energy/activation: 0 = very calm, 0.5 = moderate, 1 = very activated",
2394+
"type": "number",
2395+
"minimum": 0,
2396+
"maximum": 1
2397+
},
2398+
"dominance": {
2399+
"description": "Sense of control: 0 = powerless, 0.5 = neutral, 1 = in control",
2400+
"type": "number",
2401+
"minimum": 0,
2402+
"maximum": 1
2403+
},
2404+
"socialOrientation": {
2405+
"description": "Social focus: 0 = self-focused, 0.5 = balanced, 1 = other-focused",
2406+
"type": "number",
2407+
"minimum": 0,
2408+
"maximum": 1
2409+
},
2410+
"temporalFocus": {
2411+
"description": "Time orientation: 0 = past-dwelling, 0.5 = present, 1 = future-anticipating",
2412+
"type": "number",
2413+
"minimum": 0,
2414+
"maximum": 1
2415+
}
2416+
}
23262417
}
23272418
},
23282419
"extras": {

0 commit comments

Comments
 (0)