def get_sys_op(xls): op_list = [] df_op = read_excel(xls, 'ops', na_filter=False) for i in df_op.itertuples(index=True): if i.type == 'system': op = CS.CapabilityStatementRestResourceOperation() op.name = i.name op.definition = i.definition op.extension = get_conf(i.conf) op_list.append(op.as_json()) return op_list
def get_op(r_type, df_op): op_list = [] for i in df_op.itertuples(index=True): if i.type == r_type: op = CS.CapabilityStatementRestResourceOperation() op.name = i.name op.definition = i.definition op.documentation = i.documentation if i.documentation not in none_list else None op.extension = get_conf(i.conf) try: op.extension = get_addin_ext(op.extension, i.ext) except AttributeError: print("---- no addin extensions found-----") op_list.append(op.as_json()) return op_list