FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example CompartmentDefinition/patient (Turtle)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: Informative

Raw Turtle (+ also see Turtle/RDF Format Specification)

Compartment Definition for patient

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

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

[] a fhir:CompartmentDefinition ;
  fhir:id [ fhir:v "patient"] ;
  fhir:text [
     fhir:status [ fhir:v "generated" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "fhir" ]
  ] ) ;
  fhir:url [ fhir:v "http://hl7.org/fhir/CompartmentDefinition/patient"], [ fhir:v "http://hl7.org/fhir/CompartmentDefinition/patient"] ;
  fhir:version [ fhir:v "6.0.0-ballot2"], [ fhir:v "6.0.0-ballot2"] ;
  fhir:name [ fhir:v "Base FHIR compartment definition for Patient"], [ fhir:v "Base FHIR compartment definition for Patient"] ;
  fhir:status [ fhir:v "draft"], [ fhir:v "draft"] ;
  fhir:experimental [ fhir:v "true"], [ fhir:v "true"] ;
  fhir:date [ fhir:v "2024-11-20T15:00:58+00:00"], [ fhir:v "2024-11-20T15:00:58+00:00"] ;
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"], [ 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: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: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:code [ fhir:v "ActivityDefinition" ]
  ] [
     fhir:code [ fhir:v "ActorDefinition" ]
  ] [
     fhir:code [ fhir:v "AdministrableProductDefinition" ]
  ] [
     fhir:code [ fhir:v "AdverseEvent" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "AllergyIntolerance" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "asserter" ] )
  ] [
     fhir:code [ fhir:v "Appointment" ] ;
     fhir:param ( [ fhir:v "actor" ] )
  ] [
     fhir:code [ fhir:v "AppointmentResponse" ] ;
     fhir:param ( [ fhir:v "actor" ] )
  ] [
     fhir:code [ fhir:v "ArtifactAssessment" ]
  ] [
     fhir:code [ fhir:v "AuditEvent" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Basic" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "author" ] )
  ] [
     fhir:code [ fhir:v "Binary" ]
  ] [
     fhir:code [ fhir:v "BiologicallyDerivedProduct" ]
  ] [
     fhir:code [ fhir:v "BiologicallyDerivedProductDispense" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "BodyStructure" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Bundle" ]
  ] [
     fhir:code [ fhir:v "CapabilityStatement" ]
  ] [
     fhir:code [ fhir:v "CarePlan" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "CareTeam" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "participant" ] )
  ] [
     fhir:code [ fhir:v "ChargeItem" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "ChargeItemDefinition" ]
  ] [
     fhir:code [ fhir:v "Citation" ]
  ] [
     fhir:code [ fhir:v "Claim" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "payee" ] )
  ] [
     fhir:code [ fhir:v "ClaimResponse" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "ClinicalImpression" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "ClinicalUseDefinition" ]
  ] [
     fhir:code [ fhir:v "CodeSystem" ]
  ] [
     fhir:code [ fhir:v "Communication" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "sender" ] [ fhir:v "recipient" ] )
  ] [
     fhir:code [ fhir:v "CommunicationRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "information-provider" ] [ fhir:v "recipient" ] [ fhir:v "requester" ] )
  ] [
     fhir:code [ fhir:v "CompartmentDefinition" ]
  ] [
     fhir:code [ fhir:v "Composition" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "author" ] [ fhir:v "attester" ] )
  ] [
     fhir:code [ fhir:v "ConceptMap" ]
  ] [
     fhir:code [ fhir:v "Condition" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "asserter" ] )
  ] [
     fhir:code [ fhir:v "ConditionDefinition" ]
  ] [
     fhir:code [ fhir:v "Consent" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     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:code [ fhir:v "CoverageEligibilityRequest" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "CoverageEligibilityResponse" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "DetectedIssue" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Device" ]
  ] [
     fhir:code [ fhir:v "DeviceAlert" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "DeviceAssociation" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "operator" ] )
  ] [
     fhir:code [ fhir:v "DeviceDefinition" ]
  ] [
     fhir:code [ fhir:v "DeviceDispense" ]
  ] [
     fhir:code [ fhir:v "DeviceMetric" ]
  ] [
     fhir:code [ fhir:v "DeviceRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "performer" ] )
  ] [
     fhir:code [ fhir:v "DeviceUsage" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "DiagnosticReport" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "DocumentReference" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "author" ] )
  ] [
     fhir:code [ fhir:v "Encounter" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "EncounterHistory" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Endpoint" ]
  ] [
     fhir:code [ fhir:v "EnrollmentRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "EnrollmentResponse" ]
  ] [
     fhir:code [ fhir:v "EpisodeOfCare" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "EventDefinition" ]
  ] [
     fhir:code [ fhir:v "Evidence" ]
  ] [
     fhir:code [ fhir:v "EvidenceReport" ]
  ] [
     fhir:code [ fhir:v "EvidenceVariable" ]
  ] [
     fhir:code [ fhir:v "ExampleScenario" ]
  ] [
     fhir:code [ fhir:v "ExplanationOfBenefit" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "payee" ] )
  ] [
     fhir:code [ fhir:v "FamilyMemberHistory" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Flag" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "FormularyItem" ]
  ] [
     fhir:code [ fhir:v "GenomicStudy" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Goal" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "GraphDefinition" ]
  ] [
     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:code [ fhir:v "ImagingSelection" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "ImagingStudy" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Immunization" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "ImmunizationEvaluation" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "ImmunizationRecommendation" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "ImplementationGuide" ]
  ] [
     fhir:code [ fhir:v "Ingredient" ]
  ] [
     fhir:code [ fhir:v "InsurancePlan" ]
  ] [
     fhir:code [ fhir:v "InsuranceProduct" ]
  ] [
     fhir:code [ fhir:v "InventoryItem" ]
  ] [
     fhir:code [ fhir:v "InventoryReport" ]
  ] [
     fhir:code [ fhir:v "Invoice" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "patient" ] [ fhir:v "recipient" ] )
  ] [
     fhir:code [ fhir:v "Library" ]
  ] [
     fhir:code [ fhir:v "Linkage" ]
  ] [
     fhir:code [ fhir:v "List" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "source" ] )
  ] [
     fhir:code [ fhir:v "Location" ]
  ] [
     fhir:code [ fhir:v "ManufacturedItemDefinition" ]
  ] [
     fhir:code [ fhir:v "Measure" ]
  ] [
     fhir:code [ fhir:v "MeasureReport" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Medication" ]
  ] [
     fhir:code [ fhir:v "MedicationAdministration" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "MedicationDispense" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "patient" ] [ fhir:v "receiver" ] )
  ] [
     fhir:code [ fhir:v "MedicationKnowledge" ]
  ] [
     fhir:code [ fhir:v "MedicationRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "MedicationStatement" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "MedicinalProductDefinition" ]
  ] [
     fhir:code [ fhir:v "MessageDefinition" ]
  ] [
     fhir:code [ fhir:v "MessageHeader" ]
  ] [
     fhir:code [ fhir:v "MolecularDefinition" ]
  ] [
     fhir:code [ fhir:v "MolecularSequence" ]
  ] [
     fhir:code [ fhir:v "NamingSystem" ]
  ] [
     fhir:code [ fhir:v "NutritionIntake" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "source" ] )
  ] [
     fhir:code [ fhir:v "NutritionOrder" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "NutritionProduct" ]
  ] [
     fhir:code [ fhir:v "Observation" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "performer" ] )
  ] [
     fhir:code [ fhir:v "ObservationDefinition" ]
  ] [
     fhir:code [ fhir:v "OperationDefinition" ]
  ] [
     fhir:code [ fhir:v "OperationOutcome" ]
  ] [
     fhir:code [ fhir:v "Organization" ]
  ] [
     fhir:code [ fhir:v "OrganizationAffiliation" ]
  ] [
     fhir:code [ fhir:v "PackagedProductDefinition" ]
  ] [
     fhir:code [ fhir:v "Patient" ] ;
     fhir:param ( [ fhir:v "{def}" ] [ fhir:v "link" ] )
  ] [
     fhir:code [ fhir:v "PaymentNotice" ]
  ] [
     fhir:code [ fhir:v "PaymentReconciliation" ]
  ] [
     fhir:code [ fhir:v "Permission" ]
  ] [
     fhir:code [ fhir:v "Person" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "PersonalRelationship" ] ;
     fhir:param ( [ fhir:v "source" ] [ fhir:v "target" ] )
  ] [
     fhir:code [ fhir:v "PlanDefinition" ]
  ] [
     fhir:code [ fhir:v "Practitioner" ]
  ] [
     fhir:code [ fhir:v "PractitionerRole" ]
  ] [
     fhir:code [ fhir:v "Procedure" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "performer" ] )
  ] [
     fhir:code [ fhir:v "Provenance" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "Questionnaire" ]
  ] [
     fhir:code [ fhir:v "QuestionnaireResponse" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "author" ] )
  ] [
     fhir:code [ fhir:v "RegulatedAuthorization" ]
  ] [
     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:code [ fhir:v "ResearchStudy" ]
  ] [
     fhir:code [ fhir:v "ResearchSubject" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "RiskAssessment" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "Schedule" ] ;
     fhir:param ( [ fhir:v "actor" ] )
  ] [
     fhir:code [ fhir:v "SearchParameter" ]
  ] [
     fhir:code [ fhir:v "ServiceRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] [ fhir:v "performer" ] )
  ] [
     fhir:code [ fhir:v "Slot" ]
  ] [
     fhir:code [ fhir:v "Specimen" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "SpecimenDefinition" ]
  ] [
     fhir:code [ fhir:v "StructureDefinition" ]
  ] [
     fhir:code [ fhir:v "StructureMap" ]
  ] [
     fhir:code [ fhir:v "Subscription" ]
  ] [
     fhir:code [ fhir:v "SubscriptionStatus" ]
  ] [
     fhir:code [ fhir:v "SubscriptionTopic" ]
  ] [
     fhir:code [ fhir:v "Substance" ]
  ] [
     fhir:code [ fhir:v "SubstanceDefinition" ]
  ] [
     fhir:code [ fhir:v "SubstanceNucleicAcid" ]
  ] [
     fhir:code [ fhir:v "SubstancePolymer" ]
  ] [
     fhir:code [ fhir:v "SubstanceProtein" ]
  ] [
     fhir:code [ fhir:v "SubstanceReferenceInformation" ]
  ] [
     fhir:code [ fhir:v "SubstanceSourceMaterial" ]
  ] [
     fhir:code [ fhir:v "SupplyDelivery" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] [
     fhir:code [ fhir:v "SupplyRequest" ] ;
     fhir:param ( [ fhir:v "subject" ] )
  ] [
     fhir:code [ fhir:v "Task" ] ;
     fhir:param ( [ fhir:v "patient" ] [ fhir:v "focus" ] )
  ] [
     fhir:code [ fhir:v "TerminologyCapabilities" ]
  ] [
     fhir:code [ fhir:v "TestPlan" ]
  ] [
     fhir:code [ fhir:v "TestReport" ]
  ] [
     fhir:code [ fhir:v "TestScript" ]
  ] [
     fhir:code [ fhir:v "Transport" ]
  ] [
     fhir:code [ fhir:v "ValueSet" ]
  ] [
     fhir:code [ fhir:v "VerificationResult" ]
  ] [
     fhir:code [ fhir:v "VisionPrescription" ] ;
     fhir:param ( [ fhir:v "patient" ] )
  ] ) .

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


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.