PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
PREFIX rdf:
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A resource that defines a type of message that can be exchanged between systems
EXTENDS @ CLOSED {
a [fhir:MessageDefinition]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:url @?; # The cannonical URL for a given
# MessageDefinition
fhir:identifier @?; # Business Identifier for a given
# MessageDefinition
fhir:version @?; # Business version of the message
# definition
fhir:versionAlgorithm @ OR
@ ?; # How to compare versions
fhir:name @?; # Name for this message definition
# (computer friendly)
fhir:title @?; # Name for this message definition
# (human friendly)
fhir:replaces @?; # Takes the place of
fhir:status @ AND
{fhir:v @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:experimental @?; # For testing purposes, not real
# usage
fhir:date @; # Date last changed
fhir:publisher @?; # Name of the publisher/steward
# (organization or individual)
fhir:contact @?; # Contact details for the publisher
fhir:description @?; # Natural language description of
# the message definition
fhir:useContext @?; # The context that the content is
# intended to support
fhir:jurisdiction @?; # Intended jurisdiction for message
# definition (if applicable)
fhir:purpose @?; # Why this message definition is
# defined
fhir:copyright @?; # Use and/or publishing restrictions
fhir:copyrightLabel @?; # Copyright holder and year(s)
fhir:base @?; # Definition this one is based on
fhir:parent @?; # Protocol/workflow this is part of
fhir:event @ OR
@ ; # Event code or link to the
# EventDefinition
fhir:category @ AND
{fhir:v @fhirvs:message-significance-category}?; # consequence | currency |
# notification
fhir:focus @?; # Resource(s) that are the subject
# of the event
fhir:responseRequired @ AND
{fhir:v @fhirvs:messageheader-response-request}?; # always | on-error | never |
# on-success
fhir:allowedResponse @?; # Responses to this message
fhir:graph @?; # Canonical reference to a
# GraphDefinition
}
# Responses to this message
EXTENDS @ CLOSED {
fhir:message @; # Reference to allowed message
# definition response
fhir:situation @?; # When should this response be used
}
# Resource(s) that are the subject of the event
EXTENDS @ CLOSED {
fhir:code @ AND
{fhir:v @fhirvs:resource-types}; # Type of resource
fhir:profile @?; # Profile that must be adhered to by
# focus
fhir:min @; # Minimum number of focuses of this
# type
fhir:max @?; # Maximum number of focuses of this
# type
}
#---------------------- Cardinality Types (OneOrMore) -------------------
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
#---------------------- Value Sets ------------------------
# The impact of the content of a message.
fhirvs:message-significance-category ["consequence" "currency" "notification"]
# HL7-defined table of codes which identify conditions under which acknowledgments are required to be returned in response to a message.
fhirvs:messageheader-response-request ["always" "on-error" "never" "on-success"]
# The lifecycle status of an artifact.
fhirvs:publication-status ["draft" "active" "retired" "unknown"]
# Concrete FHIR Resource Types
fhirvs:resource-types ["Account" "ActivityDefinition" "ActorDefinition" "AdministrableProductDefinition" "AdverseEvent" "AllergyIntolerance" "Appointment" "AppointmentResponse" "ArtifactAssessment" "AuditEvent" "Basic" "Binary" "BiologicallyDerivedProduct" "BiologicallyDerivedProductDispense" "BodyStructure" "Bundle" "CapabilityStatement" "CarePlan" "CareTeam" "ChargeItem" "ChargeItemDefinition" "Citation" "Claim" "ClaimResponse" "ClinicalImpression" "ClinicalUseDefinition" "CodeSystem" "Communication" "CommunicationRequest" "CompartmentDefinition" "Composition" "ConceptMap" "Condition" "ConditionDefinition" "Consent" "Contract" "Coverage" "CoverageEligibilityRequest" "CoverageEligibilityResponse" "DetectedIssue" "Device" "DeviceAssociation" "DeviceDefinition" "DeviceDispense" "DeviceMetric" "DeviceRequest" "DeviceUsage" "DiagnosticReport" "DocumentReference" "Encounter" "EncounterHistory" "Endpoint" "EnrollmentRequest" "EnrollmentResponse" "EpisodeOfCare" "EventDefinition" "Evidence" "EvidenceReport" "EvidenceVariable" "ExampleScenario" "ExplanationOfBenefit" "FamilyMemberHistory" "Flag" "FormularyItem" "GenomicStudy" "Goal" "GraphDefinition" "Group" "GuidanceResponse" "HealthcareService" "ImagingSelection" "ImagingStudy" "Immunization" "ImmunizationEvaluation" "ImmunizationRecommendation" "ImplementationGuide" "Ingredient" "InsurancePlan" "InsuranceProduct" "InventoryItem" "InventoryReport" "Invoice" "Library" "Linkage" "List" "Location" "ManufacturedItemDefinition" "Measure" "MeasureReport" "Medication" "MedicationAdministration" "MedicationDispense" "MedicationKnowledge" "MedicationRequest" "MedicationStatement" "MedicinalProductDefinition" "MessageDefinition" "MessageHeader" "MolecularSequence" "NamingSystem" "NutritionIntake" "NutritionOrder" "NutritionProduct" "Observation" "ObservationDefinition" "OperationDefinition" "OperationOutcome" "Organization" "OrganizationAffiliation" "PackagedProductDefinition" "Parameters" "Patient" "PaymentNotice" "PaymentReconciliation" "Permission" "Person" "PlanDefinition" "Practitioner" "PractitionerRole" "Procedure" "Provenance" "Questionnaire" "QuestionnaireResponse" "RegulatedAuthorization" "RelatedPerson" "RequestOrchestration" "Requirements" "ResearchStudy" "ResearchSubject" "RiskAssessment" "Schedule" "SearchParameter" "ServiceRequest" "Slot" "Specimen" "SpecimenDefinition" "StructureDefinition" "StructureMap" "Subscription" "SubscriptionStatus" "SubscriptionTopic" "Substance" "SubstanceDefinition" "SubstanceNucleicAcid" "SubstancePolymer" "SubstanceProtein" "SubstanceReferenceInformation" "SubstanceSourceMaterial" "SupplyDelivery" "SupplyRequest" "Task" "TerminologyCapabilities" "TestPlan" "TestReport" "TestScript" "Transport" "ValueSet" "VerificationResult" "VisionPrescription"]