SELECT
ICDCodeConditionLink.iCDCodeConditionLinkID,
ICDCodeConditionLink.iCDCodeID,
ICDCode.ICDText,
ICDCode.ICDCode,
ICDCodeConditionLink.conditionID,
ICDCodeConditionLink.startDate,
ICDCodeConditionLink.endDate,
ICDCodeConditionLink.versionNo
INTO
:iCDCodeConditionLinkID,
:iCDCodeID,
:iCDText,
:iCDCode,
:conditionID,
:startDate,
:endDate,
:versionNo
FROM
ICDCode,
ICDCodeConditionLink
WHERE conditionID = :conditionID
AND ICDCode.ICDCodeID = ICDCodeConditionLink.iCDCodeID
AND ICDCodeConditionLink.removeFlag = '0'
ORDER BY ICDCode.ICDCode
|