health
type: Ontology
identifier: health
version: 0.1.0
description: Health domain ontology: general clinical-record data (HL7 FHIR core resources) and functioning classification (WHO ICF)
has namespace:
  semantic memory: semantic
  episodic memory: episodic
defines entity type: patient
defines entity type: condition
defines entity type: fhir-observation
defines entity type: encounter
defines entity type: procedure
defines entity type: allergy-intolerance
defines entity type: diagnostic-report
defines entity type: clinical-diagnosis
defines entity type: diagnosis-extension-qualifier
defines entity type: body-function
defines entity type: body-structure
defines entity type: activity-participation-domain
defines entity type: environmental-factor
discovery config:
  discovery enabled: true
  confidence threshold: 0.8
  has discovery pattern: https://mif-spec.dev/ns/pattern/0
  has discovery pattern: https://mif-spec.dev/ns/pattern/1
  has discovery pattern: https://mif-spec.dev/ns/pattern/2
  has discovery pattern: https://mif-spec.dev/ns/pattern/3
  has discovery pattern: https://mif-spec.dev/ns/pattern/4
  has discovery pattern: https://mif-spec.dev/ns/pattern/5

semantic
type: Namespace
has child namespace:
  health-classification: health-classification
  health-functioning: health-functioning

health-classification
type: Namespace
description: ICD-11 diagnosis classification
type hint: semantic

health-functioning
type: Namespace
description: ICF functioning, disability, and health classification
type hint: semantic

episodic
type: Namespace
has child namespace:
  health-clinical-record: health-clinical-record

health-clinical-record
type: Namespace
description: FHIR-shaped clinical record data
type hint: episodic

patient
type: EntityType
base type: SemanticMemory
description: The subject of a health record
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/versioned
subtype of: clinical-record-subject
schema.org:
  required: patient_id
  properties:
    patient id:
      type: string
    name:
      type: string
    birth date:
      type: string
      format: date
    gender:
      type: string
    identifiers:
      type: array
      items:
        type: string

condition
type: EntityType
base type: SemanticMemory
description: A clinical condition, problem, diagnosis, or other event
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
schema.org:
  required: condition_id
  required: code
  properties:
    condition id:
      type: string
    code:
      type: string
    clinical status:
      type: string
    onset date:
      type: string
      format: date
    subject ref:
      type: string

fhir-observation
type: EntityType
base type: EpisodicMemory
description: A measured or asserted clinical datum. Named fhir-observation, not observation: research.ontology.yaml (an ancestor of this ontology via clinical-health-base) already defines its own, incompatible observation entity type, and the JSON-LD projection uses global ids (mif:entityType/<name>) that would collide
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/measured
subtype of: clinical-observation
schema.org:
  required: observation_id
  required: code
  required: value
  properties:
    observation id:
      type: string
    code:
      type: string
    value:
      type: string
    unit:
      type: string
    effective time:
      type: string
      format: date-time
    subject ref:
      type: string

encounter
type: EntityType
base type: EpisodicMemory
description: An interaction between a patient and healthcare provider(s)
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
subtype of: clinical-encounter
schema.org:
  required: encounter_id
  required: status
  properties:
    encounter id:
      type: string
    status:
      type: string
    class:
      type: string
    period:
      type: string
    subject ref:
      type: string

procedure
type: EntityType
base type: EpisodicMemory
description: An action performed on or for a patient
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
schema.org:
  required: procedure_id
  required: code
  properties:
    procedure id:
      type: string
    code:
      type: string
    status:
      type: string
    performed date:
      type: string
      format: date
    subject ref:
      type: string

allergy-intolerance
type: EntityType
base type: SemanticMemory
description: An allergy or intolerance record
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
schema.org:
  required: allergy_id
  required: substance
  properties:
    allergy id:
      type: string
    substance:
      type: string
    criticality:
      type: string
    reaction:
      type: string
    subject ref:
      type: string

diagnostic-report
type: EntityType
base type: EpisodicMemory
description: A report of diagnostic results
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/documented
schema.org:
  required: report_id
  required: status
  properties:
    report id:
      type: string
    status:
      type: string
    code:
      type: string
    result refs:
      type: array
      items:
        type: string
    conclusion:
      type: string

clinical-diagnosis
type: EntityType
base type: SemanticMemory
description: The general ICD-11 stem-code / Foundation category diagnosis shape
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/versioned
defines trait: mif:trait/categorized
subtype of: diagnostic-classification-entry
schema.org:
  required: stem_code
  required: title
  properties:
    stem code:
      type: string
    title:
      type: string
    chapter:
      type: string
    foundation uri:
      type: string
      format: uri

diagnosis-extension-qualifier
type: EntityType
base type: SemanticMemory
description: An ICD-11 extension or cluster code qualifying a diagnosis stem code
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
subtype of: diagnostic-classification-entry
schema.org:
  required: extension_code
  required: stem_code
  required: title
  properties:
    extension code:
      type: string
    stem code:
      type: string
      description: Renamed from qualifies_stem to match diagnostic-classification-entry's field name directly: the stem code this qualifier attaches to
    dimension type:
      type: string
    title:
      type: string
      description: A human-readable label for this specific qualifier (e.g. 'Severe'), distinct from dimension_type (which axis it qualifies: severity, temporality, etiology, etc.)

body-function
type: EntityType
base type: SemanticMemory
description: A physiological body function classification
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
defines trait: mif:trait/scored
schema.org:
  required: chapter_code
  required: title
  properties:
    chapter code:
      type: string
    title:
      type: string
    impairment qualifier:
      type: string

body-structure
type: EntityType
base type: SemanticMemory
description: An anatomical body structure classification
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
defines trait: mif:trait/scored
schema.org:
  required: chapter_code
  required: title
  properties:
    chapter code:
      type: string
    title:
      type: string
    impairment qualifier:
      type: string

activity-participation-domain
type: EntityType
base type: SemanticMemory
description: A functioning/participation classification domain
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
defines trait: mif:trait/scored
schema.org:
  required: domain_code
  required: title
  properties:
    domain code:
      type: string
    title:
      type: string
    performance qualifier:
      type: string
    capacity qualifier:
      type: string

environmental-factor
type: EntityType
base type: SemanticMemory
description: An environmental-context classification factor
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
schema.org:
  required: chapter_code
  required: title
  properties:
    chapter code:
      type: string
    title:
      type: string
    barrier or facilitator qualifier:
      type: string

https://mif-spec.dev/ns/pattern/0
type: DiscoveryPattern
content pattern: \b(ICD-11|diagnosis code|diagnostic classification)\b
suggests entity type: clinical-diagnosis
suggests namespace: _semantic/health-classification

https://mif-spec.dev/ns/pattern/1
type: DiscoveryPattern
content pattern: \b(body function|ICF b[1-8]|impairment of function)\b
suggests entity type: body-function
suggests namespace: _semantic/health-functioning

https://mif-spec.dev/ns/pattern/2
type: DiscoveryPattern
content pattern: \b(activities of daily living|ICF d[1-9]|participation restriction)\b
suggests entity type: activity-participation-domain
suggests namespace: _semantic/health-functioning

https://mif-spec.dev/ns/pattern/3
type: DiscoveryPattern
content pattern: \b(FHIR Patient|patient record|demographics)\b
suggests entity type: patient
suggests namespace: _episodic/health-clinical-record

https://mif-spec.dev/ns/pattern/4
type: DiscoveryPattern
content pattern: \b(FHIR Observation|vital sign|lab result|clinical measurement)\b
suggests entity type: fhir-observation
suggests namespace: _episodic/health-clinical-record

https://mif-spec.dev/ns/pattern/5
type: DiscoveryPattern
content pattern: \b(clinical encounter|inpatient admission|outpatient visit)\b
suggests entity type: encounter
suggests namespace: _episodic/health-clinical-record