Hello there,
Is there any rapid and fast way to know from a code_muni in which health_region, macro or micro, this municipality is inserted?
This is tricky to do if you trust only on the code, although the code_muni carries information from the state level and region, it is not true that part of the code_muni can be assigned to a code_health_region or code_health_macrorregion, just taking the first 5 digits from the code_muni
A workaround that I developed is using one of the relational tables from dataSUS to add the code_health_region and/or code_health_macrorregion to a data.frame with code_muni
maybe this can be implemented in read_municipalityfunction, as a parameter being passed by the user to return with other code other than code_muni
Thanks for the amazing package!
Hello there,
Is there any rapid and fast way to know from a
code_muniin which health_region, macro or micro, this municipality is inserted?This is tricky to do if you trust only on the code, although the
code_municarries information from the state level and region, it is not true that part of thecode_munican be assigned to acode_health_regionorcode_health_macrorregion, just taking the first 5 digits from thecode_muniA workaround that I developed is using one of the relational tables from dataSUS to add the
code_health_regionand/orcode_health_macrorregionto a data.frame withcode_munimaybe this can be implemented in
read_municipalityfunction, as a parameter being passed by the user to return with other code other thancode_muniThanks for the amazing package!