PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility CLOSED { a [fhir:EpisodeOfCare]; fhir:nodeRole [fhir:treeRoot]?; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:DomainResource.text @?; # Text summary of the resource, for # human interpretation fhir:DomainResource.contained @*; # Contained, inline Resources fhir:DomainResource.extension @*; # Additional content defined by # implementations fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored fhir:EpisodeOfCare.identifier @*; # Business Identifier(s) relevant # for this EpisodeOfCare fhir:EpisodeOfCare.status @ AND {fhir:value @fhirvs:episode-of-care-status}; # planned | waitlist | active | # onhold | finished | cancelled | # entered-in-error fhir:EpisodeOfCare.statusHistory @*; # Past list of status codes (the # current status may be included to # cover the start date of the # status) fhir:EpisodeOfCare.type @*; # Type/class - e.g. specialist # referral, disease management fhir:EpisodeOfCare.diagnosis @*; # The list of diagnosis relevant to # this episode of care fhir:EpisodeOfCare.patient @; # The patient who is the focus of # this episode of care fhir:EpisodeOfCare.managingOrganization @?; # Organization that assumes care fhir:EpisodeOfCare.period @?; # Interval during responsibility is # assumed fhir:EpisodeOfCare.referralRequest @*; # Originating Referral Request(s) fhir:EpisodeOfCare.careManager @?; # Care manager/care coordinator for # the patient fhir:EpisodeOfCare.team @*; # Other practitioners facilitating # this episode of care fhir:EpisodeOfCare.account @*; # The set of accounts that may be # used for billing for this # EpisodeOfCare fhir:index xsd:integer? # Relative position in a list } # The list of diagnosis relevant to this episode of care CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:EpisodeOfCare.diagnosis.condition @; # Conditions/problems/diagnoses this # episode of care is for fhir:EpisodeOfCare.diagnosis.role @?; # Role that this diagnosis has # within the episode of care (e.g. # admission, billing, discharge …) fhir:EpisodeOfCare.diagnosis.rank @?; # Ranking of the diagnosis (for each # role type) fhir:index xsd:integer? # Relative position in a list } # Past list of status codes (the current status may be included to cover the start date of the status) CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:EpisodeOfCare.statusHistory.status @ AND {fhir:value @fhirvs:episode-of-care-status}; # planned | waitlist | active | # onhold | finished | cancelled | # entered-in-error fhir:EpisodeOfCare.statusHistory.period @; # Duration the EpisodeOfCare was in # the specified status fhir:index xsd:integer? # Relative position in a list } #---------------------- Data Types ------------------- # Optional Extensions Element CLOSED { fhir:Element.id id?; fhir:Element.extension @*; fhir:Extension.url uri; ( fhir:Extension.valueBase64Binary @ | fhir:Extension.valueBoolean @ | fhir:Extension.valueCanonical @ | fhir:Extension.valueCode @ | fhir:Extension.valueDate @ | fhir:Extension.valueDateTime @ | fhir:Extension.valueDecimal @ | fhir:Extension.valueId @ | fhir:Extension.valueInstant @ | fhir:Extension.valueInteger @ | fhir:Extension.valueMarkdown @ | fhir:Extension.valueOid @ | fhir:Extension.valuePositiveInt @ | fhir:Extension.valueString @ | fhir:Extension.valueTime @