Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example CompartmentDefinition/relatedPerson (Turtle)

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

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

Compartment Definition for relatedPerson

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

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

[] a fhir:CompartmentDefinition ;
  fhir:id [ fhir:v "relatedPerson"] ;
  fhir:text [
     fhir:status [ fhir:v "extensions" ]
  ] ;
  fhir:url [ fhir:v "http://hl7.org/fhir/CompartmentDefinition/relatedPerson"], [ fhir:v "http://hl7.org/fhir/CompartmentDefinition/relatedPerson"] ;
  fhir:version [ fhir:v "5.0.0"], [ fhir:v "5.0.0"] ;
  fhir:name [ fhir:v "Base FHIR compartment definition for RelatedPerson"], [ fhir:v "Base FHIR compartment definition for RelatedPerson"] ;
  fhir:status [ fhir:v "draft"], [ fhir:v "draft"] ;
  fhir:experimental [ fhir:v "true"], [ fhir:v "true"] ;
  fhir:date [ fhir:v "2023-03-26T15:21:02+11:00"], [ fhir:v "2023-03-26T15:21:02+11:00"] ;
  fhir:publisher [ fhir:v "FHIR Project Team"], [ fhir:v "FHIR Project Team"] ;
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "There is an instance of the relatedPerson compartment for each relatedPerson resource, and the identity of the compartment is the same as the relatedPerson. The set of resources associated with a particular 'related person'"], [ fhir:v "There is an instance of the relatedPerson compartment for each relatedPerson resource, and the identity of the compartment is the same as the relatedPerson. The set of resources associated with a particular 'related person'"] ;
  fhir:code [ fhir:v "RelatedPerson"] ;
  fhir:search [ fhir:v "true"] ;
  fhir:resource ( [
     fhir:code [ fhir:v "Account" ]
  ] [
     fhir:code [ fhir:v "ActivityDefinition" ]
  ] [
     fhir:code [ fhir:v "ActorDefinition" ]
  ] [
     fhir:code [ fhir:v "AdministrableProductDefinition" ]
  ] [
     fhir:code [ fhir:v "AdverseEvent" ] ;
     fhir:param ( [ fhir:v "recorder" ] )
  ] [
     fhir:code [ fhir:v "AllergyIntolerance" ] ;
     fhir:param ( [ fhir:v "participant" ] )
  ] [
     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:code [ fhir:v "Basic" ] ;
     fhir:param ( [ fhir:v "author" ] )
  ] [
     fhir:code [ fhir:v "Binary" ]
  ] [
     fhir:code [ fhir:v "BiologicallyDerivedProduct" ]
  ] [
     fhir:code [ fhir:v "BiologicallyDerivedProductDispense" ]
  ] [
     fhir:code [ fhir:v "BodyStructure" ]
  ] [
     fhir:code [ fhir:v "Bundle" ]
  ] [
     fhir:code [ fhir:v "CapabilityStatement" ]
  ] [
     fhir:code [ fhir:v "CarePlan" ]
  ] [
     fhir:code [ fhir:v "CareTeam" ] ;
     fhir:param ( [ fhir:v "participant" ] )
  ] [
     fhir:code [ fhir:v "ChargeItem" ] ;
     fhir:param ( [ fhir:v "enterer" ] [ fhir:v "performer-actor" ] )
  ] [
     fhir:code [ fhir:v "ChargeItemDefinition" ]
  ] [
     fhir:code [ fhir:v "Citation" ]
  ] [
     fhir:code [ fhir:v "Claim" ] ;
     fhir:param ( [ fhir:v "payee" ] )
  ] [
     fhir:code [ fhir:v "ClaimResponse" ]
  ] [
     fhir:code [ fhir:v "ClinicalImpression" ]
  ] [
     fhir:code [ fhir:v "ClinicalUseDefinition" ]
  ] [
     fhir:code [ fhir:v "CodeSystem" ]
  ] [
     fhir:code [ fhir:v "Communication" ] ;
     fhir:param ( [ fhir:v "sender" ] [ fhir:v "recipient" ] )
  ] [
     fhir:code [ fhir:v "CommunicationRequest" ] ;
     fhir:param ( [ fhir:v "information-provider" ] [ fhir:v "recipient" ] [ fhir:v "requester" ] )
  ] [
     fhir:code [ fhir:v "CompartmentDefinition" ]
  ] [
     fhir:code [ fhir:v "Composition" ] ;
     fhir:param ( [ fhir:v "author" ] )
  ] [
     fhir:code [ fhir:v "ConceptMap" ]
  ] [
     fhir:code [ fhir:v "Condition" ] ;
     fhir:param ( [ fhir:v "participant-actor" ] )
  ] [
     fhir:code [ fhir:v "ConditionDefinition" ]
  ] [
     fhir:code [ fhir:v "Consent" ]
  ] [
     fhir:code [ fhir:v "Contract" ]
  ] [
     fhir:code [ fhir:v "Coverage" ] ;
     fhir:param ( [ fhir:v "policy-holder" ] [ fhir:v "subscriber" ] [ fhir:v "paymentby-party" ] )
  ] [
     fhir:code [ fhir:v "CoverageEligibilityRequest" ]
  ] [
     fhir:code [ fhir:v "CoverageEligibilityResponse" ]
  ] [
     fhir:code [ fhir:v "DetectedIssue" ]
  ] [
     fhir:code [ fhir:v "Device" ]
  ] [
     fhir:code [ fhir:v "DeviceAssociation" ]
  ] [
     fhir:code [ fhir:v "DeviceDefinition" ]
  ] [
     fhir:code [ fhir:v "DeviceDispense" ]
  ] [
     fhir:code [ fhir:v "DeviceMetric" ]
  ] [
     fhir:code [ fhir:v "DeviceRequest" ]
  ] [
     fhir:code [ fhir:v "DeviceUsage" ]
  ] [
     fhir:code [ fhir:v "DiagnosticReport" ]
  ] [
     fhir:code [ fhir:v "DocumentReference" ] ;
     fhir:param ( [ fhir:v "author" ] )
  ] [
     fhir:code [ fhir:v "Encounter" ] ;
     fhir:param ( [ fhir:v "participant" ] )
  ] [
     fhir:code [ fhir:v "EncounterHistory" ]
  ] [
     fhir:code [ fhir:v "Endpoint" ]
  ] [
     fhir:code [ fhir:v "EnrollmentRequest" ]
  ] [
     fhir:code [ fhir:v "EnrollmentResponse" ]
  ] [
     fhir:code [ fhir:v "EpisodeOfCare" ]
  ] [
     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 "payee" ] )
  ] [
     fhir:code [ fhir:v "FamilyMemberHistory" ]
  ] [
     fhir:code [ fhir:v "Flag" ]
  ] [
     fhir:code [ fhir:v "FormularyItem" ]
  ] [
     fhir:code [ fhir:v "GenomicStudy" ]
  ] [
     fhir:code [ fhir:v "Goal" ]
  ] [
     fhir:code [ fhir:v "GraphDefinition" ]
  ] [
     fhir:code [ fhir:v "Group" ]
  ] [
     fhir:code [ fhir:v "GuidanceResponse" ]
  ] [
     fhir:code [ fhir:v "HealthcareService" ]
  ] [
     fhir:code [ fhir:v "ImagingSelection" ]
  ] [
     fhir:code [ fhir:v "ImagingStudy" ]
  ] [
     fhir:code [ fhir:v "Immunization" ]
  ] [
     fhir:code [ fhir:v "ImmunizationEvaluation" ]
  ] [
     fhir:code [ fhir:v "ImmunizationRecommendation" ]
  ] [
     fhir:code [ fhir:v "ImplementationGuide" ]
  ] [
     fhir:code [ fhir:v "Ingredient" ]
  ] [
     fhir:code [ fhir:v "InsurancePlan" ]
  ] [
     fhir:code [ fhir:v "InventoryItem" ]
  ] [
     fhir:code [ fhir:v "InventoryReport" ]
  ] [
     fhir:code [ fhir:v "Invoice" ] ;
     fhir:param ( [ fhir:v "recipient" ] )
  ] [
     fhir:code [ fhir:v "Library" ]
  ] [
     fhir:code [ fhir:v "Linkage" ]
  ] [
     fhir:code [ fhir:v "List" ]
  ] [
     fhir:code [ fhir:v "Location" ]
  ] [
     fhir:code [ fhir:v "ManufacturedItemDefinition" ]
  ] [
     fhir:code [ fhir:v "Measure" ]
  ] [
     fhir:code [ fhir:v "MeasureReport" ]
  ] [
     fhir:code [ fhir:v "Medication" ]
  ] [
     fhir:code [ fhir:v "MedicationAdministration" ]
  ] [
     fhir:code [ fhir:v "MedicationDispense" ]
  ] [
     fhir:code [ fhir:v "MedicationKnowledge" ]
  ] [
     fhir:code [ fhir:v "MedicationRequest" ]
  ] [
     fhir:code [ fhir:v "MedicationStatement" ] ;
     fhir:param ( [ fhir:v "source" ] )
  ] [
     fhir:code [ fhir:v "MedicinalProductDefinition" ]
  ] [
     fhir:code [ fhir:v "MessageDefinition" ]
  ] [
     fhir:code [ fhir:v "MessageHeader" ]
  ] [
     fhir:code [ fhir:v "MolecularSequence" ]
  ] [
     fhir:code [ fhir:v "NamingSystem" ]
  ] [
     fhir:code [ fhir:v "NutritionIntake" ] ;
     fhir:param ( [ fhir:v "source" ] )
  ] [
     fhir:code [ fhir:v "NutritionOrder" ]
  ] [
     fhir:code [ fhir:v "NutritionProduct" ]
  ] [
     fhir:code [ fhir:v "Observation" ] ;
     fhir:param ( [ 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 "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 "link" ] )
  ] [
     fhir:code [ fhir:v "PlanDefinition" ]
  ] [
     fhir:code [ fhir:v "Practitioner" ]
  ] [
     fhir:code [ fhir:v "PractitionerRole" ]
  ] [
     fhir:code [ fhir:v "Procedure" ] ;
     fhir:param ( [ fhir:v "performer" ] )
  ] [
     fhir:code [ fhir:v "Provenance" ] ;
     fhir:param ( [ fhir:v "agent" ] )
  ] [
     fhir:code [ fhir:v "Questionnaire" ]
  ] [
     fhir:code [ fhir:v "QuestionnaireResponse" ] ;
     fhir:param ( [ fhir:v "author" ] [ fhir:v "source" ] )
  ] [
     fhir:code [ fhir:v "RegulatedAuthorization" ]
  ] [
     fhir:code [ fhir:v "RelatedPerson" ] ;
     fhir:param ( [ fhir:v "{def}" ] )
  ] [
     fhir:code [ fhir:v "RequestOrchestration" ] ;
     fhir:param ( [ fhir:v "participant" ] )
  ] [
     fhir:code [ fhir:v "Requirements" ]
  ] [
     fhir:code [ fhir:v "ResearchStudy" ]
  ] [
     fhir:code [ fhir:v "ResearchSubject" ]
  ] [
     fhir:code [ fhir:v "RiskAssessment" ]
  ] [
     fhir:code [ fhir:v "Schedule" ] ;
     fhir:param ( [ fhir:v "actor" ] )
  ] [
     fhir:code [ fhir:v "SearchParameter" ]
  ] [
     fhir:code [ fhir:v "ServiceRequest" ] ;
     fhir:param ( [ fhir:v "performer" ] )
  ] [
     fhir:code [ fhir:v "Slot" ]
  ] [
     fhir:code [ fhir:v "Specimen" ]
  ] [
     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:code [ fhir:v "SupplyRequest" ] ;
     fhir:param ( [ fhir:v "requester" ] )
  ] [
     fhir:code [ fhir:v "Task" ]
  ] [
     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" ]
  ] ) .

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


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.