@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/cg-incubator/MolecularDefinition/example-haplotype1> a fhir:MolecularDefinition ;
  fhir:resourceDefinition http://hl7.org/fhir/StructureDefinition/MolecularDefinition|0.1.0-ci-build ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-haplotype1"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: MolecularDefinition example-haplotype1</b></p><a name=\"example-haplotype1\"> </a><a name=\"hcexample-haplotype1\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Language: en</p></div><p><b>description</b>: </p><div><p>CYP2C19<em>1B and CYP2C19</em>1.002</p>\n</div><p><b>moleculeType</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/cg-incubator/CodeSystem/moleculardefinition-moleculetype dna}\">DNA sequence</span></p><p><b>member</b>: </p><ul><li><a href=\"MolecularDefinition-example-allele1.html\">First Allele, NG_008384.3:g.5124C&gt;T</a></li><li><a href=\"MolecularDefinition-example-allele2.html\">Second Allele, NG_008384.3:g.85186A&gt;G</a></li></ul><blockquote><p><b>location</b></p><blockquote><p><b>sequenceLocation</b></p><p><b>sequenceContext</b>: <a href=\"MolecularDefinition-example-sequence-lrg584.html\">Starting Sequence Resource: LRG_584</a></p><blockquote><p><b>coordinateInterval</b></p><h3>CoordinateSystems</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>System</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://loinc.org LA30100-4}\">0-based interval counting</span></td></tr></table><p><b>start</b>: 5001</p><p><b>end</b>: 97867</p></blockquote></blockquote></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:description [ fhir:v "CYP2C19*1B and CYP2C19*1.002"] ; # 
  fhir:moleculeType [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://hl7.org/fhir/uv/cg-incubator/CodeSystem/moleculardefinition-moleculetype"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/cg-incubator/CodeSystem/moleculardefinition-moleculetype>
       ] ;
       fhir:code [ fhir:v "dna" ] ;
       fhir:display [ fhir:v "DNA sequence" ]
     ] )
  ] ; # 
  fhir:member ( [
     fhir:l <http://hl7.org/fhir/uv/cg-incubator/MolecularDefinition/example-allele1> ;
     fhir:reference [ fhir:v "MolecularDefinition/example-allele1" ] ;
     fhir:type [
       fhir:v "MolecularDefinition"^^xsd:anyURI ;
       fhir:l fhir:MolecularDefinition
     ] ;
     fhir:display [ fhir:v "First Allele, NG_008384.3:g.5124C>T" ]
  ] [
     fhir:l <http://hl7.org/fhir/uv/cg-incubator/MolecularDefinition/example-allele2> ;
     fhir:reference [ fhir:v "MolecularDefinition/example-allele2" ] ;
     fhir:type [
       fhir:v "MolecularDefinition"^^xsd:anyURI ;
       fhir:l fhir:MolecularDefinition
     ] ;
     fhir:display [ fhir:v "Second Allele, NG_008384.3:g.85186A>G" ]
  ] ) ; # 
  fhir:location ( [
     fhir:sequenceLocation [
       fhir:sequenceContext [
         fhir:l <http://hl7.org/fhir/uv/cg-incubator/MolecularDefinition/example-sequence-lrg584> ;
         fhir:reference [ fhir:v "MolecularDefinition/example-sequence-lrg584" ] ;
         fhir:type [
           fhir:v "MolecularDefinition"^^xsd:anyURI ;
           fhir:l fhir:MolecularDefinition
         ] ;
         fhir:display [ fhir:v "Starting Sequence Resource: LRG_584" ]
       ] ;
       fhir:coordinateInterval [
         fhir:coordinateSystem [
           fhir:system [
             fhir:coding ( [
               a loinc:LA30100-4 ;
               fhir:system [
                 fhir:v "http://loinc.org"^^xsd:anyURI ;
                 fhir:l <http://loinc.org>
               ] ;
               fhir:code [ fhir:v "LA30100-4" ] ;
               fhir:display [ fhir:v "0-based interval counting" ]
             ] ) ;
             fhir:text [ fhir:v "0-based interval counting" ]
           ]
         ] ;
         fhir:start [
           a fhir:Quantity ;
           fhir:value [ fhir:v "5001"^^xsd:decimal ]
         ] ;
         fhir:end [
           a fhir:Quantity ;
           fhir:value [ fhir:v "97867"^^xsd:decimal ]
         ]
       ]
     ]
  ] ) . # 

<http://hl7.org/fhir/uv/cg-incubator/MolecularDefinition/example-allele1> a fhir:Uv .

<http://hl7.org/fhir/uv/cg-incubator/MolecularDefinition/example-allele2> a fhir:Uv .

<http://hl7.org/fhir/uv/cg-incubator/MolecularDefinition/example-sequence-lrg584> a fhir:Uv .

# -------------------------------------------------------------------------------------

