clinical-health-base
type: Ontology
identifier: clinical-health-base
version: 0.1.0
description: Shared clinical supertypes — the MIF-compliant intermediate layer cardiology, health, and fitness extend
has namespace:
  semantic memory: semantic
  episodic memory: episodic
defines entity type: clinical-record-subject
defines entity type: clinical-encounter
defines entity type: clinical-observation
defines entity type: diagnostic-classification-entry
discovery config:
  discovery enabled: false
  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

semantic
type: Namespace
has child namespace:
  clinical-records: clinical-records

clinical-records
type: Namespace
description: Clinical record subjects and diagnostic classification shapes
type hint: semantic

episodic
type: Namespace
has child namespace:
  clinical-events: clinical-events

clinical-events
type: Namespace
description: Clinical encounters and observations
type hint: episodic

clinical-record-subject
type: EntityType
base type: SemanticMemory
description: The subject-of-record for a clinical encounter, observation, or diagnosis — the FHIR Patient-shaped entity domain packs reference rather than re-minting their own subject type
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/versioned
schema.org:
  required: patient_id
  properties:
    patient id:
      type: string
      description: Stable subject identifier
    name:
      type: string
    birth date:
      type: string
      format: date
    gender:
      type: string
    identifiers:
      type: array
      items:
        type: string

clinical-encounter
type: EntityType
base type: EpisodicMemory
description: A time-bound clinical interaction — the FHIR Encounter-shaped entity a clinical activity (a study, a procedure, a prescription) occurs within
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/categorized
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
      description: Reference to the clinical-record-subject this encounter concerns

clinical-observation
type: EntityType
base type: EpisodicMemory
description: A measurement-or-assertion primitive about a clinical-record-subject — the FHIR Observation-shaped entity that is the single strongest cross-pack convergence in the clinical domain: health's own Observation reuse, cardiology's structured study/finding bundles, and fitness's device-sourced vital-sign readings are all specializations of this one shape
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/measured
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
      description: Reference to the clinical-record-subject this observation concerns
    modality:
      type: string
      description: Imaging or acquisition modality, where applicable (cardiology extension)
    member measurements:
      type: array
      items:
        type: object
      description: Component measurements bundled within a structured study (cardiology extension)

diagnostic-classification-entry
type: EntityType
base type: SemanticMemory
description: A WHO ICD-11 stem-code or extension-code classification entry — the shape health's general diagnosis classification and cardiology's chapter-11-scoped circulatory disease types both instantiate
defines trait: mif:trait/cited
defines trait: mif:trait/dated
defines trait: mif:trait/versioned
defines trait: mif:trait/categorized
schema.org:
  required: stem_code
  required: title
  properties:
    stem code:
      type: string
    title:
      type: string
    chapter:
      type: string
    foundation uri:
      type: string
      format: uri

https://mif-spec.dev/ns/pattern/0
type: DiscoveryPattern
content pattern: \b(FHIR Patient|patient record|subject of record)\b
suggests entity type: clinical-record-subject
suggests namespace: _semantic/clinical-records

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

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

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