Narrativa gerada: StructureMap StructureMapBRIPS #xD; map "https://ips.saude.gov.br/fhir/StructureMap/StructureMapBRIPS" = "StructureMapBRIPS"#xD; #xD; // Mapeamento de Bundle da RNDS para o IPS#xD; #xD; uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias TLeft as source#xD; uses "http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips" alias TRight as target#xD; #xD; group RNDSIPSBundle(source src : TLeft, target tgt : TRight) {#xD; src.id as RNDSID -> tgt as IPS then {#xD; RNDSID -> tgt.identifier as IPSIdentifier then {#xD; RNDSID -> IPS.type = 'document', IPS.timestamp = (now()), IPSIdentifier.system = 'urn:ietf:rfc:3986', uuid() as uuid, IPSIdentifier.value = append('urn:uuid:', uuid) "SetDocumentTypeAndTimestampAndIdentifier";#xD; } "SetMetaData";#xD; } "SetBundleMetaData";#xD; src.entry default "empty" as RNDSEntry -> tgt.entry as IPSEntry, tgt.entry as IPSEntryCondition, tgt.entry as IPSEntryAllergyIntolerance, tgt.entry as IPSEntryMedicationStatement, uuid() as IPSPatientReference, uuid() as IPSPractitionerReference, uuid() as IPSConditionNoKnownProblemsReference, uuid() as IPSMedicationStatementNoKnownMedicationsReference, uuid() as IPSAllergyIntoleranceNoKnownAllergiesReference, uuid() as IPSVitalSignsNoKnownVitalSignsReference then {#xD; RNDSEntry where (RNDSEntry = 'empty') -> IPSEntry then {#xD; RNDSEntry -> uuid() as uuid, IPSEntry.fullUrl = append('urn:uuid:', uuid) "SetFullUrl";#xD; RNDSEntry -> create('Composition') as IPSComposition then {#xD; RNDSEntry -> IPSComposition.status = 'final', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '60591-5', c.display = 'Patient Summary Document', cc.coding = c, IPSComposition.type = cc, IPSComposition.date = (now()), IPSComposition.id = uuid(), (today()) as today, IPSComposition.title = append('Patient Summary as of:', today), IPSComposition.confidentiality = 'N', IPSComposition.text as IPSCompositionText, IPSCompositionText.status = 'generated', IPSCompositionText.div = append(' Title: International Patient Summary from Brazil, code: http://loinc.org#60591-5, status: generated, confidentiality: N ') "SetCompositionFirstOrderFields";#xD; RNDSEntry -> IPSComposition.subject as IPSCompositionSubject, IPSComposition.author as IPSCompositionAuthor, IPSComposition.custodian as IPSCompositionCustodian, IPSComposition.section as IPSCompositionSectionActiveProblems, IPSComposition.section as IPSCompositionMedication, IPSComposition.section as IPSCompositionAllergiesAndIntolerances, IPSComposition.section as IPSCompositionVitalSigns then {#xD; RNDSEntry -> IPSCompositionSubject.reference = append('urn:uuid:', IPSPatientReference), IPSCompositionAuthor.reference = append('urn:uuid:', IPSPractitionerReference), IPSCompositionCustodian.reference = append('urn:uuid:', IPSPractitionerReference) "SetReferences";#xD; RNDSEntry -> IPSCompositionSectionActiveProblems.title = 'Active Problems', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '11450-4', c.display = 'Problem list Reported', cc.coding = c, IPSCompositionSectionActiveProblems.code = cc, IPSCompositionSectionActiveProblems.entry as IPSCompositionSectionActiveProblemsEntry, IPSCompositionSectionActiveProblemsEntry.reference = append('urn:uuid:', IPSConditionNoKnownProblemsReference) "SetActiveProblems";#xD; RNDSEntry -> IPSCompositionMedication.title = 'Medications', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '10160-0', c.display = 'History of Medication use Narrative', cc.coding = c, IPSCompositionMedication.code = cc, IPSCompositionMedication.entry as IPSCompositionSectionMedicationEntry, IPSCompositionSectionMedicationEntry.reference = append('urn:uuid:', IPSMedicationStatementNoKnownMedicationsReference) "SetTitleMedications";#xD; RNDSEntry -> IPSCompositionAllergiesAndIntolerances.title = 'Allergies and Intolerances', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '48765-2', c.display = 'Allergies and adverse reactions Document', cc.coding = c, IPSCompositionAllergiesAndIntolerances.code = cc, IPSCompositionAllergiesAndIntolerances.entry as IPSCompositionSectionAllergiesAndIntolerancesEntry, IPSCompositionSectionAllergiesAndIntolerancesEntry.reference = append('urn:uuid:', IPSAllergyIntoleranceNoKnownAllergiesReference) "SetAllergiesAndIntolerances";#xD; RNDSEntry -> IPSCompositionVitalSigns.title = 'Vital Signs', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '8716-3', c.display = 'Vital signs', cc.coding = c, IPSCompositionVitalSigns.code = cc, IPSCompositionVitalSigns.entry as IPSCompositionVitalSignsEntry, IPSCompositionVitalSignsEntry.reference = append('urn:uuid:', IPSVitalSignsNoKnownVitalSignsReference) "SetVitalSigns";#xD; } "SetSubjectAuthorCustodianSection";#xD; RNDSEntry -> IPSEntry.resource = IPSComposition "SetResourceComposition";#xD; } "SetComposition";#xD; } "SetEmptyComposition";#xD; RNDSEntry where (RNDSEntry = 'empty') -> IPSEntryCondition then {#xD; RNDSEntry -> uuid() as uuid, IPSEntryCondition.fullUrl = append('urn:uuid:', uuid) "SetFullUrl";#xD; RNDSEntry -> create('Condition') as IPSCondition then {#xD; RNDSEntry -> create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical', c.code = 'active', cc.coding = c, IPSCondition.clinicalStatus = cc "SetClinicalStatus";#xD; RNDSEntry -> create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips', c.code = 'no-problem-info', c.display = 'No information about problems', cc.coding = c, IPSCondition.code = cc "SetCode";#xD; RNDSEntry -> create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status', c.code = 'confirmed', c.display = 'Confirmed', cc.coding = c, IPSCondition.verificationStatus = cc "SetCode";#xD; RNDSEntry -> IPSCondition.subject as IPSConditionSubject, IPSConditionSubject.reference = append('urn:uuid:', IPSPatientReference) "SetSubject";#xD; RNDSEntry -> IPSEntryCondition.resource as IPSEntryConditionResource, IPSEntryConditionResource.text as IPSEntryConditionResourceText, IPSEntryConditionResourceText.status = 'generated', IPSCondition.code as IPSConditionCode, IPSConditionCode.coding as IPSConditionCodeCoding, IPSConditionCodeCoding.code as IPSConditionCodeCodingCode, IPSCondition.clinicalStatus as IPSConditionClinicalStatus, IPSConditionClinicalStatus.coding as IPSConditionClinicalStatusCoding, IPSConditionClinicalStatusCoding.code as IPSConditionClinicalStatusCodingCode, IPSCondition.verificationStatus as IPSConditionVerificationStatus, IPSConditionVerificationStatus.coding as IPSConditionVerificationStatusCoding, IPSConditionVerificationStatusCoding.code as IPSConditionVerificationStatusCodingCode, IPSEntryConditionResourceText.div = append(' Condition', IPSConditionCodeCodingCode, ',clinicalStatus:', IPSConditionClinicalStatusCodingCode, ',verificationStatus:', IPSConditionVerificationStatusCodingCode, ' ') "SetConditionNarrativeElement";#xD; RNDSEntry -> IPSEntryCondition.resource = IPSCondition "SetCondition";#xD; } "SetCondition";#xD; } "SetEmptyCondition";#xD; RNDSEntry where (RNDSEntry = 'empty') -> IPSEntryAllergyIntolerance then {#xD; RNDSEntry -> uuid() as uuid, IPSEntryAllergyIntolerance.fullUrl = append('urn:uuid:', uuid) "SetFullUrl";#xD; RNDSEntry -> create('AllergyIntolerance') as IPSAllergyIntolerance then {#xD; RNDSEntry -> create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical', c.code = 'active', cc.coding = c, IPSAllergyIntolerance.clinicalStatus = cc "SetClinicalStatus";#xD; RNDSEntry -> create('Coding') as c, c.system = 'http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips', c.code = 'no-allergy-info', c.display = 'No information about allergies', create('CodeableConcept') as cc, cc.coding = c, IPSAllergyIntolerance.code = cc "SetCode";#xD; RNDSEntry -> IPSAllergyIntolerance.patient as IPSAllergyIntolerancePatient, IPSAllergyIntolerancePatient.reference = append('urn:uuid:', IPSPatientReference) "SetPatient";#xD; RNDSEntry -> IPSEntryAllergyIntolerance.resource = IPSAllergyIntolerance "SetAllergyIntolerance";#xD; RNDSEntry -> IPSAllergyIntolerance.text as IPSAllergyIntoleranceText, IPSAllergyIntoleranceText.status = 'generated', IPSAllergyIntoleranceText.div = ' No allergy information ' "SetAllergyText";#xD; } "SetAllergyIntolerance";#xD; } "SetEmptyAllergyIntolerance";#xD; RNDSEntry where (RNDSEntry = 'empty') -> IPSEntryMedicationStatement then {#xD; RNDSEntry -> create('MedicationStatement') as IPSMedicationStatement then {#xD; RNDSEntry -> IPSMedicationStatement.status = 'unknown' "SetStatus";#xD; RNDSEntry -> create('Coding') as c, c.system = 'http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips', c.code = 'no-medication-info', c.display = 'No information about medications', create('CodeableConcept') as cc, cc.coding = c, IPSMedicationStatement.medication = cc "SetCode";#xD; RNDSEntry -> IPSMedicationStatement.effectivePeriod as IPSMedicationStatementEffectivePeriod then NotApplicable(RNDSEntry, IPSMedicationStatementEffectivePeriod) "SetEffectivePeriod";#xD; RNDSEntry -> IPSMedicationStatement.subject as IPSMedicationStatementSubject, IPSMedicationStatementSubject.reference = append('urn:uuid:', IPSPatientReference) "SetSubject";#xD; RNDSEntry -> uuid() as uuid, IPSEntryMedicationStatement.fullUrl = append('urn:uuid:', uuid), IPSEntryMedicationStatement.resource = IPSMedicationStatement "SetMedicationStatement";#xD; } "SetMedicationStatement";#xD; } "SetEmptyMedicationStatement";#xD; } "SetEmptyIPSEntries";#xD; src.entry as RNDSEntry -> tgt.entry as IPSEntry, tgt.entry as IPSEntryCondition, tgt.entry as IPSEntryVitalSigns, tgt.entry as IPSEntryResults, tgt.entry as IPSEntrySpecimen, tgt.entry as IPSEntryImmunization, tgt.entry as IPSEntryProcedures, tgt.entry as IPSEntryMedicationRequests, tgt.entry as IPSEntryMedications, tgt.entry as IPSEntryAllergyIntolerance, tgt.entry as IPSEntryMedicationStatement, tgt.entry as IPSEntryPatient, tgt.entry as IPSEntryPractitioner, tgt.entry as IPSEntryCustodian, uuid() as IPSPatientReference, uuid() as IPSPractitionerReference then {#xD; RNDSEntry.resource as RNDSEntryResource -> create('Composition') as IPSEntryResourceComposition then {#xD; RNDSEntry -> IPSEntryResourceComposition.status = 'final', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '60591-5', c.display = 'Patient Summary Document', cc.coding = c, IPSEntryResourceComposition.type = cc, IPSEntryResourceComposition.date = (now()), IPSEntryResourceComposition.id = uuid(), (today()) as today, IPSEntryResourceComposition.title = append('Patient Summary as of', today), IPSEntryResourceComposition.confidentiality = 'N', IPSEntryResourceComposition.text as IPSEntryResourceCompositionText, IPSEntryResourceCompositionText.status = 'generated', IPSEntryResourceCompositionText.div = append(' Title: International Patient Summary from Brazil, code: http://loinc.org#60591-5, status: generated, confidentiality: N ') "SetCompositionFirstOrderFields";#xD; RNDSEntryResource -> IPSEntryResourceComposition.subject as IPSEntryResourceCompositionSubject, IPSEntryResourceComposition.author as IPSEntryResourceCompositionPractitioner, IPSEntryResourceComposition.custodian as IPSEntryResourceCompositionCustodian, IPSEntryResourceComposition.section as IPSEntryResourceCompositionSectionActiveProblems, IPSEntryResourceComposition.section as IPSEntryResourceCompositionSectionMedications, IPSEntryResourceComposition.section as IPSEntryResourceCompositionSectionAllergiesAndIntolerances, IPSEntryResourceComposition.section as IPSEntryResourceCompositionSectionResults, IPSEntryResourceComposition.section as IPSEntryResourceCompositionSectionVitalSigns then {#xD; // Bloco que seta as referencias a subject, practitioner e custodian no composition#xD; RNDSEntryResource -> IPSEntryResourceCompositionSubject.reference = append('urn:uuid:', IPSPatientReference), IPSEntryResourceCompositionPractitioner.reference = append('urn:uuid:', IPSPractitionerReference), IPSEntryResourceCompositionCustodian.reference = append('urn:uuid:', IPSPractitionerReference) "SetResourceCompositionReferences";#xD; // Bloco que cria a secao de problemas no composition#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionActiveProblems.title = 'Active Problems', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '11450-4', c.display = 'Problem list Reported', cc.coding = c, IPSEntryResourceCompositionSectionActiveProblems.code = cc "SetActiveProblems";#xD; // Bloco que cria condition vazio quando nao ha conditions no bundle#xD; RNDSEntryResource where (RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRCondicaoSaude').empty()) -> create('Condition') as IPSEntryEmptyCondition, uuid() as IPSEntryEmptyConditionId, IPSEntryEmptyCondition.id = IPSEntryEmptyConditionId, create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical', c.code = 'active', cc.coding = c, IPSEntryEmptyCondition.clinicalStatus = cc, create('Coding') as c, c.system = 'http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips', c.code = 'no-problem-info', c.display = 'No information about problems', create('CodeableConcept') as cc, cc.coding = c, IPSEntryEmptyCondition.code = cc, IPSEntryEmptyCondition.subject as IPSEntryEmptyConditionSubject, IPSEntryEmptyConditionSubject.reference = append('urn:uuid:', IPSPatientReference), IPSEntryCondition.fullUrl = append('urn:uuid:', IPSEntryEmptyConditionId), IPSEntryCondition.resource = IPSEntryEmptyCondition, IPSEntryResourceCompositionSectionActiveProblems.entry as IPSEntryResourceCompositionSectionActiveProblemsEntry, IPSEntryResourceCompositionSectionActiveProblemsEntry.reference = append('urn:uuid:', IPSEntryEmptyConditionId) "CreateNoKnownConditions";#xD; // Bloco que cria a secao de alergias no composition#xD; RNDSEntry -> IPSEntryResourceCompositionSectionAllergiesAndIntolerances.title = 'Allergies and Intolerances', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '48765-2', c.display = 'Allergies and adverse reactions Document', cc.coding = c, IPSEntryResourceCompositionSectionAllergiesAndIntolerances.code = cc "SetAllergiesAndIntolerances";#xD; // Bloco que cria o Allergy Intolerance vazio quando nao ha allergy intolerance no bundle#xD; RNDSEntryResource where (RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAlergiaReacaoAdversa').empty()) -> create('AllergyIntolerance') as IPSEntryEmptyAllergyIntolerance, uuid() as IPSEntryEmptyAllergyIntoleranceId, IPSEntryEmptyAllergyIntolerance.id = IPSEntryEmptyAllergyIntoleranceId, create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical', c.code = 'active', cc.coding = c, IPSEntryEmptyAllergyIntolerance.clinicalStatus = cc, create('Coding') as c, c.system = 'http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips', c.code = 'no-allergy-info', c.display = 'No information about allergies', create('CodeableConcept') as cc, cc.coding = c, IPSEntryEmptyAllergyIntolerance.code = cc, IPSEntryEmptyAllergyIntolerance.patient as IPSEntryEmptyAllergyIntolerancePatient, IPSEntryEmptyAllergyIntolerancePatient.reference = append('urn:uuid:', IPSPatientReference), IPSEntryEmptyAllergyIntolerance.text as IPSEntryEmptyAllergyIntoleranceText, IPSEntryEmptyAllergyIntoleranceText.status = 'generated', IPSEntryEmptyAllergyIntoleranceText.div = ' No known allergies ', IPSEntryAllergyIntolerance.fullUrl = append('urn:uuid:', IPSEntryEmptyAllergyIntoleranceId), IPSEntryAllergyIntolerance.resource = IPSEntryEmptyAllergyIntolerance, IPSEntryResourceCompositionSectionAllergiesAndIntolerances.entry as IPSEntryResourceCompositionSectionAllergiesAndIntolerancesEntry, IPSEntryResourceCompositionSectionAllergiesAndIntolerancesEntry.reference = append('urn:uuid:', IPSEntryEmptyAllergyIntoleranceId) "CreateNoKnownConditions";#xD; // Bloco que cria Medication Statement vazio quando nao ha medication statement no bundle#xD; RNDSEntryResource where (RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedicamento').empty()) -> create('MedicationStatement') as IPSEntryEmptyMedicationStatement, uuid() as IPSEntryEmptyMedicationStatementId, IPSEntryEmptyMedicationStatement.id = IPSEntryEmptyMedicationStatementId, create('Coding') as c, c.system = 'http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips', c.code = 'no-medication-info', c.display = 'No information about medications', create('CodeableConcept') as cc, cc.coding = c, IPSEntryEmptyMedicationStatement.medication = cc, IPSEntryEmptyMedicationStatement.status = 'unknown', IPSEntryEmptyMedicationStatement.subject as IPSEntryEmptyMedicationStatementSubject, IPSEntryEmptyMedicationStatementSubject.reference = append('urn:uuid:', IPSPatientReference), IPSEntryMedicationStatement.fullUrl = append('urn:uuid:', IPSEntryEmptyMedicationStatementId), IPSEntryMedicationStatement.resource = IPSEntryEmptyMedicationStatement, IPSEntryResourceCompositionSectionMedications.entry as IPSEntryResourceCompositionSectionMedicationEntry, IPSEntryResourceCompositionSectionMedicationEntry.reference = append('urn:uuid:', IPSEntryEmptyMedicationStatementId) "CreateNoKnownMedications";#xD; // Bloco que cria conditions BRCondicaoSaude#xD; RNDSEntry -> tgt.entry then {#xD; RNDSEntry.resource as RNDSEntryResource -> tgt.entry then {#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> tgt.entry then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> tgt.entry then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRCondicaoSaude').empty().not()) -> tgt.entry then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> IPSEntryResourceCompositionSectionActiveProblems.entry as IPSEntryResourceCompositionSectionActiveProblemsEntry, IPSEntryResourceCompositionSectionActiveProblemsEntry.reference = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "IterateRNDSEntryResource";#xD; } "IterateRNDSEntry";#xD; // Bloco que cria alergias BRAlergiaReacaoAdversa#xD; RNDSEntry -> tgt.entry then {#xD; RNDSEntry.resource as RNDSEntryResource -> tgt.entry then {#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> tgt.entry then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> tgt.entry then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAlergiaReacaoAdversa').empty().not()) -> tgt.entry then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> IPSEntryResourceCompositionSectionAllergiesAndIntolerances.entry as IPSEntryResourceCompositionSectionAllergiesAndIntolerancesEntry, IPSEntryResourceCompositionSectionAllergiesAndIntolerancesEntry.reference = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "IterateRNDSEntryResource";#xD; } "IterateRNDSEntry";#xD; // Bloco que cria Secao de REL#xD; RNDSEntryResource where (RNDSEntryResource.entry.resource.entry.resource.meta.where((profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRDiagnosticoCOVID19-TesteRapido') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRDiagnosticoLaboratorioClinico') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRObservacaoDescritiva')).empty().not()) -> IPSEntryResourceComposition then {#xD; RNDSEntry -> IPSEntryResourceCompositionSectionResults then {#xD; // cria section de results no composition#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionResults then {#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionResults.title = 'Results', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '30954-2', c.display = 'Relevant diagnostic tests/laboratory data Narrative', cc.coding = c, IPSEntryResourceCompositionSectionResults.code = cc "SetResultsNarrative";#xD; } "SetCompositionSectionResults";#xD; } "CreateSectionResults";#xD; } "CreateSectionResultsIfExist";#xD; // Bloco que mapeia REL#xD; RNDSEntry -> tgt.entry then {#xD; RNDSEntry.resource as RNDSEntryResource -> tgt.entry then {#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> tgt.entry then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> tgt.entry then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where((profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRDiagnosticoCOVID19-TesteRapido') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRDiagnosticoLaboratorioClinico') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRObservacaoDescritiva')).empty().not()) -> tgt.entry then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> IPSEntryResourceCompositionSectionResults.entry as IPSEntryResourceCompositionSectionResultsEntry, IPSEntryResourceCompositionSectionResultsEntry.reference = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "IterateRNDSEntryResource";#xD; } "IterateRNDSEntry";#xD; // Bloco que mapeia BRAmostraBiologica-1.0#xD; RNDSEntry -> tgt.entry then {#xD; RNDSEntry.resource as RNDSEntryResource -> tgt.entry then {#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> tgt.entry then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> tgt.entry then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAmostraBiologica').empty().not()) -> tgt.entry then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "IterateRNDSEntryResource";#xD; } "IterateRNDSEntry";#xD; // Bloco que cria Secao de Vital Signs#xD; RNDSEntryResource where (RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedidaObservada').empty().not()) -> IPSEntryResourceComposition then {#xD; RNDSEntry -> IPSEntryResourceCompositionSectionVitalSigns then {#xD; // cria section de results no composition#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionVitalSigns then {#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionVitalSigns.title = 'Vital Signs', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '8716-3', c.display = 'Vital signs', cc.coding = c, IPSEntryResourceCompositionSectionVitalSigns.code = cc "SetResultsNarrative";#xD; } "SetCompositionSectionResults";#xD; } "CreateSectionResults";#xD; } "CreateSectionResultsIfExist";#xD; // Bloco que cria Vital Signs#xD; RNDSEntry -> tgt.entry then {#xD; RNDSEntry.resource as RNDSEntryResource -> tgt.entry then {#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> tgt.entry then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> tgt.entry then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedidaObservada').empty().not()) -> tgt.entry then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> IPSEntryResourceCompositionSectionVitalSigns.entry as IPSEntryResourceCompositionSectionVitalSignsEntry, IPSEntryResourceCompositionSectionVitalSignsEntry.reference = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "IterateRNDSEntryResource";#xD; } "IterateRNDSEntry";#xD; // Bloco que cria secao de Imunizacao#xD; RNDSEntryResource where (RNDSEntryResource.entry.resource.entry.resource.meta.where((profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministrado') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministradoCarga') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministradoCampanha')).empty().not()) -> IPSEntryResourceComposition then {#xD; RNDSEntry -> IPSEntryResourceComposition.section as IPSEntryResourceCompositionSectionImmunizations then {#xD; // cria section de immunizations no composition#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionImmunizations then {#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionImmunizations.title = 'Immunizations', create('Coding') as c, c.system = 'http://loinc.org', c.code = '11369-6', c.display = 'History of Immunization Narrative', create('CodeableConcept') as cc, cc.coding = c, IPSEntryResourceCompositionSectionImmunizations.code = cc "SetImmunizationsNarrative";#xD; } "SetCompositionSectionImmunizations";#xD; // Bloco que mapeia BRImunobiologicoAdministrado-2.0, BRImunobiologicoAdministradoCampanha-1.0 e BRImunobiologicoAdministradoCarga-2.0#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> tgt.entry then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> tgt.entry then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where((profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministrado') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministradoCarga') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministradoCampanha')).empty().not()) -> tgt.entry then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> IPSEntryResourceCompositionSectionImmunizations.entry as IPSEntryResourceCompositionSectionImmunizationsEntry, IPSEntryResourceCompositionSectionImmunizationsEntry.reference = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "CreateSectionImmunizations";#xD; } "CreateSectionImmunizationsIfExists";#xD; // http://www.saude.gov.br/fhir/r4/StructureDefinition/BRProcedimentoRealizado-1.0#xD; RNDSEntryResource where (RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRProcedimentoRealizado').empty().not()) -> IPSEntryResourceComposition then {#xD; RNDSEntry -> IPSEntryResourceComposition.section as IPSEntryResourceCompositionSectionProcedures then {#xD; // cria section de procedures no composition#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionProcedures then {#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionProcedures.title = 'History of procedures', create('CodeableConcept') as cc, create('Coding') as c, c.system = 'http://loinc.org', c.code = '47519-4', c.display = 'History of Procedures Narrative', cc.coding = c, IPSEntryResourceCompositionSectionProcedures.code = cc "SetProceduresNarrative";#xD; } "SetCompositionSectionProcedures";#xD; // Bloco que mapeia BRImunobiologicoAdministrado-2.0, BRImunobiologicoAdministradoCampanha-1.0 e BRImunobiologicoAdministradoCarga-2.0#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> tgt.entry then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> tgt.entry then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRProcedimentoRealizado').empty().not()) -> tgt.entry then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> IPSEntryResourceCompositionSectionProcedures.entry as IPSEntryResourceCompositionSectionProceduresEntry, IPSEntryResourceCompositionSectionProceduresEntry.reference = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "CreateSectionProcedures";#xD; } "CreateSectionProceduresIfExists";#xD; // cria section de medications no composition#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionMedications then {#xD; RNDSEntryResource -> IPSEntryResourceCompositionSectionMedications.title = 'Medication', create('Coding') as c, c.system = 'http://loinc.org', c.code = '10160-0', c.display = 'History of Medication use Narrative', create('CodeableConcept') as cc, cc.coding = c, IPSEntryResourceCompositionSectionMedications.code = cc "SetMedicationsNarrative";#xD; // http://www.saude.gov.br/fhir/r4/StructureDefinition/BRPrescricaoMedicamento#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> IPSEntryMedicationRequests then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> IPSEntryMedicationRequests then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRPrescricaoMedicamento').empty().not()) -> IPSEntryMedicationRequests.resource as IPSEntryMedicationRequestsResource then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> IPSEntryResourceCompositionSectionMedications.entry as IPSEntryResourceCompositionSectionMedicationsEntry, IPSEntryResourceCompositionSectionMedicationsEntry.reference = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; // http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedicamento#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> IPSEntryMedications then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> IPSEntryMedications then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedicamento').empty().not()) -> IPSEntryMedications.resource as IPSEntryMedicationsResource then {#xD; RNDSEntryResourceEntryResourceEntryResource.id as RNDSEntryResourceEntryResourceEntryResourceId -> tgt.entry as AddEntry, AddEntry.fullUrl = append('urn:uuid:', RNDSEntryResourceEntryResourceEntryResourceId), AddEntry.resource = RNDSEntryResourceEntryResourceEntryResource "AddEntry";#xD; } "SetResource";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "SetCompositionSectionMedications";#xD; // Bloco que cria Patient#xD; RNDSEntry -> IPSEntryPatient then {#xD; RNDSEntry.resource as RNDSEntryResource -> IPSEntryPatient then {#xD; RNDSEntryResource.entry as RNDSEntryResourceEntry -> IPSEntryPatient then {#xD; RNDSEntryResourceEntry.resource as RNDSEntryResourceEntryResource -> IPSEntryPatient then {#xD; RNDSEntryResourceEntryResource.entry as RNDSEntryResourceEntryResourceEntry then {#xD; RNDSEntryResourceEntryResourceEntry.resource as RNDSEntryResourceEntryResourceEntryResource where (RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo').empty().not()) -> IPSEntryPatient.resource as IPSEntryPatientResource then {#xD; RNDSEntryResourceEntryResourceEntryResource -> IPSEntryPatient.fullUrl = append('urn:uuid:', IPSPatientReference) "SetPatientFullUrl";#xD; RNDSEntryResourceEntryResourceEntryResource -> IPSEntryPatient.resource = RNDSEntryResourceEntryResourceEntryResource "SetPatientResource";#xD; RNDSEntryResourceEntryResourceEntryResource -> IPSEntryPatientResource.id = IPSPatientReference "SetPatientId";#xD; } "SetPatient";#xD; } "IterateRNDSEntryResourceEntryResourceEntry";#xD; } "IterateRNDSEntryResourceEntryResource";#xD; } "IterateRNDSEntryResourceEntry";#xD; } "IterateRNDSEntryResource";#xD; } "IterateRNDSEntry";#xD; // Bloco que cria organization para author e custodian#xD; RNDSEntry -> IPSEntryPractitioner then {#xD; RNDSEntry -> IPSEntryPractitioner.fullUrl = append('urn:uuid:', IPSPractitionerReference) "SetFullUrl";#xD; RNDSEntry -> create('Organization') as IPSOrganization then {#xD; RNDSEntry -> IPSOrganization.id = IPSPractitionerReference "SetId";#xD; RNDSEntry -> create('Identifier') as IPSPractitionerIdentifier, IPSPractitionerIdentifier.system = 'http://www.saude.gov.br/fhir/r4/NamingSystem/cnpj', IPSPractitionerIdentifier.value = '00394544000185', IPSOrganization.identifier = IPSPractitionerIdentifier "SetIdentifier";#xD; RNDSEntry -> IPSOrganization.name = 'Ministério da Saúde do Brasil' "SetName";#xD; RNDSEntry -> IPSEntryPractitioner.fullUrl = append('urn:uuid:', IPSPractitionerReference), IPSEntryPractitioner.resource = IPSOrganization "SetAuthor";#xD; } "SetAuthor";#xD; } "SetEmptyAuthor";#xD; RNDSEntryResource.id as RNDSEntryResourceId -> IPSEntryResourceComposition.id as IPSEntryResourceCompositionId, IPSEntry.fullUrl = append('urn:uuid:', IPSEntryResourceCompositionId), IPSEntry.resource = IPSEntryResourceComposition "SetResourceComposition";#xD; } "SetSubjectAuthorCustodianSection";#xD; } "SetIPSEntryResourceComposition";#xD; } "SetIPSEntries";#xD; }#xD; #xD; group DataAbsentReason(source src : Element, target tgt : Element) {#xD; src -> create('Extension') as TgtExtension, create('code') as c, c.value = 'unknown', TgtExtension.url = 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', TgtExtension.value = c, tgt.extension = TgtExtension "SetExtension";#xD; }#xD; #xD; group NotApplicable(source src : Element, target tgt : Element) {#xD; src -> create('Extension') as TgtExtension, create('code') as c, c.value = 'not-applicable', TgtExtension.url = 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', TgtExtension.value = c, tgt.extension = TgtExtension "SetExtension";#xD; }#xD; #xD;
Title: International Patient Summary from Brazil, code: http://loinc.org#60591-5, status: generated, confidentiality: N
Allergies and adverse reactions Document
Condition
No allergy information
(RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRCondicaoSaude').empty())
(RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAlergiaReacaoAdversa').empty())
No known allergies
(RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedicamento').empty())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRCondicaoSaude').empty().not())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAlergiaReacaoAdversa').empty().not())
(RNDSEntryResource.entry.resource.entry.resource.meta.where((profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRDiagnosticoCOVID19-TesteRapido') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRDiagnosticoLaboratorioClinico') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRObservacaoDescritiva')).empty().not())
Relevant diagnostic tests/laboratory data Narrative
(RNDSEntryResourceEntryResourceEntry.resource.meta.where((profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRDiagnosticoCOVID19-TesteRapido') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRDiagnosticoLaboratorioClinico') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRObservacaoDescritiva')).empty().not())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRAmostraBiologica').empty().not())
(RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedidaObservada').empty().not())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedidaObservada').empty().not())
(RNDSEntryResource.entry.resource.entry.resource.meta.where((profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministrado') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministradoCarga') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministradoCampanha')).empty().not())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where((profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministrado') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministradoCarga') or (profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRImunobiologicoAdministradoCampanha')).empty().not())
(RNDSEntryResource.entry.resource.entry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRProcedimentoRealizado').empty().not())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRProcedimentoRealizado').empty().not())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRPrescricaoMedicamento').empty().not())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRMedicamento').empty().not())
(RNDSEntryResourceEntryResourceEntry.resource.meta.where(profile = 'http://www.saude.gov.br/fhir/r4/StructureDefinition/BRIndividuo').empty().not())