Guía de Implementación de Homologación Regional (PH4H) de Costa Rica
0.1.0 - ci-build
Guía de Implementación de Homologación Regional (PH4H) de Costa Rica - Versión en desarrollo (v0.1.0): no se debe usar en producción. Es un borrador en discusión en las mesas de trabajo de la Iniciativa HL7® Costa Rica y cambia sin aviso. Vea el ciclo de vida de las guías.
| URL oficial: https://hl7.or.cr/fhir/ph4h/StructureMap/CRPractitionerRoleToIPS | Versión: 0.1.0 | ||||
| Standards status: Draft | Nivel de madurez: 0 | Nombre computable: CRPractitionerRoleToIPS | |||
Idioma: es
map "https://hl7.or.cr/fhir/ph4h/StructureMap/CRPractitionerRoleToIPS" = "CRPractitionerRoleToIPS" uses "http://hl7.org/fhir/5.0/StructureDefinition/PractitionerRole" alias PractitionerRole as source uses "http://hl7.org/fhir/4.0/StructureDefinition/PractitionerRole" alias PractitionerRoleR4 as target imports "https://hl7.or.cr/fhir/ph4h/StructureMap/CRComun" group CRPractitionerRoleToIPS(source origen : PractitionerRole, target destino : PractitionerRoleR4) { origen.id as idRecurso -> destino.id = idRecurso; origen -> destino.meta as metadatos then { origen -> metadatos.profile = 'http://hl7.org/fhir/uv/ips/StructureDefinition/PractitionerRole-uv-ips' "perfil"; } "meta"; origen.active as activo -> destino.active = activo "activo"; origen.period as periodo -> destino.period as periodoDestino then Periodo(periodo, periodoDestino) "periodo"; origen.practitioner as profesional -> destino.practitioner as profesionalDestino then Referencia(profesional, profesionalDestino) "profesional"; origen.organization as organizacion -> destino.organization as organizacionDestino then Referencia(organizacion, organizacionDestino) "organizacion"; origen.location as ubicacion -> destino.location as ubicacionDestino then Referencia(ubicacion, ubicacionDestino) "ubicacion"; origen.code as profesion where (coding.where(system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-profesion-salud').exists()) -> destino.code as profesionDestino then { profesion.coding as codificacionCR where (system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-profesion-salud') then { codificacionCR -> profesionDestino.coding as codificacionDestino then Codificacion(codificacionCR, codificacionDestino) "cr"; codificacionCR -> profesionDestino.coding = translate(codificacionCR, 'https://hl7.or.cr/fhir/terminology/ConceptMap/cr-profesion-salud-isco08', 'Coding') "isco08"; } "codings"; profesion.text as texto -> profesionDestino.text = texto; } "profesion"; origen.specialty as especialidad -> destino.specialty as especialidadDestino then Concepto(especialidad, especialidadDestino) "especialidad"; origen.contact as contacto where (purpose.exists().not()) then { contacto.telecom as telecom -> destino.telecom as telecomDestino then Telecom(telecom, telecomDestino); } "contactoGeneral"; }