R6 Ballot (2nd Draft)

Publish-box (todo)

Example MolecularDefinition/example-genotype1 (Turtle)

Clinical Genomics Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

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

Simple Genotype example 1

@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 -------------------------------------------------------------------

[a fhir:MolecularDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-genotype1"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/genotype"^^xsd:anyURI ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/genotype>
     ] )
  ] ; # 
  fhir:type [ fhir:v "dna"] ; # 
  fhir:memberState ( [
     fhir:reference [ fhir:v "MolecularDefinition/example-haplotype1" ] ;
     fhir:type [ fhir:v "MolecularDefinition"^^xsd:anyURI ] ;
     fhir:display [ fhir:v "First haplotype, CYP2C19*1B" ]
  ] [
     fhir:reference [ fhir:v "MolecularDefinition/example-haplotype2" ] ;
     fhir:type [ fhir:v "MolecularDefinition"^^xsd:anyURI ] ;
     fhir:display [ fhir:v "Second haplotype, HLA00002" ]
  ] )] . # 

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


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.