gdc-common-utils-ts 2.9.8 → 2.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -695,9 +695,10 @@ export function getHealthcareRoleByClaim(claim) {
|
|
|
695
695
|
if (direct)
|
|
696
696
|
return direct;
|
|
697
697
|
const fullHl7Prefix = `${HL7_CODING_SYSTEM_V3_ROLE_CODE}|`;
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
698
|
+
if (normalized.startsWith(fullHl7Prefix)) {
|
|
699
|
+
return HealthcareAllRolesByClaim[`v3-RoleCode|${normalized.slice(fullHl7Prefix.length)}`];
|
|
700
|
+
}
|
|
701
|
+
return Object.values(HealthcareAllRolesByClaim).find((descriptor) => normalized === `${descriptor.codingSystem}|${descriptor.code}`);
|
|
701
702
|
}
|
|
702
703
|
export function getHealthcareProfessionalRolesBySector(sector) {
|
|
703
704
|
return HealthcareProfessionalRolesBySector[sector] || {};
|