0.1.0 - Costa Rica flag

Guía de Implementación de Homologación Regional (PH4H) de Costa Rica - Versión en desarrollo (v0.1.0): borrador de trabajo de la Iniciativa HL7® Costa Rica, que puede cambiar sin aviso.

:

Page standards status: Draft

Raw ttl | Download

@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/StructureMap/CRPractitionerToIPS> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "CRPractitionerToIPS"] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap CRPractitionerToIPS</b></p><a name=\"CRPractitionerToIPS\"> </a><a name=\"hcCRPractitionerToIPS\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://hl7.or.cr/fhir/ph4h/StructureMap/CRPractitionerToIPS<span style=\"color: navy\">\" = \"</span>CRPractitionerToIPS<span style=\"color: navy\">\"#xD;\n#xD;\n</span><b>uses</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/5.0/StructureDefinition/Practitioner<span style=\"color: navy\">\" </span><b>alias </b>Practitioner <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/4.0/StructureDefinition/Practitioner<span style=\"color: navy\">\" </span><b>alias </b>PractitionerR4 <b>as </b><b>target</b>#xD;\n#xD;\n<b>imports</b><span style=\"color: navy\"> \"</span><a href=\"StructureMap-CRComun.html\" title=\"CRComun\">https://hl7.or.cr/fhir/ph4h/StructureMap/CRComun</a><span style=\"color: navy\">\"#xD;\n</span>#xD;\n<b>group </b>CRPractitionerToIPS<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Practitioner, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>PractitionerR4<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  src.id<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.id = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.meta<b> as </b><span style=\"color: maroon\">m</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>m.profile = <span style=\"color: blue\">'http://hl7.org/fhir/uv/ips/StructureDefinition/Practitioner-uv-ips'</span> <i>\"perfil\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"meta\"</i><span style=\"color: navy\">;</span>#xD;\n  src.identifier<b> as </b><span style=\"color: maroon\">id</span><b> where </b><span style=\"color: navy\">(</span>use = 'official'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier<b> as </b><span style=\"color: maroon\">ti</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    id<b> then </b>Identificador<span style=\"color: navy\">(</span><span style=\"color: maroon\">id</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">ti</span><span style=\"color: navy\">)</span> <i>\"datos\"</i><span style=\"color: navy\">;</span>#xD;\n    id<b> where </b><span style=\"color: navy\">(</span>system.startsWith('https://hl7.or.cr/fhir/sid/colegiado/')<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>ti.assigner<b> as </b><span style=\"color: maroon\">a</span><b> then </b>Colegio<span style=\"color: navy\">(</span><span style=\"color: maroon\">id</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">a</span><span style=\"color: navy\">)</span> <i>\"colegio\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"identificador\"</i><span style=\"color: navy\">;</span>#xD;\n  src.active<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.active = <span style=\"color: maroon\">v</span> <i>\"activo\"</i><span style=\"color: navy\">;</span>#xD;\n  src.name<b> as </b><span style=\"color: maroon\">n</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.name<b> as </b><span style=\"color: maroon\">tn</span><b> then </b>Nombre<span style=\"color: navy\">(</span><span style=\"color: maroon\">n</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tn</span><span style=\"color: navy\">)</span> <i>\"nombre\"</i><span style=\"color: navy\">;</span>#xD;\n  src.telecom<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.telecom<b> as </b><span style=\"color: maroon\">tt</span><b> then </b>Telecom<span style=\"color: navy\">(</span><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.address<b> as </b><span style=\"color: maroon\">a</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.address<b> as </b><span style=\"color: maroon\">ta</span><b> then </b>Direccion<span style=\"color: navy\">(</span><span style=\"color: maroon\">a</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">ta</span><span style=\"color: navy\">)</span> <i>\"direccion\"</i><span style=\"color: navy\">;</span>#xD;\n  src.gender<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.gender = <span style=\"color: maroon\">v</span> <i>\"sexo\"</i><span style=\"color: navy\">;</span>#xD;\n  src.birthDate<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.birthDate = <span style=\"color: maroon\">v</span> <i>\"nacimiento\"</i><span style=\"color: navy\">;</span>#xD;\n  src.qualification<b> as </b><span style=\"color: maroon\">q</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.qualification<b> as </b><span style=\"color: maroon\">tq</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    q.identifier<b> as </b><span style=\"color: maroon\">id</span><span style=\"color: navy\"><b> -&gt; </b></span>tq.identifier<b> as </b><span style=\"color: maroon\">ti</span><b> then </b>Identificador<span style=\"color: navy\">(</span><span style=\"color: maroon\">id</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">ti</span><span style=\"color: navy\">)</span> <i>\"numero\"</i><span style=\"color: navy\">;</span>#xD;\n    q.code<b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\"><b> -&gt; </b></span>tq.code<b> as </b><span style=\"color: maroon\">tc</span><b> then </b>Concepto<span style=\"color: navy\">(</span><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tc</span><span style=\"color: navy\">)</span> <i>\"codigo\"</i><span style=\"color: navy\">;</span>#xD;\n    q.period<b> as </b><span style=\"color: maroon\">p</span><span style=\"color: navy\"><b> -&gt; </b></span>tq.period<b> as </b><span style=\"color: maroon\">tp</span><b> then </b>Periodo<span style=\"color: navy\">(</span><span style=\"color: maroon\">p</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tp</span><span style=\"color: navy\">)</span> <i>\"vigencia\"</i><span style=\"color: navy\">;</span>#xD;\n    q.issuer<b> as </b><span style=\"color: maroon\">i</span><span style=\"color: navy\"><b> -&gt; </b></span>tq.issuer<b> as </b><span style=\"color: maroon\">ti</span><b> then </b>Referencia<span style=\"color: navy\">(</span><span style=\"color: maroon\">i</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">ti</span><span style=\"color: navy\">)</span> <i>\"emisor\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"colegiaturaEspecialidad\"</i><span style=\"color: navy\">;</span>#xD;\n  src.communication<b> as </b><span style=\"color: maroon\">c</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    c.language<b> as </b><span style=\"color: maroon\">l</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.communication<b> as </b><span style=\"color: maroon\">tc</span><b> then </b>Concepto<span style=\"color: navy\">(</span><span style=\"color: maroon\">l</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tc</span><span style=\"color: navy\">)</span> <i>\"codigo\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"idioma\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Nombre del colegio según el sufijo del system del código de colegiado (cr-colegio-profesional).</span>#xD;\n<b>group </b>Colegio<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">id</span><span style=\"color: navy\"> : </span>Identifier, <b>target</b> <span style=\"color: maroon\">a</span><span style=\"color: navy\"> : </span>Reference<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  id<b> where </b><span style=\"color: navy\">(</span>system = 'https://hl7.or.cr/fhir/sid/colegiado/cmc'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>a.display = <span style=\"color: blue\">'Colegio de Médicos y Cirujanos de Costa Rica'</span> <i>\"cmc\"</i><span style=\"color: navy\">;</span>#xD;\n  id<b> where </b><span style=\"color: navy\">(</span>system = 'https://hl7.or.cr/fhir/sid/colegiado/ccd'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>a.display = <span style=\"color: blue\">'Colegio de Cirujanos Dentistas de Costa Rica'</span> <i>\"ccd\"</i><span style=\"color: navy\">;</span>#xD;\n  id<b> where </b><span style=\"color: navy\">(</span>system = 'https://hl7.or.cr/fhir/sid/colegiado/cfc'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>a.display = <span style=\"color: blue\">'Colegio de Farmacéuticos de Costa Rica'</span> <i>\"cfc\"</i><span style=\"color: navy\">;</span>#xD;\n  id<b> where </b><span style=\"color: navy\">(</span>system = 'https://hl7.or.cr/fhir/sid/colegiado/cmqc'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>a.display = <span style=\"color: blue\">'Colegio de Microbiólogos y Químicos Clínicos de Costa Rica'</span> <i>\"cmqc\"</i><span style=\"color: navy\">;</span>#xD;\n  id<b> where </b><span style=\"color: navy\">(</span>system = 'https://hl7.or.cr/fhir/sid/colegiado/cecr'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>a.display = <span style=\"color: blue\">'Colegio de Enfermeras de Costa Rica'</span> <i>\"cecr\"</i><span style=\"color: navy\">;</span>#xD;\n  id<b> where </b><span style=\"color: navy\">(</span>system = 'https://hl7.or.cr/fhir/sid/colegiado/cpp'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>a.display = <span style=\"color: blue\">'Colegio de Profesionales en Psicología de Costa Rica'</span> <i>\"cpp\"</i><span style=\"color: navy\">;</span>#xD;\n  id<b> where </b><span style=\"color: navy\">(</span>system = 'https://hl7.or.cr/fhir/sid/colegiado/cpn'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>a.display = <span style=\"color: blue\">'Colegio de Profesionales en Nutrición de Costa Rica'</span> <i>\"cpn\"</i><span style=\"color: navy\">;</span>#xD;\n  id<b> where </b><span style=\"color: navy\">(</span>system = 'https://hl7.or.cr/fhir/sid/colegiado/ctcr'<span style=\"color: navy\">)</span><span style=\"color: navy\"><b> -&gt; </b></span>a.display = <span style=\"color: blue\">'Colegio de Terapeutas de Costa Rica'</span> <i>\"ctcr\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"
  ] ;
  fhir:StructureMap.url [ fhir:value "https://hl7.or.cr/fhir/ph4h/StructureMap/CRPractitionerToIPS"] ;
  fhir:StructureMap.version [ fhir:value "0.1.0"] ;
  fhir:StructureMap.name [ fhir:value "CRPractitionerToIPS"] ;
  fhir:StructureMap.status [ fhir:value "draft"] ;
  fhir:StructureMap.date [ fhir:value "2026-09-30T16:04:28-06:00"^^xsd:dateTime] ;
  fhir:StructureMap.publisher [ fhir:value "HL7 Costa Rica"] ;
  fhir:StructureMap.contact [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "HL7 Costa Rica" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://hl7.or.cr" ]
     ]
  ] ;
  fhir:StructureMap.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "CR" ] ;
       fhir:Coding.display [ fhir:value "Costa Rica" ]
     ]
  ] ;
  fhir:StructureMap.structure [
     fhir:index -1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/Practitioner" ;
       fhir:link <http://hl7.org/fhir/5.0/StructureDefinition/Practitioner>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "Practitioner" ]
  ], [
     fhir:index -1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://hl7.org/fhir/4.0/StructureDefinition/Practitioner" ;
       fhir:link <http://hl7.org/fhir/4.0/StructureDefinition/Practitioner>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "PractitionerR4" ]
  ] ;
  fhir:StructureMap.import [
     fhir:value "https://hl7.or.cr/fhir/ph4h/StructureMap/CRComun" ;
     fhir:index -1 ;
     fhir:link <https://hl7.or.cr/fhir/ph4h/StructureMap/CRComun>
  ] ;
  fhir:StructureMap.group [
     fhir:index -1 ;
     fhir:StructureMap.group.name [ fhir:value "CRPractitionerToIPS" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.input [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "src" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "Practitioner" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "tgt" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "PractitionerR4" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "id" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "meta" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "meta" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "m" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "perfil" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "m" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "profile" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index -1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "http://hl7.org/fhir/uv/ips/StructureDefinition/Practitioner-uv-ips" ]
           ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "identificador" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "identifier" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "use = 'official'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "identifier" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "ti" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "datos" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "id" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "Identificador" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "id" ;
             fhir:index -1
           ], [
             fhir:value "ti" ;
             fhir:index -1
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "colegio" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "system.startsWith('https://hl7.or.cr/fhir/sid/colegiado/')" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "ti" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "assigner" ] ;
           fhir:StructureMap.group.rule.target.variable [ fhir:value "a" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "Colegio" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "id" ;
             fhir:index -1
           ], [
             fhir:value "a" ;
             fhir:index -1
           ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "activo" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "active" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "active" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "nombre" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "name" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "n" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "name" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tn" ]
       ] ;
       fhir:StructureMap.group.rule.dependent [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.dependent.name [ fhir:value "Nombre" ] ;
         fhir:StructureMap.group.rule.dependent.variable [
           fhir:value "n" ;
           fhir:index -1
         ], [
           fhir:value "tn" ;
           fhir:index -1
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "telecom" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "telecom" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "t" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "telecom" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tt" ]
       ] ;
       fhir:StructureMap.group.rule.dependent [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.dependent.name [ fhir:value "Telecom" ] ;
         fhir:StructureMap.group.rule.dependent.variable [
           fhir:value "t" ;
           fhir:index -1
         ], [
           fhir:value "tt" ;
           fhir:index -1
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "direccion" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "address" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "a" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "address" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "ta" ]
       ] ;
       fhir:StructureMap.group.rule.dependent [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.dependent.name [ fhir:value "Direccion" ] ;
         fhir:StructureMap.group.rule.dependent.variable [
           fhir:value "a" ;
           fhir:index -1
         ], [
           fhir:value "ta" ;
           fhir:index -1
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "sexo" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "gender" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "gender" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "nacimiento" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "birthDate" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "birthDate" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "v" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "colegiaturaEspecialidad" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "qualification" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "q" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "qualification" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tq" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "numero" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "q" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "identifier" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "id" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tq" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "identifier" ] ;
           fhir:StructureMap.group.rule.target.variable [ fhir:value "ti" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "Identificador" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "id" ;
             fhir:index -1
           ], [
             fhir:value "ti" ;
             fhir:index -1
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "codigo" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "q" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "code" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "c" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tq" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "code" ] ;
           fhir:StructureMap.group.rule.target.variable [ fhir:value "tc" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "Concepto" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "c" ;
             fhir:index -1
           ], [
             fhir:value "tc" ;
             fhir:index -1
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "vigencia" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "q" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "period" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "p" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tq" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "period" ] ;
           fhir:StructureMap.group.rule.target.variable [ fhir:value "tp" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "Periodo" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "p" ;
             fhir:index -1
           ], [
             fhir:value "tp" ;
             fhir:index -1
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "emisor" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "q" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "issuer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "i" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tq" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "issuer" ] ;
           fhir:StructureMap.group.rule.target.variable [ fhir:value "ti" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "Referencia" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "i" ;
             fhir:index -1
           ], [
             fhir:value "ti" ;
             fhir:index -1
           ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "idioma" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "communication" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "c" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "codigo" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "c" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "language" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "l" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "communication" ] ;
           fhir:StructureMap.group.rule.target.variable [ fhir:value "tc" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "Concepto" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "l" ;
             fhir:index -1
           ], [
             fhir:value "tc" ;
             fhir:index -1
           ]
         ]
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:StructureMap.group.name [ fhir:value "Colegio" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.documentation [ fhir:value "Nombre del colegio según el sufijo del system del código de colegiado (cr-colegio-profesional)." ] ;
     fhir:StructureMap.group.input [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "id" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "Identifier" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "a" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "Reference" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "cmc" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://hl7.or.cr/fhir/sid/colegiado/cmc'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "display" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Colegio de Médicos y Cirujanos de Costa Rica" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "ccd" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://hl7.or.cr/fhir/sid/colegiado/ccd'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "display" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Colegio de Cirujanos Dentistas de Costa Rica" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "cfc" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://hl7.or.cr/fhir/sid/colegiado/cfc'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "display" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Colegio de Farmacéuticos de Costa Rica" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "cmqc" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://hl7.or.cr/fhir/sid/colegiado/cmqc'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "display" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Colegio de Microbiólogos y Químicos Clínicos de Costa Rica" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "cecr" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://hl7.or.cr/fhir/sid/colegiado/cecr'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "display" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Colegio de Enfermeras de Costa Rica" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "cpp" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://hl7.or.cr/fhir/sid/colegiado/cpp'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "display" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Colegio de Profesionales en Psicología de Costa Rica" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "cpn" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://hl7.or.cr/fhir/sid/colegiado/cpn'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "display" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Colegio de Profesionales en Nutrición de Costa Rica" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "ctcr" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://hl7.or.cr/fhir/sid/colegiado/ctcr'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "a" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "display" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index -1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Colegio de Terapeutas de Costa Rica" ]
         ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/CRPractitionerToIPS.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/StructureMap/CRPractitionerToIPS.ttl> .