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/CRPatientToLACPatient | Versión: 0.1.0 | ||||
| Standards status: Draft | Nivel de madurez: 0 | Nombre computable: CRPatientToLACPatient | |||
Idioma: es
map "https://hl7.or.cr/fhir/ph4h/StructureMap/CRPatientToLACPatient" = "CRPatientToLACPatient" uses "http://hl7.org/fhir/5.0/StructureDefinition/Patient" alias Patient as source uses "http://hl7.org/fhir/4.0/StructureDefinition/Patient" alias PatientR4 as target imports "https://hl7.or.cr/fhir/ph4h/StructureMap/CRComun" group CRPatientToLACPatient(source origen : Patient, target destino : PatientR4) { origen.id as idRecurso -> destino.id = idRecurso; origen -> destino.meta as metadatos then { origen -> metadatos.profile = 'http://racsel.org/StructureDefinition/LACPatient' "perfil"; } "meta"; // Pasaporte primero y luego los nacionales, como los slices international y national de LACPatient. origen.identifier as pasaporte where ((use = 'official') and type.coding.where((system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion') and (code = 'pasaporte')).exists()) -> destino.identifier as pasaporteDestino then Identificador(pasaporte, pasaporteDestino) "pasaporte"; origen.identifier as identificadorNacional where ((use = 'official') and type.coding.where((system = 'https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion') and (code in ('cedula-nacional' | 'dimex' | 'ccss'))).exists()) -> destino.identifier as identificadorNacionalDestino then Identificador(identificadorNacional, identificadorNacionalDestino) "nacional"; origen.name as nombre -> destino.name as nombreDestino then Nombre(nombre, nombreDestino) "nombre"; origen.gender as sexo -> destino.gender = sexo "sexo"; origen.birthDate as fechaNacimiento -> destino.birthDate = fechaNacimiento "nacimiento"; origen.telecom as telecom -> destino.telecom as telecomDestino then Telecom(telecom, telecomDestino); origen.address as direccion -> destino.address as direccionDestino then Direccion(direccion, direccionDestino) "direccion"; }