Compare commits

...

1 Commits

View File

@ -89,7 +89,7 @@ rule "ReportNumber.0.0: First Report number found"
rule "GLPStudy.0.0: GLP Study found" rule "GLPStudy.0.0: GLP Study found"
when when
$glpStudyList: List(!isEmpty) from collect(Entity(type == "glp_study")) $glpStudyList: List() from collect(Entity(type == "glp_study"))
then then
componentCreationService.create("GLPStudy.0.0", "GLP_Study", "Yes", "Yes if present, No if not", $glpStudyList); componentCreationService.create("GLPStudy.0.0", "GLP_Study", "Yes", "Yes if present, No if not", $glpStudyList);
end end
@ -337,7 +337,7 @@ rule "Sex.0.0: Male sex found"
when when
$oecdNumber: String() from List.of("405", "429") $oecdNumber: String() from List.of("405", "429")
FileAttribute(label == "OECD Number", value == $oecdNumber) FileAttribute(label == "OECD Number", value == $oecdNumber)
$males: List(!isEmpty) from collect (Entity(type == "sex", (value.toLowerCase() == "male" || value.toLowerCase() == "males"))) $males: List() from collect (Entity(type == "sex", (value.toLowerCase() == "male" || value.toLowerCase() == "males")))
then then
componentCreationService.create("Sex.0.0", "Sex", "male", "male sex found", $males); componentCreationService.create("Sex.0.0", "Sex", "male", "male sex found", $males);
end end
@ -346,7 +346,7 @@ rule "Sex.1.0: Female sex found"
when when
$oecdNumber: String() from List.of("405", "429") $oecdNumber: String() from List.of("405", "429")
FileAttribute(label == "OECD Number", value == $oecdNumber) FileAttribute(label == "OECD Number", value == $oecdNumber)
$females: List(!isEmpty) from collect (Entity(type == "sex", (value.toLowerCase() == "female" || value.toLowerCase() == "females"))) $females: List() from collect (Entity(type == "sex", (value.toLowerCase() == "female" || value.toLowerCase() == "females")))
then then
componentCreationService.create("Sex.0.0", "Sex", "female", "female sex found", $females); componentCreationService.create("Sex.0.0", "Sex", "female", "female sex found", $females);
end end