 SET @ADDED = 0;
 SET @NOT_SET = -1;
 
-SET @COMPONENT_OF_INTEREST = 228937003;
+SET @COMPONENT_OF_INTEREST = 3291619012;
 
 -- PARALLEL_START;
 -- Insert all concept changes into history and we'll work out what changes where made

	AND cf.effectiveTime < ch.releaseVersion
);

INSERT INTO rf21_COMPONENTHISTORY
SELECT t.id, t.effectiveTime,  @NOT_SET,  @NOT_SET, '', FALSE, 
(	-- Work out the most recent change preceeding this change

	 OR (ch.changeType = ch2.changeType AND ch.status = 0 AND NOT ch2.status = 0)
	 )
);

SELECT * from rf21_COMPONENTHISTORY where componentid = @COMPONENT_OF_INTEREST;
