private void SendCreateFilmBoxRequest(DicomClient client, ClientAssociationParameters association, DicomMessage responseMessage) { ReferencedInstanceSequenceIod referencedFilmSessionSequence = new ReferencedInstanceSequenceIod(); referencedFilmSessionSequence.ReferencedSopClassUid = SopClass.BasicFilmSessionSopClassUid; referencedFilmSessionSequence.ReferencedSopInstanceUid = responseMessage.AffectedSopInstanceUid; _basicFilmBoxModuleIod.ReferencedFilmSessionSequenceList.Add(referencedFilmSessionSequence); DicomMessage newRequestMessage = new DicomMessage(null, (DicomAttributeCollection)_basicFilmBoxModuleIod.DicomAttributeProvider); byte pcid = association.FindAbstractSyntaxOrThrowException(SopClass.BasicGrayscalePrintManagementMetaSopClass); _nextRequestType = RequestType.ImageBox; client.SendNCreateRequest(DicomUid.GenerateUid(), pcid, client.NextMessageID(), newRequestMessage, DicomUids.BasicFilmBoxSOP); }
protected void CreateFilmBox(FilmSession filmSession, FilmBox filmBox) { var referencedFilmSessionSequence = new ReferencedInstanceSequenceIod { ReferencedSopClassUid = SopClass.BasicFilmSessionSopClassUid, ReferencedSopInstanceUid = filmSession.SopInstanceUid.UID }; filmBox.ReferencedFilmSessionSequenceList.Add(referencedFilmSessionSequence); var message = new DicomMessage(null, (DicomAttributeCollection)filmBox.DicomAttributeProvider); this.Client.SendNCreateRequest(null, GetPresentationContextId(this.AssociationParameters), this.Client.NextMessageID(), message, DicomUids.BasicFilmBoxSOP); _eventObject = EventObject.FilmBox; Platform.Log(LogLevel.Debug, "Creating film box..."); }
/// <summary> /// Creates a single instance of a ReferencedInstanceSequence item. Does not modify the ReferencedInstanceSequence in the underlying collection. /// </summary> public ReferencedInstanceSequenceIod CreateReferencedInstanceSequence() { var iodBase = new ReferencedInstanceSequenceIod(new DicomSequenceItem()); return iodBase; }