@prefix fhir: <http://hl7.org/fhir/> .
@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/fml/StructureMap/SourceCardinality> a fhir:StructureMap ;
  fhir:resourceDefinition http://hl7.org/fhir/StructureDefinition/StructureMap|0.1.0 ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap SourceCardinality</b></p><a name=\"SourceCardinality\"> </a><a name=\"hcSourceCardinality\"> </a><p><b>url</b>: <a href=\"http://hl7.org/fhir/uv/fml/StructureMap/SourceCardinality\">http://hl7.org/fhir/uv/fml/StructureMap/SourceCardinality</a></p><p><b>name</b>: SourceCardinality</p><p><b>status</b>: Active</p><p><b>description</b>: </p><div><p>Example demonstrating cardinality constraints on source elements</p>\n</div><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/patient.html\">Patient</a></p><p><b>mode</b>: Source Structure Definition</p></blockquote><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/patient.html\">Patient</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: SourceCardinality</p><blockquote><p><b>input</b></p><p><b>mode</b>: Source Instance</p><p><b>name</b>: src</p><p><b>type</b>: Patient</p></blockquote><blockquote><p><b>input</b></p><p><b>mode</b>: Target Instance</p><p><b>name</b>: tgt</p><p><b>type</b>: Patient</p></blockquote><blockquote><p><b>rule</b></p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Min</b></td><td><b>Max</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>src</td><td>1</td><td>1</td><td>id</td><td>v</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: tgt</p><p><b>element</b>: id</p><p><b>transform</b>: copy</p><h3>Parameters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>v</td></tr></table></blockquote><p><b>documentation</b>: error if src has zero or more than one id</p><p><b>name</b>: r1</p></blockquote></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/uv/fml/StructureMap/SourceCardinality"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/fml/StructureMap/SourceCardinality>
  ] ; # 
  fhir:name [ fhir:v "SourceCardinality"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:description [ fhir:v "Example demonstrating cardinality constraints on source elements"] ; # 
  fhir:structure ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
     ] ;
     fhir:mode [ fhir:v "source" ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
     ] ;
     fhir:mode [ fhir:v "target" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "SourceCardinality" ] ;
     fhir:input ( [
       fhir:mode [ fhir:v "source" ] ;
       fhir:name [ fhir:v "src" ] ;
       fhir:type [ fhir:v "Patient" ]
     ] [
       fhir:mode [ fhir:v "target" ] ;
       fhir:name [ fhir:v "tgt" ] ;
       fhir:type [ fhir:v "Patient" ]
     ] ) ;
     fhir:rule ( [
       fhir:source ( [
         fhir:context [ fhir:v "src" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] ) ;
       fhir:documentation [ fhir:v "error if src has zero or more than one id" ] ;
       fhir:name [ fhir:v "r1" ]
     ] )
  ] ) ; # 
  fhir:id [ fhir:v "SourceCardinality"] . # 

# -------------------------------------------------------------------------------------

