<CapabilityStatement xmlns="http://hl7.org/fhir">
  <id value="ca-on-eReferral-SMARTApp" />
  <url value="http://ehealthontario.ca/fhir/CapabilityStatement/ca-on-eReferral-SMARTApp" />
  <version value="0.10.1" />
  <name value="SMARTApp" />
  <title value="SMART App" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2021-07-15" />
  <description value="This is the FHIR capability statement for an Ontario Referral Management Server performing the role of a SMART App." />
  <kind value="requirements" />
  <fhirVersion value="4.0.1" />
  <format value="json" />
  <rest>
    <mode value="client" />
    <documentation value="A SMART App **SHALL** conform to the SMART launch framework confidential app profile and **SHALL** therefore be able to protect a client_secret and conform to all app protection requirements.   Please see the XML or JSON view for server requirements not visible on this summary page." />
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="SHALL" />
      </extension>
      <type value="Patient" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Patient" />
      <documentation value="A SMART App **SHALL**, minimally, be able to request and use `patient/Patient.read` scope using the `patient` context granted by a SMART Server to enable the app to retrieve Patient demographic information that will be needed to support the completion of forms used for referral (where applicable, a SMART App **SHOULD** also be capable of supporting other resources defined in this IG)" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="SHALL" />
      </extension>
      <type value="Practitioner" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Practitioner" />
      <documentation value="A SMART App **SHALL**, minimally be able to request and use `openid` and `fhiruser` scope with `fhiruser` context granted by a SMART Server to enable retrieve Provider identity information needed to support single sign on using OpenID connect, etc." />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="ServiceRequest" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-ServiceRequest" />
      <documentation value="**MAY**: potentially useful to retrieve a `ServiceRequest` where the SMART Server is an RMS Source launching an RMS Target to complete a ServiceRequest" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="QuestionnaireResponse" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-QuestionnaireResponse" />
      <documentation value="**MAY**: potentially useful to retrieve `ServiceRequest.supportingInfo` where the SMART Server is an RMS Source" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="AllergyIntolerance" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-AllergyIntolerance" />
      <documentation value="**MAY**: potentially useful to retrieve `ServiceRequest.supportingInfo` from a POS or RMS Source" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="Condition" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Condition" />
      <documentation value="**MAY**: potentially useful to retrieve `ServiceRequest.supportingInfo` from a POS or RMS Source" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="Consent" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Consent" />
      <documentation value="**MAY**: potentially useful to retrieve `ServiceRequest.supportingInfo` from a POS or RMS Source" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="DocumentReference" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-DocumentReference" />
      <documentation value="**MAY**: potentially useful to retrieve `ServiceRequest.supportingInfo` from a POS or RMS Source" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="PractitionerRole" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole" />
      <documentation value="**MAY**: overlap with information already available in RMS SMART App?" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="Location" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Location" />
      <documentation value="**MAY**: overlap with information already available in RMS SMART App?" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
    <resource>
      <extension url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY" />
      </extension>
      <type value="Organization" />
      <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Organization" />
      <documentation value="**MAY**: overlap with information already available in RMS SMART App?" />
      <interaction>
        <code value="read" />
      </interaction>
    </resource>
  </rest>
</CapabilityStatement>