Function: createInstance()
createInstance<
T>(instanceKey,studyExemplarImageId,base,options):T
Creates a new instance example tag, based on the metadata key instanceKey
and using the imageId from studyExemplarImageId as the base for the study
information, but NOT the instance information. This produces a valid DICOM
instance data, particularly when the image id refers to a very different type
from the new instance being created.
Type Parameters
• T
Parameters
• instanceKey: any
used to get the default data for this type of object
• studyExemplarImageId: any
used to get the study data for this object
• base: any
additional defaults to include in the result
• options: any
get the predecessorImageId and include a predecessor sequence as well as putting the new object into the same series as the old one. As well for Options, any attributes defined in it as well as in the newly created object will be assigned to the newly created object.
Returns
T