@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/CompartmentDefinition/patient> a fhir:CompartmentDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "patient"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<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>#xD;\nThe following resources may be in this compartment:#xD;\n</p>#xD;\n<table class=\"grid\">#xD;\n <tr><td><b>Resource</b></td><td><b>Inclusion Criteria</b></td></tr>#xD;\n <tr><td><a href=\"account.html\">Account</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"adverseevent.html\">AdverseEvent</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"allergyintolerance.html\">AllergyIntolerance</a></td><td>patient, asserter</td></tr>#xD;\n <tr><td><a href=\"appointment.html\">Appointment</a></td><td>actor</td></tr>#xD;\n <tr><td><a href=\"appointmentresponse.html\">AppointmentResponse</a></td><td>actor</td></tr>#xD;\n <tr><td><a href=\"auditevent.html\">AuditEvent</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"basic.html\">Basic</a></td><td>patient, author</td></tr>#xD;\n <tr><td><a href=\"biologicallyderivedproduct.html\">BiologicallyDerivedProduct</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"bodystructure.html\">BodyStructure</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"careplan.html\">CarePlan</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"careteam.html\">CareTeam</a></td><td>patient, participant</td></tr>#xD;\n <tr><td><a href=\"claim.html\">Claim</a></td><td>subject, payee</td></tr>#xD;\n <tr><td><a href=\"claimresponse.html\">ClaimResponse</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"communication.html\">Communication</a></td><td>subject, sender, recipient</td></tr>#xD;\n <tr><td><a href=\"communicationrequest.html\">CommunicationRequest</a></td><td>subject, information-provider, recipient, requester</td></tr>#xD;\n <tr><td><a href=\"composition.html\">Composition</a></td><td>subject, author, attester</td></tr>#xD;\n <tr><td><a href=\"condition.html\">Condition</a></td><td>patient, asserter</td></tr>#xD;\n <tr><td><a href=\"consent.html\">Consent</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"contract.html\">Contract</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"coverage.html\">Coverage</a></td><td>policy-holder, subscriber, beneficiary, paymentby-party</td></tr>#xD;\n <tr><td><a href=\"coverageeligibilityrequest.html\">CoverageEligibilityRequest</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"coverageeligibilityresponse.html\">CoverageEligibilityResponse</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"detectedissue.html\">DetectedIssue</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"devicealert.html\">DeviceAlert</a></td><td>subject, acknowledged-by</td></tr>#xD;\n <tr><td><a href=\"deviceassociation.html\">DeviceAssociation</a></td><td>patient, subject, focus</td></tr>#xD;\n <tr><td><a href=\"devicerequest.html\">DeviceRequest</a></td><td>subject, performer, requester</td></tr>#xD;\n <tr><td><a href=\"diagnosticreport.html\">DiagnosticReport</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"documentreference.html\">DocumentReference</a></td><td>subject, author</td></tr>#xD;\n <tr><td><a href=\"encounter.html\">Encounter</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"enrollmentrequest.html\">EnrollmentRequest</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"enrollmentresponse.html\">EnrollmentResponse</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"episodeofcare.html\">EpisodeOfCare</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"explanationofbenefit.html\">ExplanationOfBenefit</a></td><td>subject, payee</td></tr>#xD;\n <tr><td><a href=\"familymemberhistory.html\">FamilyMemberHistory</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"flag.html\">Flag</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"goal.html\">Goal</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"group.html\">Group</a></td><td>member</td></tr>#xD;\n <tr><td><a href=\"guidanceresponse.html\">GuidanceResponse</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"imagingselection.html\">ImagingSelection</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"imagingstudy.html\">ImagingStudy</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"immunization.html\">Immunization</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"invoice.html\">Invoice</a></td><td>subject, patient, recipient</td></tr>#xD;\n <tr><td><a href=\"list.html\">List</a></td><td>subject, source</td></tr>#xD;\n <tr><td><a href=\"measurereport.html\">MeasureReport</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"medicationadministration.html\">MedicationAdministration</a></td><td>patient, subject</td></tr>#xD;\n <tr><td><a href=\"medicationdispense.html\">MedicationDispense</a></td><td>subject, patient, receiver</td></tr>#xD;\n <tr><td><a href=\"medicationrequest.html\">MedicationRequest</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"medicationstatement.html\">MedicationStatement</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"nutritionintake.html\">NutritionIntake</a></td><td>subject, source</td></tr>#xD;\n <tr><td><a href=\"nutritionorder.html\">NutritionOrder</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"observation.html\">Observation</a></td><td>subject, performer</td></tr>#xD;\n <tr><td><a href=\"patient.html\">Patient</a></td><td>{def}, link</td></tr>#xD;\n <tr><td><a href=\"person.html\">Person</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"procedure.html\">Procedure</a></td><td>patient, performer</td></tr>#xD;\n <tr><td><a href=\"provenance.html\">Provenance</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"questionnaireresponse.html\">QuestionnaireResponse</a></td><td>subject, author</td></tr>#xD;\n <tr><td><a href=\"relatedperson.html\">RelatedPerson</a></td><td>patient</td></tr>#xD;\n <tr><td><a href=\"requestorchestration.html\">RequestOrchestration</a></td><td>subject, participant</td></tr>#xD;\n <tr><td><a href=\"researchsubject.html\">ResearchSubject</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"riskassessment.html\">RiskAssessment</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"schedule.html\">Schedule</a></td><td>actor</td></tr>#xD;\n <tr><td><a href=\"servicerequest.html\">ServiceRequest</a></td><td>subject, performer</td></tr>#xD;\n <tr><td><a href=\"specimen.html\">Specimen</a></td><td>subject</td></tr>#xD;\n <tr><td><a href=\"task.html\">Task</a></td><td>patient, focus-reference</td></tr>#xD;\n <tr><td><a href=\"visionprescription.html\">VisionPrescription</a></td><td>patient</td></tr>#xD;\n</table>#xD;\n<p>#xD;\nA resource is in this compartment if the nominated search parameter (or chain) refers to the patient resource that defines the compartment.#xD;\n</p>#xD;\n<p>#xD;\n#xD;\n</p>#xD;\n<p>#xD;\nThe following resources are never in this compartment:#xD;\n</p>#xD;\n<ul>#xD;\n <li><a href=\"activitydefinition.html\">ActivityDefinition</a></li>#xD;\n <li><a href=\"actordefinition.html\">ActorDefinition</a></li>#xD;\n <li><a href=\"administrableproductdefinition.html\">AdministrableProductDefinition</a></li>#xD;\n <li><a href=\"artifactassessment.html\">ArtifactAssessment</a></li>#xD;\n <li><a href=\"binary.html\">Binary</a></li>#xD;\n <li><a href=\"bundle.html\">Bundle</a></li>#xD;\n <li><a href=\"capabilitystatement.html\">CapabilityStatement</a></li>#xD;\n <li><a href=\"clinicalusedefinition.html\">ClinicalUseDefinition</a></li>#xD;\n <li><a href=\"codesystem.html\">CodeSystem</a></li>#xD;\n <li><a href=\"compartmentdefinition.html\">CompartmentDefinition</a></li>#xD;\n <li><a href=\"conceptmap.html\">ConceptMap</a></li>#xD;\n <li><a href=\"device.html\">Device</a></li>#xD;\n <li><a href=\"devicedefinition.html\">DeviceDefinition</a></li>#xD;\n <li><a href=\"devicemetric.html\">DeviceMetric</a></li>#xD;\n <li><a href=\"endpoint.html\">Endpoint</a></li>#xD;\n <li><a href=\"eventdefinition.html\">EventDefinition</a></li>#xD;\n <li><a href=\"evidence.html\">Evidence</a></li>#xD;\n <li><a href=\"evidencevariable.html\">EvidenceVariable</a></li>#xD;\n <li><a href=\"examplescenario.html\">ExampleScenario</a></li>#xD;\n <li><a href=\"healthcareservice.html\">HealthcareService</a></li>#xD;\n <li><a href=\"implementationguide.html\">ImplementationGuide</a></li>#xD;\n <li><a href=\"ingredient.html\">Ingredient</a></li>#xD;\n <li><a href=\"insuranceplan.html\">InsurancePlan</a></li>#xD;\n <li><a href=\"insuranceproduct.html\">InsuranceProduct</a></li>#xD;\n <li><a href=\"library.html\">Library</a></li>#xD;\n <li><a href=\"location.html\">Location</a></li>#xD;\n <li><a href=\"manufactureditemdefinition.html\">ManufacturedItemDefinition</a></li>#xD;\n <li><a href=\"measure.html\">Measure</a></li>#xD;\n <li><a href=\"medication.html\">Medication</a></li>#xD;\n <li><a href=\"medicinalproductdefinition.html\">MedicinalProductDefinition</a></li>#xD;\n <li><a href=\"messagedefinition.html\">MessageDefinition</a></li>#xD;\n <li><a href=\"messageheader.html\">MessageHeader</a></li>#xD;\n <li><a href=\"namingsystem.html\">NamingSystem</a></li>#xD;\n <li><a href=\"nutritionproduct.html\">NutritionProduct</a></li>#xD;\n <li><a href=\"observationdefinition.html\">ObservationDefinition</a></li>#xD;\n <li><a href=\"operationdefinition.html\">OperationDefinition</a></li>#xD;\n <li><a href=\"operationoutcome.html\">OperationOutcome</a></li>#xD;\n <li><a href=\"organization.html\">Organization</a></li>#xD;\n <li><a href=\"organizationaffiliation.html\">OrganizationAffiliation</a></li>#xD;\n <li><a href=\"packagedproductdefinition.html\">PackagedProductDefinition</a></li>#xD;\n <li><a href=\"paymentnotice.html\">PaymentNotice</a></li>#xD;\n <li><a href=\"paymentreconciliation.html\">PaymentReconciliation</a></li>#xD;\n <li><a href=\"plandefinition.html\">PlanDefinition</a></li>#xD;\n <li><a href=\"practitioner.html\">Practitioner</a></li>#xD;\n <li><a href=\"practitionerrole.html\">PractitionerRole</a></li>#xD;\n <li><a href=\"questionnaire.html\">Questionnaire</a></li>#xD;\n <li><a href=\"regulatedauthorization.html\">RegulatedAuthorization</a></li>#xD;\n <li><a href=\"requirements.html\">Requirements</a></li>#xD;\n <li><a href=\"researchstudy.html\">ResearchStudy</a></li>#xD;\n <li><a href=\"searchparameter.html\">SearchParameter</a></li>#xD;\n <li><a href=\"slot.html\">Slot</a></li>#xD;\n <li><a href=\"specimendefinition.html\">SpecimenDefinition</a></li>#xD;\n <li><a href=\"structuredefinition.html\">StructureDefinition</a></li>#xD;\n <li><a href=\"structuremap.html\">StructureMap</a></li>#xD;\n <li><a href=\"subscription.html\">Subscription</a></li>#xD;\n <li><a href=\"subscriptionstatus.html\">SubscriptionStatus</a></li>#xD;\n <li><a href=\"subscriptiontopic.html\">SubscriptionTopic</a></li>#xD;\n <li><a href=\"substance.html\">Substance</a></li>#xD;\n <li><a href=\"substancedefinition.html\">SubstanceDefinition</a></li>#xD;\n <li><a href=\"terminologycapabilities.html\">TerminologyCapabilities</a></li>#xD;\n <li><a href=\"valueset.html\">ValueSet</a></li>#xD;\n</ul></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "fhir"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/CompartmentDefinition/patient"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/CompartmentDefinition/patient>
  ] ; # 
  fhir:version [ fhir:v "6.0.0-ballot4"] ; # 
  fhir:name [ fhir:v "Base FHIR compartment definition for Patient"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2026-06-11T13:08:54+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "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 \"id\" for the linked patient resource.\n \nIn 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"] ; # 
  fhir:code [ fhir:v "Patient"] ; # 
  fhir:search [ fhir:v true] ; # 
  fhir:resource ( [
     fhir:code [ fhir:v "Account" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "period"^^xsd:anyURI ;
       fhir:l fhir:period
     ] ;
     fhir:endParam [
       fhir:v "period"^^xsd:anyURI ;
       fhir:l fhir:period
     ]
  ] [
     fhir:code [ fhir:v "ActivityDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "ActorDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "AdministrableProductDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "AdverseEvent" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "occurrence"^^xsd:anyURI ;
       fhir:l fhir:occurrence
     ] ;
     fhir:endParam [
       fhir:v "occurrence"^^xsd:anyURI ;
       fhir:l fhir:occurrence
     ]
  ] [
     fhir:code [ fhir:v "AllergyIntolerance" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "asserter" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Appointment" ] ;
     fhir:param ( [ fhir:v "actor" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "AppointmentResponse" ] ;
     fhir:param ( [ fhir:v "actor" ] )
  ] [
     fhir:code [ fhir:v "ArtifactAssessment" ] ;
     fhir:param ( [ fhir:v "" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "AuditEvent" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Basic" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "author" ] ) ;
     fhir:startParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ] ;
     fhir:endParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ]
  ] [
     fhir:code [ fhir:v "Binary" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "BiologicallyDerivedProduct" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "BodyStructure" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Bundle" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "CapabilityStatement" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "CarePlan" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "CareTeam" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "participant" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Claim" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "payee" ] ) ;
     fhir:startParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ] ;
     fhir:endParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ]
  ] [
     fhir:code [ fhir:v "ClaimResponse" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ] ;
     fhir:endParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ]
  ] [
     fhir:code [ fhir:v "ClinicalUseDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "CodeSystem" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Communication" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "sender" ] [ fhir:v "recipient" ] ) ;
     fhir:startParam [
       fhir:v "sent"^^xsd:anyURI ;
       fhir:l fhir:sent
     ] ;
     fhir:endParam [
       fhir:v "sent"^^xsd:anyURI ;
       fhir:l fhir:sent
     ]
  ] [
     fhir:code [ fhir:v "CommunicationRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "information-provider" ] [ fhir:v "recipient" ] [ fhir:v "requester" ] ) ;
     fhir:startParam [
       fhir:v "authored"^^xsd:anyURI ;
       fhir:l fhir:authored
     ] ;
     fhir:endParam [
       fhir:v "authored"^^xsd:anyURI ;
       fhir:l fhir:authored
     ]
  ] [
     fhir:code [ fhir:v "CompartmentDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Composition" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "author" ] [ fhir:v "attester" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "ConceptMap" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Condition" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "asserter" ] )
  ] [
     fhir:code [ fhir:v "Consent" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "period"^^xsd:anyURI ;
       fhir:l fhir:period
     ] ;
     fhir:endParam [
       fhir:v "period"^^xsd:anyURI ;
       fhir:l fhir:period
     ]
  ] [
     fhir:code [ fhir:v "Contract" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Coverage" ] ;
     fhir:param ( [ fhir:v "policy-holder" ] [ fhir:v "subscriber" ] [ fhir:v "beneficiary" ] [ fhir:v "paymentby-party" ] ) ;
     fhir:startParam [
       fhir:v "period"^^xsd:anyURI ;
       fhir:l fhir:period
     ] ;
     fhir:endParam [
       fhir:v "period"^^xsd:anyURI ;
       fhir:l fhir:period
     ]
  ] [
     fhir:code [ fhir:v "CoverageEligibilityRequest" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ] ;
     fhir:endParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ]
  ] [
     fhir:code [ fhir:v "CoverageEligibilityResponse" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ] ;
     fhir:endParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ]
  ] [
     fhir:code [ fhir:v "DetectedIssue" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "identified"^^xsd:anyURI ;
       fhir:l fhir:identified
     ] ;
     fhir:endParam [
       fhir:v "identified"^^xsd:anyURI ;
       fhir:l fhir:identified
     ]
  ] [
     fhir:code [ fhir:v "Device" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "DeviceAlert" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "acknowledged-by" ] ) ;
     fhir:startParam [
       fhir:v "occurrence"^^xsd:anyURI ;
       fhir:l fhir:occurrence
     ] ;
     fhir:endParam [
       fhir:v "occurrence"^^xsd:anyURI ;
       fhir:l fhir:occurrence
     ]
  ] [
     fhir:code [ fhir:v "DeviceAssociation" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "subject" ] [ fhir:v "focus" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "DeviceDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "DeviceMetric" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "DeviceRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "performer" ] [ fhir:v "requester" ] ) ;
     fhir:startParam [
       fhir:v "event-date"^^xsd:anyURI ;
       fhir:l fhir:event-date
     ] ;
     fhir:endParam [
       fhir:v "event-date"^^xsd:anyURI ;
       fhir:l fhir:event-date
     ]
  ] [
     fhir:code [ fhir:v "DiagnosticReport" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "DocumentReference" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "author" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Encounter" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "date-start"^^xsd:anyURI ;
       fhir:l fhir:date-start
     ] ;
     fhir:endParam [
       fhir:v "date-start"^^xsd:anyURI ;
       fhir:l fhir:date-start
     ]
  ] [
     fhir:code [ fhir:v "Endpoint" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "EnrollmentRequest" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "EnrollmentResponse" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "EpisodeOfCare" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "EventDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Evidence" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "EvidenceVariable" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "ExampleScenario" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "ExplanationOfBenefit" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "payee" ] ) ;
     fhir:startParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ] ;
     fhir:endParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ]
  ] [
     fhir:code [ fhir:v "FamilyMemberHistory" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Flag" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Goal" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "start-date"^^xsd:anyURI ;
       fhir:l fhir:start-date
     ] ;
     fhir:endParam [
       fhir:v "start-date"^^xsd:anyURI ;
       fhir:l fhir:start-date
     ]
  ] [
     fhir:code [ fhir:v "Group" ] ;
     fhir:param ( [ fhir:v "member" ] )
  ] [
     fhir:code [ fhir:v "GuidanceResponse" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "HealthcareService" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "ImagingSelection" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "issued"^^xsd:anyURI ;
       fhir:l fhir:issued
     ] ;
     fhir:endParam [
       fhir:v "issued"^^xsd:anyURI ;
       fhir:l fhir:issued
     ]
  ] [
     fhir:code [ fhir:v "ImagingStudy" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "started"^^xsd:anyURI ;
       fhir:l fhir:started
     ] ;
     fhir:endParam [
       fhir:v "started"^^xsd:anyURI ;
       fhir:l fhir:started
     ]
  ] [
     fhir:code [ fhir:v "Immunization" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "ImplementationGuide" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Ingredient" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "InsurancePlan" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "InsuranceProduct" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Invoice" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "patient" ] [ fhir:v "recipient" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Library" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "List" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "source" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Location" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "ManufacturedItemDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Measure" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "MeasureReport" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Medication" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "MedicationAdministration" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "MedicationDispense" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "patient" ] [ fhir:v "receiver" ] ) ;
     fhir:startParam [
       fhir:v "whenhandedover"^^xsd:anyURI ;
       fhir:l fhir:whenhandedover
     ] ;
     fhir:endParam [
       fhir:v "whenhandedover"^^xsd:anyURI ;
       fhir:l fhir:whenhandedover
     ]
  ] [
     fhir:code [ fhir:v "MedicationRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "combo-date"^^xsd:anyURI ;
       fhir:l fhir:combo-date
     ] ;
     fhir:endParam [
       fhir:v "combo-date"^^xsd:anyURI ;
       fhir:l fhir:combo-date
     ]
  ] [
     fhir:code [ fhir:v "MedicationStatement" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "effective"^^xsd:anyURI ;
       fhir:l fhir:effective
     ] ;
     fhir:endParam [
       fhir:v "effective"^^xsd:anyURI ;
       fhir:l fhir:effective
     ]
  ] [
     fhir:code [ fhir:v "MedicinalProductDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "MessageDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "MessageHeader" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "NamingSystem" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "NutritionIntake" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "source" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "NutritionOrder" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "datetime"^^xsd:anyURI ;
       fhir:l fhir:datetime
     ] ;
     fhir:endParam [
       fhir:v "datetime"^^xsd:anyURI ;
       fhir:l fhir:datetime
     ]
  ] [
     fhir:code [ fhir:v "NutritionProduct" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Observation" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "performer" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "ObservationDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "OperationDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "OperationOutcome" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Organization" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "OrganizationAffiliation" ] ;
     fhir:param ( [ fhir:v "" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "PackagedProductDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Patient" ] ;
     fhir:param ( [ fhir:v "{def}" ] [ fhir:v "link" ] )
  ] [
     fhir:code [ fhir:v "PaymentNotice" ] ;
     fhir:param ( [ fhir:v "" ] ) ;
     fhir:startParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ] ;
     fhir:endParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ]
  ] [
     fhir:code [ fhir:v "PaymentReconciliation" ] ;
     fhir:param ( [ fhir:v "" ] ) ;
     fhir:startParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ] ;
     fhir:endParam [
       fhir:v "created"^^xsd:anyURI ;
       fhir:l fhir:created
     ]
  ] [
     fhir:code [ fhir:v "Person" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "PlanDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Practitioner" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "PractitionerRole" ] ;
     fhir:param ( [ fhir:v "" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Procedure" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "performer" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Provenance" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "when"^^xsd:anyURI ;
       fhir:l fhir:when
     ] ;
     fhir:endParam [
       fhir:v "when"^^xsd:anyURI ;
       fhir:l fhir:when
     ]
  ] [
     fhir:code [ fhir:v "Questionnaire" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "QuestionnaireResponse" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "author" ] ) ;
     fhir:startParam [
       fhir:v "answer-date"^^xsd:anyURI ;
       fhir:l fhir:answer-date
     ] ;
     fhir:endParam [
       fhir:v "answer-date"^^xsd:anyURI ;
       fhir:l fhir:answer-date
     ]
  ] [
     fhir:code [ fhir:v "RegulatedAuthorization" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "RelatedPerson" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "RequestOrchestration" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "participant" ] )
  ] [
     fhir:code [ fhir:v "Requirements" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "ResearchStudy" ] ;
     fhir:param ( [ fhir:v "" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "ResearchSubject" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "RiskAssessment" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "Schedule" ] ;
     fhir:param ( [ fhir:v "actor" ] ) ;
     fhir:startParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ] ;
     fhir:endParam [
       fhir:v "date"^^xsd:anyURI ;
       fhir:l fhir:date
     ]
  ] [
     fhir:code [ fhir:v "SearchParameter" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "ServiceRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "performer" ] ) ;
     fhir:startParam [
       fhir:v "occurrence"^^xsd:anyURI ;
       fhir:l fhir:occurrence
     ] ;
     fhir:endParam [
       fhir:v "occurrence"^^xsd:anyURI ;
       fhir:l fhir:occurrence
     ]
  ] [
     fhir:code [ fhir:v "Slot" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Specimen" ] ;
     fhir:param ( [ fhir:v "subject" ] ) ;
     fhir:startParam [
       fhir:v "collected"^^xsd:anyURI ;
       fhir:l fhir:collected
     ] ;
     fhir:endParam [
       fhir:v "collected"^^xsd:anyURI ;
       fhir:l fhir:collected
     ]
  ] [
     fhir:code [ fhir:v "SpecimenDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "StructureDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "StructureMap" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Subscription" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "SubscriptionStatus" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "SubscriptionTopic" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Substance" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "SubstanceDefinition" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "Task" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "focus-reference" ] ) ;
     fhir:startParam [
       fhir:v "period"^^xsd:anyURI ;
       fhir:l fhir:period
     ] ;
     fhir:endParam [
       fhir:v "period"^^xsd:anyURI ;
       fhir:l fhir:period
     ]
  ] [
     fhir:code [ fhir:v "TerminologyCapabilities" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "ValueSet" ] ;
     fhir:param ( [ fhir:v "" ] )
  ] [
     fhir:code [ fhir:v "VisionPrescription" ] ;
     fhir:param ( [ fhir:v "patient" ] ) ;
     fhir:startParam [
       fhir:v "datewritten"^^xsd:anyURI ;
       fhir:l fhir:datewritten
     ] ;
     fhir:endParam [
       fhir:v "datewritten"^^xsd:anyURI ;
       fhir:l fhir:datewritten
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

