Skip to content

list index out of range #134

@vagarwal77

Description

@vagarwal77

Hi All,

Need urgent help and suggestion -

Setting existing keys for List value is throwing error "list index out of range". Please suggest how to handle it while updating existing values

"DesignModule":{
"StudyType":"Interventional",
"PhaseList":{
"Phase":[
"Phase 2"
]
},
"DesignInfo":{
"DesignAllocation":"Randomized",
"DesignInterventionModel":"Parallel Assignment",
"DesignPrimaryPurpose":"Treatment",
"DesignMaskingInfo":{
"DesignMasking":"Quadruple",
"DesignMaskingDescription":"With the implementation of Amendment 05 the study is no longer blinded.",
"DesignWhoMaskedList":{
"DesignWhoMasked":[
"Participant",
"Care Provider",
"Investigator",
"Outcomes Assessor"
]
}
}
},
"EnrollmentInfo":{
"EnrollmentCount":"154",
"EnrollmentType":"Actual"
}
},

dpath.util.set( load_res, "ProtocolSection/DesignModule/PhaseList/Phase" , "PhaseXY" )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions