cdisc-org / cdisc-rules-engine

Open source offering of the cdisc rules engine
MIT License
45 stars 12 forks source link

Rule blocked: CORERULES-246 #702

Open mhungria opened 1 month ago

mhungria commented 1 month ago

Links to related JIRA Tickets

Rule Information

Describe the problem A clear and concise description of the problem.

Describe the solution 1) Need functionality to compare 2 numeric vectors. 2) Need functionality to populate a vector based on suffix on strings.

Proposed rule logic

Replace this with an example of how the new solution could be written as a rule

Screenshots If applicable, add screenshots to help explain your problem and solution.

chowsanthony commented 1 month ago

Note the possibility of zero-padded sequence number. Excerpt from section 4.4.11, SDTMIG v3.4:

For example, if the type of disease milestone is "EPISODE OF DISEASE UNDER STUDY", the values of MIDS for instances of this type of event could include "EPISODE1", "EPISODE2"; or "EPISODE01", "EPISODE02", and so on.

chowsanthony commented 1 month ago

Also, the stripped sequence number is expected to start with 1. Excerpt from Domain SM assumption 2(b):

Sequence numbers should start with 1 and indicate the chronological order of the instances of this type of disease milestone.

mhungria commented 1 month ago

Note the possibility of zero-padded sequence number. Excerpt from section 4.4.11, SDTMIG v3.4:

For example, if the type of disease milestone is "EPISODE OF DISEASE UNDER STUDY", the values of MIDS for instances of this type of event could include "EPISODE1", "EPISODE2"; or "EPISODE01", "EPISODE02", and so on.

Yes, in this case the suffix is any text after "EPISODE", including a missing suffix ... We'll need the prefix as a required parameter to such a function call.