<?xml version="1.0" encoding="UTF-8"?>

<CompartmentDefinition xmlns="http://hl7.org/fhir">
  <id value="patient"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p class="res-header-id">
        <b>Generated Narrative: CompartmentDefinition patient</b>
      </p>
      <a name="patient"> </a>
      <a name="hcpatient"> </a>
      <p>
The following resources may be in this compartment:
</p>

      <table class="grid">
 
        <tr>
          <td>
            <b>Resource</b>
          </td>
          <td>
            <b>Inclusion Criteria</b>
          </td>
        </tr>
 
        <tr>
          <td>
            <a href="account.html">Account</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="adverseevent.html">AdverseEvent</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="allergyintolerance.html">AllergyIntolerance</a>
          </td>
          <td>patient, asserter</td>
        </tr>
 
        <tr>
          <td>
            <a href="appointment.html">Appointment</a>
          </td>
          <td>actor</td>
        </tr>
 
        <tr>
          <td>
            <a href="appointmentresponse.html">AppointmentResponse</a>
          </td>
          <td>actor</td>
        </tr>
 
        <tr>
          <td>
            <a href="auditevent.html">AuditEvent</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="basic.html">Basic</a>
          </td>
          <td>patient, author</td>
        </tr>
 
        <tr>
          <td>
            <a href="biologicallyderivedproduct.html">BiologicallyDerivedProduct</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="bodystructure.html">BodyStructure</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="careplan.html">CarePlan</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="careteam.html">CareTeam</a>
          </td>
          <td>patient, participant</td>
        </tr>
 
        <tr>
          <td>
            <a href="claim.html">Claim</a>
          </td>
          <td>subject, payee</td>
        </tr>
 
        <tr>
          <td>
            <a href="claimresponse.html">ClaimResponse</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="communication.html">Communication</a>
          </td>
          <td>subject, sender, recipient</td>
        </tr>
 
        <tr>
          <td>
            <a href="communicationrequest.html">CommunicationRequest</a>
          </td>
          <td>subject, information-provider, recipient, requester</td>
        </tr>
 
        <tr>
          <td>
            <a href="composition.html">Composition</a>
          </td>
          <td>subject, author, attester</td>
        </tr>
 
        <tr>
          <td>
            <a href="condition.html">Condition</a>
          </td>
          <td>patient, asserter</td>
        </tr>
 
        <tr>
          <td>
            <a href="consent.html">Consent</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="coverage.html">Coverage</a>
          </td>
          <td>policy-holder, subscriber, beneficiary, paymentby-party</td>
        </tr>
 
        <tr>
          <td>
            <a href="coverageeligibilityrequest.html">CoverageEligibilityRequest</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="coverageeligibilityresponse.html">CoverageEligibilityResponse</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="detectedissue.html">DetectedIssue</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="devicealert.html">DeviceAlert</a>
          </td>
          <td>subject, acknowledged-by</td>
        </tr>
 
        <tr>
          <td>
            <a href="deviceassociation.html">DeviceAssociation</a>
          </td>
          <td>patient, subject, focus</td>
        </tr>
 
        <tr>
          <td>
            <a href="devicerequest.html">DeviceRequest</a>
          </td>
          <td>subject, performer, requester</td>
        </tr>
 
        <tr>
          <td>
            <a href="diagnosticreport.html">DiagnosticReport</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="documentreference.html">DocumentReference</a>
          </td>
          <td>subject, author</td>
        </tr>
 
        <tr>
          <td>
            <a href="encounter.html">Encounter</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="episodeofcare.html">EpisodeOfCare</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="explanationofbenefit.html">ExplanationOfBenefit</a>
          </td>
          <td>subject, payee</td>
        </tr>
 
        <tr>
          <td>
            <a href="familymemberhistory.html">FamilyMemberHistory</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="flag.html">Flag</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="goal.html">Goal</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="group.html">Group</a>
          </td>
          <td>member</td>
        </tr>
 
        <tr>
          <td>
            <a href="guidanceresponse.html">GuidanceResponse</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="imagingselection.html">ImagingSelection</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="imagingstudy.html">ImagingStudy</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="immunization.html">Immunization</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="list.html">List</a>
          </td>
          <td>subject, source</td>
        </tr>
 
        <tr>
          <td>
            <a href="measurereport.html">MeasureReport</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="medicationadministration.html">MedicationAdministration</a>
          </td>
          <td>patient, subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="medicationdispense.html">MedicationDispense</a>
          </td>
          <td>subject, patient, receiver</td>
        </tr>
 
        <tr>
          <td>
            <a href="medicationrequest.html">MedicationRequest</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="medicationstatement.html">MedicationStatement</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="nutritionintake.html">NutritionIntake</a>
          </td>
          <td>subject, source</td>
        </tr>
 
        <tr>
          <td>
            <a href="nutritionorder.html">NutritionOrder</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="observation.html">Observation</a>
          </td>
          <td>subject, performer</td>
        </tr>
 
        <tr>
          <td>
            <a href="patient.html">Patient</a>
          </td>
          <td>{def}, link</td>
        </tr>
 
        <tr>
          <td>
            <a href="person.html">Person</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="procedure.html">Procedure</a>
          </td>
          <td>patient, performer</td>
        </tr>
 
        <tr>
          <td>
            <a href="provenance.html">Provenance</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="questionnaireresponse.html">QuestionnaireResponse</a>
          </td>
          <td>subject, author</td>
        </tr>
 
        <tr>
          <td>
            <a href="relatedperson.html">RelatedPerson</a>
          </td>
          <td>patient</td>
        </tr>
 
        <tr>
          <td>
            <a href="requestorchestration.html">RequestOrchestration</a>
          </td>
          <td>subject, participant</td>
        </tr>
 
        <tr>
          <td>
            <a href="researchsubject.html">ResearchSubject</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="riskassessment.html">RiskAssessment</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="schedule.html">Schedule</a>
          </td>
          <td>actor</td>
        </tr>
 
        <tr>
          <td>
            <a href="servicerequest.html">ServiceRequest</a>
          </td>
          <td>subject, performer</td>
        </tr>
 
        <tr>
          <td>
            <a href="specimen.html">Specimen</a>
          </td>
          <td>subject</td>
        </tr>
 
        <tr>
          <td>
            <a href="task.html">Task</a>
          </td>
          <td>patient, focus-reference</td>
        </tr>
 
        <tr>
          <td>
            <a href="visionprescription.html">VisionPrescription</a>
          </td>
          <td>patient</td>
        </tr>

      </table>

      <p>
A resource is in this compartment if the nominated search parameter (or chain) refers to the patient resource that defines the compartment.
</p>

      <p>

</p>

      <p>
The following resources are never in this compartment:
</p>

      <ul>
 
        <li>
          <a href="activitydefinition.html">ActivityDefinition</a>
        </li>
 
        <li>
          <a href="actordefinition.html">ActorDefinition</a>
        </li>
 
        <li>
          <a href="administrableproductdefinition.html">AdministrableProductDefinition</a>
        </li>
 
        <li>
          <a href="artifactassessment.html">ArtifactAssessment</a>
        </li>
 
        <li>
          <a href="binary.html">Binary</a>
        </li>
 
        <li>
          <a href="bundle.html">Bundle</a>
        </li>
 
        <li>
          <a href="capabilitystatement.html">CapabilityStatement</a>
        </li>
 
        <li>
          <a href="clinicalusedefinition.html">ClinicalUseDefinition</a>
        </li>
 
        <li>
          <a href="codesystem.html">CodeSystem</a>
        </li>
 
        <li>
          <a href="compartmentdefinition.html">CompartmentDefinition</a>
        </li>
 
        <li>
          <a href="conceptmap.html">ConceptMap</a>
        </li>
 
        <li>
          <a href="device.html">Device</a>
        </li>
 
        <li>
          <a href="devicedefinition.html">DeviceDefinition</a>
        </li>
 
        <li>
          <a href="devicemetric.html">DeviceMetric</a>
        </li>
 
        <li>
          <a href="endpoint.html">Endpoint</a>
        </li>
 
        <li>
          <a href="eventdefinition.html">EventDefinition</a>
        </li>
 
        <li>
          <a href="evidence.html">Evidence</a>
        </li>
 
        <li>
          <a href="evidencevariable.html">EvidenceVariable</a>
        </li>
 
        <li>
          <a href="examplescenario.html">ExampleScenario</a>
        </li>
 
        <li>
          <a href="healthcareservice.html">HealthcareService</a>
        </li>
 
        <li>
          <a href="implementationguide.html">ImplementationGuide</a>
        </li>
 
        <li>
          <a href="ingredient.html">Ingredient</a>
        </li>
 
        <li>
          <a href="library.html">Library</a>
        </li>
 
        <li>
          <a href="location.html">Location</a>
        </li>
 
        <li>
          <a href="manufactureditemdefinition.html">ManufacturedItemDefinition</a>
        </li>
 
        <li>
          <a href="measure.html">Measure</a>
        </li>
 
        <li>
          <a href="medication.html">Medication</a>
        </li>
 
        <li>
          <a href="medicinalproductdefinition.html">MedicinalProductDefinition</a>
        </li>
 
        <li>
          <a href="messagedefinition.html">MessageDefinition</a>
        </li>
 
        <li>
          <a href="messageheader.html">MessageHeader</a>
        </li>
 
        <li>
          <a href="namingsystem.html">NamingSystem</a>
        </li>
 
        <li>
          <a href="nutritionproduct.html">NutritionProduct</a>
        </li>
 
        <li>
          <a href="observationdefinition.html">ObservationDefinition</a>
        </li>
 
        <li>
          <a href="operationdefinition.html">OperationDefinition</a>
        </li>
 
        <li>
          <a href="operationoutcome.html">OperationOutcome</a>
        </li>
 
        <li>
          <a href="organization.html">Organization</a>
        </li>
 
        <li>
          <a href="organizationaffiliation.html">OrganizationAffiliation</a>
        </li>
 
        <li>
          <a href="packagedproductdefinition.html">PackagedProductDefinition</a>
        </li>
 
        <li>
          <a href="paymentnotice.html">PaymentNotice</a>
        </li>
 
        <li>
          <a href="paymentreconciliation.html">PaymentReconciliation</a>
        </li>
 
        <li>
          <a href="plandefinition.html">PlanDefinition</a>
        </li>
 
        <li>
          <a href="practitioner.html">Practitioner</a>
        </li>
 
        <li>
          <a href="practitionerrole.html">PractitionerRole</a>
        </li>
 
        <li>
          <a href="questionnaire.html">Questionnaire</a>
        </li>
 
        <li>
          <a href="regulatedauthorization.html">RegulatedAuthorization</a>
        </li>
 
        <li>
          <a href="requirements.html">Requirements</a>
        </li>
 
        <li>
          <a href="researchstudy.html">ResearchStudy</a>
        </li>
 
        <li>
          <a href="searchparameter.html">SearchParameter</a>
        </li>
 
        <li>
          <a href="slot.html">Slot</a>
        </li>
 
        <li>
          <a href="specimendefinition.html">SpecimenDefinition</a>
        </li>
 
        <li>
          <a href="structuredefinition.html">StructureDefinition</a>
        </li>
 
        <li>
          <a href="structuremap.html">StructureMap</a>
        </li>
 
        <li>
          <a href="subscription.html">Subscription</a>
        </li>
 
        <li>
          <a href="subscriptionstatus.html">SubscriptionStatus</a>
        </li>
 
        <li>
          <a href="subscriptiontopic.html">SubscriptionTopic</a>
        </li>
 
        <li>
          <a href="substance.html">Substance</a>
        </li>
 
        <li>
          <a href="substancedefinition.html">SubstanceDefinition</a>
        </li>
 
        <li>
          <a href="terminologycapabilities.html">TerminologyCapabilities</a>
        </li>
 
        <li>
          <a href="valueset.html">ValueSet</a>
        </li>

      </ul>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/>
  </extension>
  <url value="http://hl7.org/fhir/CompartmentDefinition/patient"/>
  <version value="6.0.0-ballot4"/>
  <name value="Base FHIR compartment definition for Patient"/>
  <status value="draft"/>
  <experimental value="false"/>
  <date value="2026-06-24T23:30:51+00:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description value="There is an instance of the patient compartment for each patient resource, and the identity of the compartment is the same as the patient. When a patient is linked to another patient resource, the records associated with the linked patient resource will not be returned as part of the compartment search. Those records will be returned only with another compartment search using the &quot;id&quot; for the linked patient resource.&#xA; &#xA;In cases where two patients have been merged rather than linked, associated resources should be moved to the target patient as part of the merge process, so the patient compartment for the target patient would include all relevant data, and the patient compartment for the source patient would include only the linked Patient and possibly remnant resources like AuditEvent.. The set of resources associated with a particular patient"/>
  <code value="Patient"/>
  <search value="true"/>
  <resource>
    <code value="Account"/>
    <param value="subject"/>
    <startParam value="period"/>
    <endParam value="period"/>
  </resource>
  <resource>
    <code value="ActivityDefinition"/>
  </resource>
  <resource>
    <code value="ActorDefinition"/>
  </resource>
  <resource>
    <code value="AdministrableProductDefinition"/>
  </resource>
  <resource>
    <code value="AdverseEvent"/>
    <param value="subject"/>
    <startParam value="occurrence"/>
    <endParam value="occurrence"/>
  </resource>
  <resource>
    <code value="AllergyIntolerance"/>
    <param value="patient"/>
    <param value="asserter"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Appointment"/>
    <param value="actor"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="AppointmentResponse"/>
    <param value="actor"/>
  </resource>
  <resource>
    <code value="ArtifactAssessment"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="AuditEvent"/>
    <param value="patient"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Basic"/>
    <param value="patient"/>
    <param value="author"/>
    <startParam value="created"/>
    <endParam value="created"/>
  </resource>
  <resource>
    <code value="Binary"/>
  </resource>
  <resource>
    <code value="BiologicallyDerivedProduct"/>
    <param value="patient"/>
  </resource>
  <resource>
    <code value="BodyStructure"/>
    <param value="patient"/>
  </resource>
  <resource>
    <code value="Bundle"/>
  </resource>
  <resource>
    <code value="CapabilityStatement"/>
  </resource>
  <resource>
    <code value="CarePlan"/>
    <param value="patient"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="CareTeam"/>
    <param value="patient"/>
    <param value="participant"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Claim"/>
    <param value="subject"/>
    <param value="payee"/>
    <startParam value="created"/>
    <endParam value="created"/>
  </resource>
  <resource>
    <code value="ClaimResponse"/>
    <param value="subject"/>
    <startParam value="created"/>
    <endParam value="created"/>
  </resource>
  <resource>
    <code value="ClinicalUseDefinition"/>
  </resource>
  <resource>
    <code value="CodeSystem"/>
  </resource>
  <resource>
    <code value="Communication"/>
    <param value="subject"/>
    <param value="sender"/>
    <param value="recipient"/>
    <startParam value="sent"/>
    <endParam value="sent"/>
  </resource>
  <resource>
    <code value="CommunicationRequest"/>
    <param value="subject"/>
    <param value="information-provider"/>
    <param value="recipient"/>
    <param value="requester"/>
    <startParam value="authored"/>
    <endParam value="authored"/>
  </resource>
  <resource>
    <code value="CompartmentDefinition"/>
  </resource>
  <resource>
    <code value="Composition"/>
    <param value="subject"/>
    <param value="author"/>
    <param value="attester"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="ConceptMap"/>
  </resource>
  <resource>
    <code value="Condition"/>
    <param value="patient"/>
    <param value="asserter"/>
  </resource>
  <resource>
    <code value="Consent"/>
    <param value="subject"/>
    <startParam value="period"/>
    <endParam value="period"/>
  </resource>
  <resource>
    <code value="Coverage"/>
    <param value="policy-holder"/>
    <param value="subscriber"/>
    <param value="beneficiary"/>
    <param value="paymentby-party"/>
    <startParam value="period"/>
    <endParam value="period"/>
  </resource>
  <resource>
    <code value="CoverageEligibilityRequest"/>
    <param value="patient"/>
    <startParam value="created"/>
    <endParam value="created"/>
  </resource>
  <resource>
    <code value="CoverageEligibilityResponse"/>
    <param value="patient"/>
    <startParam value="created"/>
    <endParam value="created"/>
  </resource>
  <resource>
    <code value="DetectedIssue"/>
    <param value="patient"/>
    <startParam value="identified"/>
    <endParam value="identified"/>
  </resource>
  <resource>
    <code value="Device"/>
  </resource>
  <resource>
    <code value="DeviceAlert"/>
    <param value="subject"/>
    <param value="acknowledged-by"/>
    <startParam value="occurrence"/>
    <endParam value="occurrence"/>
  </resource>
  <resource>
    <code value="DeviceAssociation"/>
    <param value="patient"/>
    <param value="subject"/>
    <param value="focus"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="DeviceDefinition"/>
  </resource>
  <resource>
    <code value="DeviceMetric"/>
  </resource>
  <resource>
    <code value="DeviceRequest"/>
    <param value="subject"/>
    <param value="performer"/>
    <param value="requester"/>
    <startParam value="event-date"/>
    <endParam value="event-date"/>
  </resource>
  <resource>
    <code value="DiagnosticReport"/>
    <param value="subject"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="DocumentReference"/>
    <param value="subject"/>
    <param value="author"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Encounter"/>
    <param value="patient"/>
    <startParam value="date-start"/>
    <endParam value="date-start"/>
  </resource>
  <resource>
    <code value="Endpoint"/>
  </resource>
  <resource>
    <code value="EpisodeOfCare"/>
    <param value="subject"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="EventDefinition"/>
  </resource>
  <resource>
    <code value="Evidence"/>
  </resource>
  <resource>
    <code value="EvidenceVariable"/>
  </resource>
  <resource>
    <code value="ExampleScenario"/>
  </resource>
  <resource>
    <code value="ExplanationOfBenefit"/>
    <param value="subject"/>
    <param value="payee"/>
    <startParam value="created"/>
    <endParam value="created"/>
  </resource>
  <resource>
    <code value="FamilyMemberHistory"/>
    <param value="patient"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Flag"/>
    <param value="patient"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Goal"/>
    <param value="patient"/>
    <startParam value="start-date"/>
    <endParam value="start-date"/>
  </resource>
  <resource>
    <code value="Group"/>
    <param value="member"/>
  </resource>
  <resource>
    <code value="GuidanceResponse"/>
    <param value="patient"/>
  </resource>
  <resource>
    <code value="HealthcareService"/>
  </resource>
  <resource>
    <code value="ImagingSelection"/>
    <param value="patient"/>
    <startParam value="issued"/>
    <endParam value="issued"/>
  </resource>
  <resource>
    <code value="ImagingStudy"/>
    <param value="patient"/>
    <startParam value="started"/>
    <endParam value="started"/>
  </resource>
  <resource>
    <code value="Immunization"/>
    <param value="patient"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="ImplementationGuide"/>
  </resource>
  <resource>
    <code value="Ingredient"/>
  </resource>
  <resource>
    <code value="Library"/>
  </resource>
  <resource>
    <code value="List"/>
    <param value="subject"/>
    <param value="source"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Location"/>
  </resource>
  <resource>
    <code value="ManufacturedItemDefinition"/>
  </resource>
  <resource>
    <code value="Measure"/>
  </resource>
  <resource>
    <code value="MeasureReport"/>
    <param value="patient"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Medication"/>
  </resource>
  <resource>
    <code value="MedicationAdministration"/>
    <param value="patient"/>
    <param value="subject"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="MedicationDispense"/>
    <param value="subject"/>
    <param value="patient"/>
    <param value="receiver"/>
    <startParam value="whenhandedover"/>
    <endParam value="whenhandedover"/>
  </resource>
  <resource>
    <code value="MedicationRequest"/>
    <param value="subject"/>
    <startParam value="combo-date"/>
    <endParam value="combo-date"/>
  </resource>
  <resource>
    <code value="MedicationStatement"/>
    <param value="subject"/>
    <startParam value="effective"/>
    <endParam value="effective"/>
  </resource>
  <resource>
    <code value="MedicinalProductDefinition"/>
  </resource>
  <resource>
    <code value="MessageDefinition"/>
  </resource>
  <resource>
    <code value="MessageHeader"/>
  </resource>
  <resource>
    <code value="NamingSystem"/>
  </resource>
  <resource>
    <code value="NutritionIntake"/>
    <param value="subject"/>
    <param value="source"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="NutritionOrder"/>
    <param value="patient"/>
    <startParam value="datetime"/>
    <endParam value="datetime"/>
  </resource>
  <resource>
    <code value="NutritionProduct"/>
  </resource>
  <resource>
    <code value="Observation"/>
    <param value="subject"/>
    <param value="performer"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="ObservationDefinition"/>
  </resource>
  <resource>
    <code value="OperationDefinition"/>
  </resource>
  <resource>
    <code value="OperationOutcome"/>
  </resource>
  <resource>
    <code value="Organization"/>
  </resource>
  <resource>
    <code value="OrganizationAffiliation"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="PackagedProductDefinition"/>
  </resource>
  <resource>
    <code value="Patient"/>
    <param value="{def}"/>
    <param value="link"/>
  </resource>
  <resource>
    <code value="PaymentNotice"/>
    <startParam value="created"/>
    <endParam value="created"/>
  </resource>
  <resource>
    <code value="PaymentReconciliation"/>
    <startParam value="created"/>
    <endParam value="created"/>
  </resource>
  <resource>
    <code value="Person"/>
    <param value="patient"/>
  </resource>
  <resource>
    <code value="PlanDefinition"/>
  </resource>
  <resource>
    <code value="Practitioner"/>
  </resource>
  <resource>
    <code value="PractitionerRole"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Procedure"/>
    <param value="patient"/>
    <param value="performer"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Provenance"/>
    <param value="patient"/>
    <startParam value="when"/>
    <endParam value="when"/>
  </resource>
  <resource>
    <code value="Questionnaire"/>
  </resource>
  <resource>
    <code value="QuestionnaireResponse"/>
    <param value="subject"/>
    <param value="author"/>
    <startParam value="answer-date"/>
    <endParam value="answer-date"/>
  </resource>
  <resource>
    <code value="RegulatedAuthorization"/>
  </resource>
  <resource>
    <code value="RelatedPerson"/>
    <param value="patient"/>
  </resource>
  <resource>
    <code value="RequestOrchestration"/>
    <param value="subject"/>
    <param value="participant"/>
  </resource>
  <resource>
    <code value="Requirements"/>
  </resource>
  <resource>
    <code value="ResearchStudy"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="ResearchSubject"/>
    <param value="subject"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="RiskAssessment"/>
    <param value="subject"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="Schedule"/>
    <param value="actor"/>
    <startParam value="date"/>
    <endParam value="date"/>
  </resource>
  <resource>
    <code value="SearchParameter"/>
  </resource>
  <resource>
    <code value="ServiceRequest"/>
    <param value="subject"/>
    <param value="performer"/>
    <startParam value="occurrence"/>
    <endParam value="occurrence"/>
  </resource>
  <resource>
    <code value="Slot"/>
  </resource>
  <resource>
    <code value="Specimen"/>
    <param value="subject"/>
    <startParam value="collected"/>
    <endParam value="collected"/>
  </resource>
  <resource>
    <code value="SpecimenDefinition"/>
  </resource>
  <resource>
    <code value="StructureDefinition"/>
  </resource>
  <resource>
    <code value="StructureMap"/>
  </resource>
  <resource>
    <code value="Subscription"/>
  </resource>
  <resource>
    <code value="SubscriptionStatus"/>
  </resource>
  <resource>
    <code value="SubscriptionTopic"/>
  </resource>
  <resource>
    <code value="Substance"/>
  </resource>
  <resource>
    <code value="SubstanceDefinition"/>
  </resource>
  <resource>
    <code value="Task"/>
    <param value="patient"/>
    <param value="focus-reference"/>
    <startParam value="period"/>
    <endParam value="period"/>
  </resource>
  <resource>
    <code value="TerminologyCapabilities"/>
  </resource>
  <resource>
    <code value="ValueSet"/>
  </resource>
  <resource>
    <code value="VisionPrescription"/>
    <param value="patient"/>
    <startParam value="datewritten"/>
    <endParam value="datewritten"/>
  </resource>
</CompartmentDefinition>