index

Package sb_edi_medical_rules

This package provides the support subprograms for the EDI Medical API (sb_edi_medical).
For use with internal processing to produce the XML transcript.


Program units
p_register_entity   Registers the attribute value pairs to the message cache for delete operations.
p_register_entity   Registers the attribute/value pairs to the message cache for create and update operations.
p_validate   Validates all the data in the record.


p_register_entity

PROCEDURE p_register_entity(p_operation_type     NUMBER,
                            p_internal_record_id gb_common.internal_record_id_type);

Registers the attribute value pairs to the message cache for delete operations.
This signature uses the ROWID only for the delete operations.

Parameters
p_operation_type   Type of DML operation: create, update, delete. NUMBER Required.
p_internal_record_id   Database ROWID. VARCHAR2(18) Required.


p_register_entity

PROCEDURE p_register_entity(p_operation_type     NUMBER,
                            p_dcmt_seqno         shrmedi.shrmedi_dcmt_seqno%TYPE,
                            p_medi_code          shrmedi.shrmedi_medi_code%TYPE,
                            p_medi_code_date     shrmedi.shrmedi_medi_code_date%TYPE,
                            p_comment            shrmedi.shrmedi_comment%TYPE,
                            p_user_id            shrmedi.shrmedi_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_data_origin        shrmedi.shrmedi_data_origin%TYPE,
                            p_internal_record_id gb_common.internal_record_id_type);

Registers the attribute/value pairs to the message cache for create and update operations.
This signature registers all the parameters.

Parameters
p_operation_type   Type of DML operation: create, update, delete. NUMBER Required.
p_dcmt_seqno   EDI document sequence number. NUMBER(8) Required Key.
p_medi_code   Medical code associated with the student. VARCHAR2(5) Required Key.
p_medi_code_date   Date associated with the medical code, if immunization. DATE Key.
p_comment   Comment associated with the medical code, if immunization. VARCHAR2(4000).
p_user_id   Oracle ID of the user who changed the record. VARCHAR2(30) Required.
p_data_origin   Source system that created or updated the row. VARCHAR2(30).
p_internal_record_id   Database ROWID. VARCHAR2(18) Required.


p_validate

PROCEDURE p_validate(p_dcmt_seqno     shrmedi.shrmedi_dcmt_seqno%TYPE,
                     p_medi_code      shrmedi.shrmedi_medi_code%TYPE,
                     p_medi_code_date shrmedi.shrmedi_medi_code_date%TYPE,
                     p_comment        shrmedi.shrmedi_comment%TYPE DEFAULT NULL,
                     p_user_id        shrmedi.shrmedi_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_data_origin    shrmedi.shrmedi_data_origin%TYPE DEFAULT NULL);

Validates all the data in the record.

Parameters
p_dcmt_seqno   EDI document sequence number. NUMBER(8) Required Key.
p_medi_code   Medical code associated with the student. VARCHAR2(5) Required Key.
p_medi_code_date   Date associated with the medical code, if immunization. DATE Key.
p_comment   Comment associated with the medical code, if immunization. VARCHAR2(4000).
p_user_id   Oracle ID of the user who changed the record. VARCHAR2(30) Required.
p_data_origin   Source system that created or updated the row. VARCHAR2(30).