|
1903 | 1903 | "incomplete", |
1904 | 1904 | "withdrawal", |
1905 | 1905 | "condom", |
1906 | | - "cervical-barrier" |
| 1906 | + "cervical-barrier", |
| 1907 | + "protected" |
1907 | 1908 | ] |
1908 | 1909 | }, |
| 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 | + }, |
1909 | 1922 | "pregnancy/detailed": { |
1910 | 1923 | "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.", |
1911 | 1924 | "type": "string", |
|
1919 | 1932 | ] |
1920 | 1933 | }, |
1921 | 1934 | "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.", |
1923 | 1936 | "type": "object", |
1924 | 1937 | "required": [ |
1925 | | - "label" |
| 1938 | + "name" |
1926 | 1939 | ], |
1927 | 1940 | "properties": { |
1928 | 1941 | "name": { |
1929 | | - "description": "The name of product", |
| 1942 | + "description": "Free-text name of the medication", |
1930 | 1943 | "type": "string" |
1931 | 1944 | }, |
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 | + ] |
1957 | 1988 | } |
1958 | 1989 | } |
1959 | 1990 | } |
|
2323 | 2354 | "contact/display-name": { |
2324 | 2355 | "description": "User display name", |
2325 | 2356 | "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 | + } |
2326 | 2417 | } |
2327 | 2418 | }, |
2328 | 2419 | "extras": { |
|
0 commit comments