STU3 Candidate

This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Messagedefinition-example.ttl

Raw Turtle, JSON-LD

A typical message definition

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

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

<http://hl7.org/fhir/MessageDefinition/example> a fhir:MessageDefinition;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">[Put rendering here]</div>"
  ];
  fhir:MessageDefinition.url [ fhir:value "http://hl7.org/fhir/MessageDefinition/example"];
  fhir:MessageDefinition.name [ fhir:value "A24"];
  fhir:MessageDefinition.title [ fhir:value "Link patients notification"];
  fhir:MessageDefinition.status [ fhir:value "draft"];
  fhir:MessageDefinition.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:MessageDefinition.date [ fhir:value "2016-11-09"^^xsd:date];
  fhir:MessageDefinition.publisher [ fhir:value "Health Level Seven, Int'l"];
  fhir:MessageDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org" ]
     ]
  ];
  fhir:MessageDefinition.purpose [ fhir:value "Notifies recipient systems that two patients have been 'linked' - meaning they represent the same individual"];
  fhir:MessageDefinition.event [
     fhir:Coding.system [ fhir:value "http://hl7.org/fhir/message-events" ];
     fhir:Coding.code [ fhir:value "patient-link" ]
  ];
  fhir:MessageDefinition.category [ fhir:value "Notification"];
  fhir:MessageDefinition.focus [
     fhir:index 0;
     fhir:MessageDefinition.focus.code [ fhir:value "Patient" ];
     fhir:MessageDefinition.focus.min [ fhir:value "2"^^xsd:nonNegativeInteger ];
     fhir:MessageDefinition.focus.max [ fhir:value "2" ]
  ];
  fhir:MessageDefinition.responseRequired [ fhir:value "false"^^xsd:boolean] .

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


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.