FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packageca.on.mha.pds
Resource TypeStructureDefinition
IdStructureDefinition.ca-on-mha-profile-EpisodeOfCare.json
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=ca.on.mha.pds@2.0.0-snapshot17&canonical=http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-episodeofcare
URLhttp://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-episodeofcare
Version2.0.0
Statusactive
Date2025-05-17T20:17:06.3613088+00:00
NameEpisodeOfCare
TitleMHA EpisodeOfCare
TypeEpisodeOfCare
Kindresource

Resources that use this resource

No resources found


Resources that this resource uses

StructureDefinition
ca.on.oh.mha-pds#0.9.0-alpha-1.9.7.38ca-on-ext-InitialAssessmentDateInitialAssessmentDate
ca.on.oh.mha-pds#0.9.0-alpha-1.9.7.38ca-on-ext-ServiceInitiationDateServiceInitiationDate
ca.on.oh.mha-pds#0.9.0-alpha-1.9.7.38ca-on-ext-eligibilityScreeningDateEligibilityScreeningDate
ca.on.oh.mha-pds#0.9.0-alpha-1.9.7.38ca-on-mha-profile-organizationMHA Organization Profile
ca.on.oh.mha-pds#0.9.0-alpha-1.9.7.38ca-on-mha-profile-patientMHA Patient Profile
ca.on.mha.pds#2.0.0-snapshot17ca-on-mha-profile-servicerequestMHA ServiceRequest Profile
ca.on.oh.mha-pds#0.9.0-alpha-1.9.7.38ca-on-ext-ServiceTerminationReasonServiceTerminationReason
ca.on.oh.mha-pds#0.9.0-alpha-1.9.7.38ca-on-mha-ext-FirstContactDateFirstContactDate
ValueSet
ca.on.oh.mha-pds#0.9.0-alpha-1.9.7.38EpisodeOfCare-identifier-systemEpisodeOfCareIdentifierValueSet

Narrative

No narrative content found in resource


Source1

{
  "resourceType": "StructureDefinition",
  "url": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-episodeofcare",
  "version": "2.0.0",
  "name": "EpisodeOfCare",
  "title": "MHA EpisodeOfCare",
  "status": "active",
  "date": "2025-05-17T20:17:06.3613088+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "MHA-PDS-Mapping",
      "name": "MHA PDS Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "EpisodeOfCare",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "EpisodeOfCare",
        "path": "EpisodeOfCare",
        "constraint": [
          {
            "key": "mha-eoc-key-1",
            "severity": "error",
            "human": "Service Termination Date SHALL be present when Service Termination Reason is present",
            "expression": "status.extension('https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason').exists() = period.end.exists()"
          },
          {
            "key": "mha-eoc-key-2",
            "severity": "error",
            "human": "Service Termination Date SHALL be present when status is 'finished'",
            "expression": "status = 'finished' implies period.end.exists()"
          },
          {
            "key": "mha-eoc-key-3",
            "severity": "error",
            "human": "If status is 'active' and both service enrollment date and service initiation     date are present, service initiation date must be equal to or after the service enrollment date",
            "expression": "status = 'active' implies (period.start.exists().not() or extension.where(url = 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceInitiationDate').exists().not() or period.start.toString().substring(0,10) <= extension.where(url = 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceInitiationDate').value.toString().substring(0,10))"
          },
          {
            "key": "mha-eoc-key-4",
            "severity": "error",
            "human": "If status is 'active', at least one of service enrollment date or service initiation date SHALL be present",
            "expression": "status = 'active' implies (period.start.exists() or extension.where(url = 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceInitiationDate').exists())"
          },
          {
            "key": "mha-eoc-key-5",
            "severity": "error",
            "human": "If status is 'cancelled' or 'finished', service termination date and termination reason SHALL be present",
            "expression": "status in ('cancelled'|'finished') implies period.end.exists() and status.extension('https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason').exists()"
          },
          {
            "key": "mha-eoc-key-6",
            "severity": "error",
            "human": "Service enrollment or service initiation date SHALL only exist when status is 'active' or 'finished'",
            "expression": "status in ('active'|'finished') implies period.start.exists() or extension('http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceInitiationDate').exists()"
          },
          {
            "key": "mha-eoc-key-7",
            "severity": "error",
            "human": "If status is 'planned', Service enrollment and service initiation date SHALL not be provided",
            "expression": "status = 'planned' implies period.start.exists().not() and extension('http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceInitiationDate').exists().not()"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "MHA-PDS-Mapping",
            "map": "MHA-PDS-Mapping"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.meta",
        "path": "EpisodeOfCare.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.meta.profile",
        "path": "EpisodeOfCare.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-episodeofcare",
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.extension:FirstContactDate",
        "path": "EpisodeOfCare.extension",
        "sliceName": "FirstContactDate",
        "definition": "The date the client first experienced contact with an HSP regarding a specific program",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-FirstContactDate"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.extension:EligibilityScreeningDate",
        "path": "EpisodeOfCare.extension",
        "sliceName": "EligibilityScreeningDate",
        "definition": "The date at which an eligibility determination is done by HSP  and client is accepted (eligible) or not accepted (ineligible) into program/service .",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-eligibilityScreeningDate"
            ]
          }
        ]
      },
      {
        "id": "EpisodeOfCare.extension:EligibilityScreeningDate.value[x]",
        "path": "EpisodeOfCare.extension.value[x]",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "MHA-PDS-Mapping",
            "map": "Eligibility Screening Date"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.extension:ServiceInitiationDate",
        "path": "EpisodeOfCare.extension",
        "sliceName": "ServiceInitiationDate",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceInitiationDate"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.extension:InitialAssessmentDate",
        "path": "EpisodeOfCare.extension",
        "sliceName": "InitialAssessmentDate",
        "definition": "The date the client completed an initial assessment for a service",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-InitialAssessmentDate"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.extension:InitialAssessmentDate.value[x]",
        "path": "EpisodeOfCare.extension.value[x]",
        "mapping": [
          {
            "identity": "MHA-PDS-Mapping",
            "map": "Initial Assessment Date"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.identifier",
        "path": "EpisodeOfCare.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.identifier.system",
        "path": "EpisodeOfCare.identifier.system",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "The identifier URIs for patient episode of care",
          "valueSet": "http://ontariohealth.ca/fhir/ValueSet/mha/EpisodeOfCare-identifier-system"
        }
      },
      {
        "id": "EpisodeOfCare.identifier.value",
        "path": "EpisodeOfCare.identifier.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "MHA-PDS-Mapping",
            "map": "Episode of Care Identifier"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.status",
        "path": "EpisodeOfCare.status",
        "constraint": [
          {
            "key": "status-key-1",
            "severity": "error",
            "human": "Service Termination Reason must be provided only when EOC status is \"finished\" or \"cancelled\"",
            "expression": "value in ('finished' | 'cancelled') implies $this.extension('https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason').exists()"
          },
          {
            "key": "status-key-2",
            "severity": "error",
            "human": "When service is terminated and termination reason is present, outbound referral source SHALL be empty when continuity indicates no further service planned",
            "expression": "(value = 'finished' and $this.extension.extension('continuity').value.code ='3') implies $this.extension.extension('outbound-referral-source').empty()"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "MHA-PDS-Mapping",
            "map": "Health Service Status"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.status.extension:serviceTerminationReason",
        "path": "EpisodeOfCare.status.extension",
        "sliceName": "serviceTerminationReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason"
            ]
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "EpisodeOfCare.patient",
        "path": "EpisodeOfCare.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.patient.reference",
        "path": "EpisodeOfCare.patient.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.managingOrganization",
        "path": "EpisodeOfCare.managingOrganization",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-organization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.managingOrganization.reference",
        "path": "EpisodeOfCare.managingOrganization.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.period",
        "path": "EpisodeOfCare.period",
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.period.start",
        "path": "EpisodeOfCare.period.start",
        "definition": "The start of the period. The boundary is inclusive.\r\n\r\nThe date the HSP deems the client eligible for  treatment and enrolled in the service.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "MHA-PDS-Mapping",
            "map": "Service Enrollment Date"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.period.end",
        "path": "EpisodeOfCare.period.end",
        "comment": "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.\r\n\r\nThe date when the client's need for service has ended or as per the HSP service termination criteria",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "MHA-PDS-Mapping",
            "map": "Service Termination Date"
          }
        ]
      },
      {
        "id": "EpisodeOfCare.referralRequest",
        "path": "EpisodeOfCare.referralRequest",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-servicerequest"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.referralRequest.reference",
        "path": "EpisodeOfCare.referralRequest.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "EpisodeOfCare.account",
        "path": "EpisodeOfCare.account",
        "max": "1"
      }
    ]
  }
}