org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "FKDE22E1EFC717F2EF: PUBLIC.DRUG_ORDER FOREIGN KEY(QUANTITY_UNITS) REFERENCES PUBLIC.CONCEPT(CONCEPT_ID) (2)"; SQL statement: insert into DRUG_ORDER (ORDER_ID, DRUG_INVENTORY_ID, DOSE, DOSE_UNITS, AS_NEEDED, FREQUENCY, DOSING_TYPE, ROUTE, QUANTITY, QUANTITY_UNITS, NUM_REFILLS, DISPENSE_AS_WRITTEN) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23506-173]
org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "FKDE22E1EFC717F2EF: PUBLIC.DRUG_ORDER FOREIGN KEY(QUANTITY_UNITS) REFERENCES PUBLIC.CONCEPT(CONCEPT_ID) (2)"; SQL statement:
insert into DRUG_ORDER (ORDER_ID, DRUG_INVENTORY_ID, DOSE, DOSE_UNITS, AS_NEEDED, FREQUENCY, DOSING_TYPE, ROUTE, QUANTITY, QUANTITY_UNITS, NUM_REFILLS, DISPENSE_AS_WRITTEN) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23506-173]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:331)
at org.h2.message.DbException.get(DbException.java:171)
at org.h2.message.DbException.get(DbException.java:148)
at org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:368)
at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:310)
(52 more lines...)
|
org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "FKDE22E1EFC717F2EF: PUBLIC.DRUG_ORDER FOREIGN KEY(QUANTITY_UNITS) REFERENCES PUBLIC.CONCEPT(CONCEPT_ID) (2)"; SQL statement: insert into DRUG_ORDER (ORDER_ID, DRUG_INVENTORY_ID, DOSE, DOSE_UNITS, AS_NEEDED, FREQUENCY, DOSING_TYPE, ROUTE, QUANTITY, QUANTITY_UNITS, NUM_REFILLS, DISPENSE_AS_WRITTEN) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23506-173]
org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "FKDE22E1EFC717F2EF: PUBLIC.DRUG_ORDER FOREIGN KEY(QUANTITY_UNITS) REFERENCES PUBLIC.CONCEPT(CONCEPT_ID) (2)"; SQL statement:
insert into DRUG_ORDER (ORDER_ID, DRUG_INVENTORY_ID, DOSE, DOSE_UNITS, AS_NEEDED, FREQUENCY, DOSING_TYPE, ROUTE, QUANTITY, QUANTITY_UNITS, NUM_REFILLS, DISPENSE_AS_WRITTEN) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23506-173]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:331)
at org.h2.message.DbException.get(DbException.java:171)
at org.h2.message.DbException.get(DbException.java:148)
at org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:368)
at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:310)
(52 more lines...)
|