Beispiel #1
0
  /**
   * Creates a ARQ (Appointment Request) segment object that belongs to the given 
   * message.  
   */
	public ARQ(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(EI), true, 1, 75, new System.Object[]{message}, "Placer Appointment ID");
       this.add(typeof(EI), false, 1, 75, new System.Object[]{message}, "Filler Appointment ID");
       this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "Occurrence Number");
       this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "Placer Group Number");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Schedule ID");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Request Event Reason");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Appointment Reason");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Appointment Type");
       this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Appointment Duration");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Appointment Duration Units");
       this.add(typeof(DR), false, 0, 53, new System.Object[]{message}, "Requested Start Date/Time Range");
       this.add(typeof(ST), false, 1, 5, new System.Object[]{message}, "Priority-ARQ");
       this.add(typeof(RI), false, 1, 100, new System.Object[]{message}, "Repeating Interval");
       this.add(typeof(ST), false, 1, 5, new System.Object[]{message}, "Repeating Interval Duration");
       this.add(typeof(XCN), true, 0, 250, new System.Object[]{message}, "Placer Contact Person");
       this.add(typeof(XTN), false, 0, 250, new System.Object[]{message}, "Placer Contact Phone Number");
       this.add(typeof(XAD), false, 0, 250, new System.Object[]{message}, "Placer Contact Address");
       this.add(typeof(PL), false, 1, 80, new System.Object[]{message}, "Placer Contact Location");
       this.add(typeof(XCN), true, 0, 250, new System.Object[]{message}, "Entered By Person");
       this.add(typeof(XTN), false, 0, 250, new System.Object[]{message}, "Entered By Phone Number");
       this.add(typeof(PL), false, 1, 80, new System.Object[]{message}, "Entered By Location");
       this.add(typeof(EI), false, 1, 75, new System.Object[]{message}, "Parent Placer Appointment ID");
       this.add(typeof(EI), false, 1, 75, new System.Object[]{message}, "Parent Filler Appointment ID");
       this.add(typeof(EI), false, 0, 22, new System.Object[]{message}, "Placer Order Number");
       this.add(typeof(EI), false, 0, 22, new System.Object[]{message}, "Filler Order Number");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
    /// <summary>
    /// Perform redo of this command.
    /// </summary>
    public override void Redo() {
      //remove the group from the layer
      this.Controller.Model.DefaultPage.DefaultLayer.Entities.Remove(mGroup);
      //detach the entities from the group
      foreach (IDiagramEntity entity in mGroup.Entities) {
        //this will be recursive if an entity is itself an IGroup
        entity.Group = null;
        bundle.Entities.Add(entity);
        //mGroup.Entities.Remove(entity);
        Controller.Model.AddEntity(entity);
      }
      //change the visuals such that the entities in the group are selected

      CollectionBase<IDiagramEntity> col = new CollectionBase<IDiagramEntity>();
      col.AddRange(mGroup.Entities);

      this.Controller.Model.Selection.SelectedItems = col;

      mGroup.Invalidate();
      mGroup = null;

      //note that the entities have never been disconnected from the layer
      //so they don't have to be re-attached to the anything.
      //The insertion of the Group simply got pushed in the scene-graph.


    }
Beispiel #3
0
  /**
   * Creates a UB1 (UB82 DATA) segment object that belongs to the given 
   * message.  
   */
	public UB1(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(SI), false, 1, 4, new System.Object[]{message}, "Set ID - UB82");
       this.add(typeof(NM), false, 1, 1, new System.Object[]{message}, "Blood deductible (43)");
       this.add(typeof(NM), false, 1, 2, new System.Object[]{message}, "Blood furnished pints of (40)");
       this.add(typeof(NM), false, 1, 2, new System.Object[]{message}, "Blood replaced pints (41)");
       this.add(typeof(NM), false, 1, 2, new System.Object[]{message}, "Blood not replaced pints (42)");
       this.add(typeof(NM), false, 1, 2, new System.Object[]{message}, "Co-insurance days (25)");
       this.add(typeof(ID), false, 5, 2, new System.Object[]{message, 43}, "Condition code (35-39)");
       this.add(typeof(NM), false, 1, 3, new System.Object[]{message}, "Covered days (23)");
       this.add(typeof(NM), false, 1, 3, new System.Object[]{message}, "Non-covered days (24)");
       this.add(typeof(CM_UVC), false, 8, 12, new System.Object[]{message}, "Value amount and code (46-49)");
       this.add(typeof(NM), false, 1, 2, new System.Object[]{message}, "Number of grace days (90)");
       this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 0}, "Special program indicator (44)");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 0}, "PSRO / UR approval indicator (87)");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "PSRO / UR approved stay - from (88)");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "PSRO / UR approved stay - to (89)");
       this.add(typeof(CM_OCD), false, 5, 20, new System.Object[]{message}, "Occurrence (28-32)");
       this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 0}, "Occurrence span (33)");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Occurrence span start date (33)");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Occurrence span end date (33)");
       this.add(typeof(ST), false, 1, 30, new System.Object[]{message}, "UB-82 locator 2");
       this.add(typeof(ST), false, 1, 7, new System.Object[]{message}, "UB-82 locator 9");
       this.add(typeof(ST), false, 1, 8, new System.Object[]{message}, "UB-82 locator 27");
       this.add(typeof(ST), false, 1, 17, new System.Object[]{message}, "UB-82 locator 45");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #4
0
 /**
    * Creates a RXG (Pharmacy/Treatment Give) segment object that belongs to the given
    * message.
    */
 public RXG(IGroup parent, IModelClassFactory factory)
     : base(parent,factory)
 {
     IMessage message = Message;
     try {
        this.add(typeof(NM), true, 1, 4, new System.Object[]{message}, "Give Sub-ID Counter");
        this.add(typeof(NM), false, 1, 4, new System.Object[]{message}, "Dispense Sub-ID Counter");
        this.add(typeof(TQ), false, 1, 200, new System.Object[]{message}, "Quantity/Timing");
        this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Give Code");
        this.add(typeof(NM), true, 1, 20, new System.Object[]{message}, "Give Amount - Minimum");
        this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Give Amount - Maximum");
        this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Give Units");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Give Dosage Form");
        this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Administration Notes");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 167}, "Substitution Status");
        this.add(typeof(LA2), false, 1, 200, new System.Object[]{message}, "Dispense-to Location");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Needs Human Review");
        this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Pharmacy/Treatment Supplier's Special Administration Instructions");
        this.add(typeof(ST), false, 1, 20, new System.Object[]{message}, "Give Per (Time Unit)");
        this.add(typeof(ST), false, 1, 6, new System.Object[]{message}, "Give Rate Amount");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Give Rate Units");
        this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Give Strength");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Give Strength Units");
        this.add(typeof(ST), false, 0, 20, new System.Object[]{message}, "Substance Lot Number");
        this.add(typeof(TS), false, 0, 26, new System.Object[]{message}, "Substance Expiration Date");
        this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Substance Manufacturer Name");
        this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Indication");
        this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "Give Drug Strength Volume");
        this.add(typeof(CWE), false, 1, 250, new System.Object[]{message}, "Give Drug Strength Volume Units");
        this.add(typeof(CWE), false, 1, 60, new System.Object[]{message}, "Give Barcode Identifier");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 480}, "Pharmacy Order Type");
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:UngroupCommand"/> class.
 /// </summary>
 /// <param name="controller">The controller.</param>
 /// <param name="group">The group.</param>
 public UngroupCommand(IController controller, IGroup group)
   : base(controller) {
   this.Text = "Ungroup";
   this.controller = controller;
   this.mGroup = group;
   bundle = new Bundle();
 }
Beispiel #6
0
  /**
   * Creates a IN3 (Insurance Additional Information, Certification) segment object that belongs to the given 
   * message.  
   */
	public IN3(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID - IN3");
       this.add(typeof(CX), false, 1, 250, new System.Object[]{message}, "Certification Number");
       this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Certified By");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Certification Required");
       this.add(typeof(MOP), false, 1, 23, new System.Object[]{message}, "Penalty");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Certification Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Certification Modify Date/Time");
       this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Operator");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Certification Begin Date");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Certification End Date");
       this.add(typeof(DTN), false, 1, 6, new System.Object[]{message}, "Days");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Non-Concur Code/Description");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Non-Concur Effective Date/Time");
       this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Physician Reviewer");
       this.add(typeof(ST), false, 1, 48, new System.Object[]{message}, "Certification Contact");
       this.add(typeof(XTN), false, 0, 250, new System.Object[]{message}, "Certification Contact Phone Number");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Appeal Reason");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Certification Agency");
       this.add(typeof(XTN), false, 0, 250, new System.Object[]{message}, "Certification Agency Phone Number");
       this.add(typeof(ICD), false, 0, 40, new System.Object[]{message}, "Pre-Certification Requirement");
       this.add(typeof(ST), false, 1, 48, new System.Object[]{message}, "Case Manager");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Second Opinion Date");
       this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 151}, "Second Opinion Status");
       this.add(typeof(IS), false, 0, 1, new System.Object[]{message, 152}, "Second Opinion Documentation Received");
       this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Second Opinion Physician");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #7
0
  /**
   * Creates a MSH (Message Header) segment object that belongs to the given 
   * message.  
   */
	public MSH(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(ST), true, 1, 1, new System.Object[]{message}, "Field Separator");
       this.add(typeof(ST), true, 1, 4, new System.Object[]{message}, "Encoding Characters");
       this.add(typeof(HD), false, 1, 227, new System.Object[]{message}, "Sending Application");
       this.add(typeof(HD), false, 1, 227, new System.Object[]{message}, "Sending Facility");
       this.add(typeof(HD), false, 1, 227, new System.Object[]{message}, "Receiving Application");
       this.add(typeof(HD), false, 1, 227, new System.Object[]{message}, "Receiving Facility");
       this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Date/Time Of Message");
       this.add(typeof(ST), false, 1, 40, new System.Object[]{message}, "Security");
       this.add(typeof(MSG), true, 1, 15, new System.Object[]{message}, "Message Type");
       this.add(typeof(ST), true, 1, 20, new System.Object[]{message}, "Message Control ID");
       this.add(typeof(PT), true, 1, 3, new System.Object[]{message}, "Processing ID");
       this.add(typeof(VID), true, 1, 60, new System.Object[]{message}, "Version ID");
       this.add(typeof(NM), false, 1, 15, new System.Object[]{message}, "Sequence Number");
       this.add(typeof(ST), false, 1, 180, new System.Object[]{message}, "Continuation Pointer");
       this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 155}, "Accept Acknowledgment Type");
       this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 155}, "Application Acknowledgment Type");
       this.add(typeof(ID), false, 1, 3, new System.Object[]{message, 399}, "Country Code");
       this.add(typeof(ID), false, 0, 16, new System.Object[]{message, 211}, "Character Set");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Principal Language Of Message");
       this.add(typeof(ID), false, 1, 20, new System.Object[]{message, 356}, "Alternate Character Set Handling Scheme");
       this.add(typeof(EI), false, 0, 427, new System.Object[]{message}, "Message Profile Identifier");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #8
0
  /**
   * Creates a DG1 (Diagnosis) segment object that belongs to the given 
   * message.  
   */
	public DG1(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID - DG1");
       this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 53}, "Diagnosis Coding Method");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Diagnosis Code - DG1");
       this.add(typeof(ST), false, 1, 40, new System.Object[]{message}, "Diagnosis Description");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Diagnosis Date/Time");
       this.add(typeof(IS), true, 1, 2, new System.Object[]{message, 52}, "Diagnosis Type");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Major Diagnostic Category");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Diagnostic Related Group");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "DRG Approval Indicator");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 56}, "DRG Grouper Review Code");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Outlier Type");
       this.add(typeof(NM), false, 1, 3, new System.Object[]{message}, "Outlier Days");
       this.add(typeof(CP), false, 1, 12, new System.Object[]{message}, "Outlier Cost");
       this.add(typeof(ST), false, 1, 4, new System.Object[]{message}, "Grouper Version And Type");
       this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 359}, "Diagnosis Priority");
       this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Diagnosing Clinician");
       this.add(typeof(IS), false, 1, 3, new System.Object[]{message, 228}, "Diagnosis Classification");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Confidential Indicator");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Attestation Date/Time");
       this.add(typeof(EI), false, 1, 427, new System.Object[]{message}, "Diagnosis Identifier");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 206}, "Diagnosis Action Code");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #9
0
 /**
    * Creates a SCH (Schedule Activity Information) segment object that belongs to the given
    * message.
    */
 public SCH(IGroup parent, IModelClassFactory factory)
     : base(parent,factory)
 {
     IMessage message = Message;
     try {
        this.add(typeof(EI), true, 1, 22, new System.Object[]{message}, "Placer Appointment ID");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "Filler Appointment ID");
        this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "Occurrence Number");
        this.add(typeof(EI), false, 1, 37, new System.Object[]{message}, "Placer Group Number");
        this.add(typeof(CE), false, 1, 200, new System.Object[]{message}, "Schedule ID");
        this.add(typeof(CE), true, 1, 200, new System.Object[]{message}, "Event Reason");
        this.add(typeof(CE), false, 1, 200, new System.Object[]{message}, "Appointment Reason");
        this.add(typeof(CE), false, 1, 200, new System.Object[]{message}, "Appointment Type");
        this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Appointment Duration");
        this.add(typeof(CE), false, 1, 200, new System.Object[]{message}, "Appointment Duration Units");
        this.add(typeof(TQ), true, 0, 200, new System.Object[]{message}, "Appointment Timing Quantity");
        this.add(typeof(XCN), false, 1, 48, new System.Object[]{message}, "Placer Contact Person");
        this.add(typeof(XTN), false, 1, 40, new System.Object[]{message}, "Placer Contact Phone Number");
        this.add(typeof(XAD), false, 1, 106, new System.Object[]{message}, "Placer Contact Address");
        this.add(typeof(PL), false, 1, 80, new System.Object[]{message}, "Placer Contact Location");
        this.add(typeof(XCN), true, 1, 38, new System.Object[]{message}, "Filler Contact Person");
        this.add(typeof(XTN), false, 1, 40, new System.Object[]{message}, "Filler Contact Phone Number");
        this.add(typeof(XAD), false, 1, 106, new System.Object[]{message}, "Filler Contact Address");
        this.add(typeof(PL), false, 1, 80, new System.Object[]{message}, "Filler Contact Location");
        this.add(typeof(XCN), true, 1, 48, new System.Object[]{message}, "Entered By Person");
        this.add(typeof(XTN), false, 0, 40, new System.Object[]{message}, "Entered By Phone Number");
        this.add(typeof(PL), false, 1, 80, new System.Object[]{message}, "Entered By Location");
        this.add(typeof(EI), false, 1, 75, new System.Object[]{message}, "Parent Placer Appointment ID");
        this.add(typeof(EI), false, 1, 75, new System.Object[]{message}, "Parent Filler Appointment ID");
        this.add(typeof(CE), false, 1, 200, new System.Object[]{message}, "Filler Status Code");
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
     }
 }
Beispiel #10
0
 /**
    * Creates a RXA (Pharmacy administration segment) segment object that belongs to the given
    * message.
    */
 public RXA(IGroup parent, IModelClassFactory factory)
     : base(parent,factory)
 {
     IMessage message = Message;
     try {
        this.add(typeof(ID), true, 1, 4, new System.Object[]{message, 0}, "Give Sub-ID Counter");
        this.add(typeof(NM), true, 1, 4, new System.Object[]{message}, "Administration Sub-ID Counter");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Date/Time Start of Administration");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Date/Time End of Administration");
        this.add(typeof(CE), true, 1, 100, new System.Object[]{message}, "Administered Code");
        this.add(typeof(NM), true, 1, 20, new System.Object[]{message}, "Administered Amount");
        this.add(typeof(CE), false, 1, 60, new System.Object[]{message}, "Administered Units");
        this.add(typeof(CE), false, 1, 60, new System.Object[]{message}, "Administered Dosage Form");
        this.add(typeof(CE), false, 0, 200, new System.Object[]{message}, "Administration Notes");
        this.add(typeof(XCN), false, 1, 200, new System.Object[]{message}, "Administering Provider");
        this.add(typeof(CM_LA1), false, 1, 200, new System.Object[]{message}, "Administered-at Location");
        this.add(typeof(ST), false, 1, 20, new System.Object[]{message}, "Administered Per (Time Unit)");
        this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Administered Strength");
        this.add(typeof(CE), false, 1, 60, new System.Object[]{message}, "Administered Strength Units");
        this.add(typeof(ST), false, 0, 20, new System.Object[]{message}, "Substance Lot Number");
        this.add(typeof(TS), false, 0, 26, new System.Object[]{message}, "Substance Expiration Date");
        this.add(typeof(CE), false, 0, 60, new System.Object[]{message}, "Substance Manufacturer Name");
        this.add(typeof(CE), false, 0, 60, new System.Object[]{message}, "Substance Refusal Reason");
        this.add(typeof(CE), false, 0, 200, new System.Object[]{message}, "Indication");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 322}, "Completion Status");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 323}, "Action Code-RXA");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "System Entry Date/Time");
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
     }
 }
Beispiel #11
0
  /**
   * Creates a GOL (Goal Detail) segment object that belongs to the given 
   * message.  
   */
	public GOL(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(ID), true, 1, 2, new System.Object[]{message, 287}, "Action Code");
       this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Action Date/Time");
       this.add(typeof(CE), true, 1, 80, new System.Object[]{message}, "Goal ID");
       this.add(typeof(EI), true, 1, 60, new System.Object[]{message}, "Goal Instance ID");
       this.add(typeof(EI), false, 1, 60, new System.Object[]{message}, "Episode of Care ID");
       this.add(typeof(NM), false, 1, 60, new System.Object[]{message}, "Goal List Priority");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Goal Established Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Expected Goal Achieve Date/Time");
       this.add(typeof(CE), false, 1, 80, new System.Object[]{message}, "Goal Classification");
       this.add(typeof(CE), false, 1, 80, new System.Object[]{message}, "Goal Management Discipline");
       this.add(typeof(CE), false, 1, 80, new System.Object[]{message}, "Current Goal Review Status");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Current Goal Review Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Next Goal Review Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Previous Goal Review Date/Time");
       this.add(typeof(TQ), false, 1, 200, new System.Object[]{message}, "Goal Review Interval");
       this.add(typeof(CE), false, 1, 80, new System.Object[]{message}, "Goal Evaluation");
       this.add(typeof(ST), false, 0, 300, new System.Object[]{message}, "Goal Evaluation Comment");
       this.add(typeof(CE), false, 1, 80, new System.Object[]{message}, "Goal Life Cycle Status");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Goal Life Cycle Status Date/Time");
       this.add(typeof(CE), false, 0, 80, new System.Object[]{message}, "Goal Target Type");
       this.add(typeof(XPN), false, 0, 80, new System.Object[]{message}, "Goal Target Name");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #12
0
 /**
    * Creates a BPX (Blood product dispense status) segment object that belongs to the given
    * message.
    */
 public BPX(IGroup parent, IModelClassFactory factory)
     : base(parent,factory)
 {
     IMessage message = Message;
     try {
        this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID _ BPX");
        this.add(typeof(CWE), true, 1, 250, new System.Object[]{message}, "BP Dispense Status");
        this.add(typeof(ID), true, 1, 1, new System.Object[]{message, 511}, "BP Status");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "BP Date/Time of Status");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "BC Donation ID");
        this.add(typeof(CNE), false, 1, 250, new System.Object[]{message}, "BC Component");
        this.add(typeof(CNE), false, 1, 250, new System.Object[]{message}, "BC Donation Type / Intended Use");
        this.add(typeof(CWE), false, 1, 250, new System.Object[]{message}, "CP Commercial Product");
        this.add(typeof(XON), false, 1, 250, new System.Object[]{message}, "CP Manufacturer");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "CP Lot Number");
        this.add(typeof(CNE), false, 1, 250, new System.Object[]{message}, "BP Blood Group");
        this.add(typeof(CNE), false, 0, 250, new System.Object[]{message}, "BC Special Testing");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "BP Expiration Date/Time");
        this.add(typeof(NM), true, 1, 5, new System.Object[]{message}, "BP Quantity");
        this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "BP Amount");
        this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "BP Units");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "BP Unique ID");
        this.add(typeof(PL), false, 1, 80, new System.Object[]{message}, "BP Actual Dispensed To Location");
        this.add(typeof(XAD), false, 1, 250, new System.Object[]{message}, "BP Actual Dispensed To Address");
        this.add(typeof(XCN), false, 1, 250, new System.Object[]{message}, "BP Dispensed to Receiver");
        this.add(typeof(XCN), false, 1, 250, new System.Object[]{message}, "BP Dispensing Individual");
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
     }
 }
Beispiel #13
0
 /**
    * Creates a FT1 (Financial transaction) segment object that belongs to the given
    * message.
    */
 public FT1(IGroup parent, IModelClassFactory factory)
     : base(parent,factory)
 {
     IMessage message = Message;
     try {
        this.add(typeof(SI), false, 1, 4, new System.Object[]{message}, "Set ID - Financial Transaction");
        this.add(typeof(ST), false, 1, 12, new System.Object[]{message}, "Transaction ID");
        this.add(typeof(ST), false, 1, 10, new System.Object[]{message}, "Transaction Batch ID");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Transaction Date");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Transaction Posting Date");
        this.add(typeof(ID), true, 1, 8, new System.Object[]{message, 17}, "Transaction Type");
        this.add(typeof(CE), true, 1, 80, new System.Object[]{message}, "Transaction Code");
        this.add(typeof(ST), false, 1, 40, new System.Object[]{message}, "Transaction Description");
        this.add(typeof(ST), false, 1, 40, new System.Object[]{message}, "Transaction Description - alternate");
        this.add(typeof(NM), false, 1, 6, new System.Object[]{message}, "Transaction Quantity");
        this.add(typeof(CP), false, 1, 12, new System.Object[]{message}, "Transaction Amount - Extended");
        this.add(typeof(CP), false, 1, 12, new System.Object[]{message}, "Transaction Amount - Unit");
        this.add(typeof(CE), false, 1, 60, new System.Object[]{message}, "Department Code");
        this.add(typeof(CE), false, 1, 8, new System.Object[]{message}, "Insurance Plan ID");
        this.add(typeof(CP), false, 1, 12, new System.Object[]{message}, "Insurance Amount");
        this.add(typeof(PL), false, 1, 12, new System.Object[]{message}, "Assigned Patient Location");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 24}, "Fee Schedule");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 18}, "Patient Type");
        this.add(typeof(CE), false, 0, 60, new System.Object[]{message}, "Diagnosis Code");
        this.add(typeof(XCN), false, 1, 120, new System.Object[]{message}, "Performed By Code");
        this.add(typeof(XCN), false, 1, 120, new System.Object[]{message}, "Ordered By Code");
        this.add(typeof(NM), false, 1, 12, new System.Object[]{message}, "Unit Cost");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "Filler Order Number");
        this.add(typeof(XCN), false, 1, 120, new System.Object[]{message}, "Entered By Code");
        this.add(typeof(CE), false, 1, 80, new System.Object[]{message}, "Procedure Code");
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
     }
 }
Beispiel #14
0
  /**
   * Creates a PRC (Pricing) segment object that belongs to the given 
   * message.  
   */
	public PRC(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Primary Key Value - PRC");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Facility ID - PRC");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Department");
       this.add(typeof(IS), false, 0, 1, new System.Object[]{message, 4}, "Valid Patient Classes");
       this.add(typeof(CP), false, 0, 12, new System.Object[]{message}, "Price");
       this.add(typeof(ST), false, 0, 200, new System.Object[]{message}, "Formula");
       this.add(typeof(NM), false, 1, 4, new System.Object[]{message}, "Minimum Quantity");
       this.add(typeof(NM), false, 1, 4, new System.Object[]{message}, "Maximum Quantity");
       this.add(typeof(MO), false, 1, 12, new System.Object[]{message}, "Minimum Price");
       this.add(typeof(MO), false, 1, 12, new System.Object[]{message}, "Maximum Price");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Effective Start Date");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Effective End Date");
       this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 268}, "Price Override Flag");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Billing Category");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Chargeable Flag");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 183}, "Active/Inactive Flag");
       this.add(typeof(MO), false, 1, 12, new System.Object[]{message}, "Cost");
       this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 269}, "Charge On Indicator");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
	///<summary> 
	/// Creates a new RSP_K23_QUERY_RESPONSE Group.
	///</summary>
	public RSP_K23_QUERY_RESPONSE(IGroup parent, IModelClassFactory factory) : base(parent, factory){
	   try {
	      this.add(typeof(PID), true, false);
	   } catch(HL7Exception e) {
	      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating RSP_K23_QUERY_RESPONSE - this is probably a bug in the source code generator.", e);
	   }
	}
        /// <summary>
        /// Perform redo of this command.
        /// </summary>
        public override void Redo()
        {
            //create a new group; use the standard GroupShape or the CollapsibleGroupShape for a painted group with collapse/expand features.
            //GroupShape group = new GroupShape(this.Controller.Model);
            CollapsibleGroupShape group = new CollapsibleGroupShape(this.controller.Model);
            //asign the entities to the group
            group.Entities.Clear();

            foreach (IDiagramEntity entity in bundle.Entities)
            {
                //this will be recursive if an entity is itself an IGroup
                entity.Group = group;
                group.Entities.Add(entity);
            }
            //add the new group to the layer
            this.Controller.Model.DefaultPage.DefaultLayer.Entities.Add(group);

            mGroup = group;

            //select the newly created group
            CollectionBase<IDiagramEntity> col = new CollectionBase<IDiagramEntity>();
            col.Add(mGroup);
            Selection.SelectedItems = col;
            mGroup.Invalidate();
        }
Beispiel #17
0
  /**
   * Creates a IAM (Patient Adverse Reaction Information) segment object that belongs to the given 
   * message.  
   */
	public IAM(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID - IAM");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Allergen Type Code");
       this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Allergen Code/Mnemonic/Description");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Allergy Severity Code");
       this.add(typeof(ST), false, 0, 15, new System.Object[]{message}, "Allergy Reaction Code");
       this.add(typeof(CNE), true, 1, 250, new System.Object[]{message}, "Allergy Action Code");
       this.add(typeof(EI), false, 1, 427, new System.Object[]{message}, "Allergy Unique Identifier");
       this.add(typeof(ST), false, 1, 60, new System.Object[]{message}, "Action Reason");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Sensitivity to Causative Agent Code");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Allergen Group Code/Mnemonic/Description");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Onset Date");
       this.add(typeof(ST), false, 1, 60, new System.Object[]{message}, "Onset Date Text");
       this.add(typeof(TS), false, 1, 8, new System.Object[]{message}, "Reported Date/Time");
       this.add(typeof(XPN), false, 1, 250, new System.Object[]{message}, "Reported By");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Relationship to Patient Code");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Alert Device Code");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Allergy Clinical Status Code");
       this.add(typeof(XCN), false, 1, 250, new System.Object[]{message}, "Statused by Person");
       this.add(typeof(XON), false, 1, 250, new System.Object[]{message}, "Statused by Organization");
       this.add(typeof(TS), false, 1, 8, new System.Object[]{message}, "Statused at Date/Time");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #18
0
  /**
   * Creates a INV (Inventory Detail) segment object that belongs to the given 
   * message.  
   */
	public INV(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Substance Identifier");
       this.add(typeof(CE), true, 0, 250, new System.Object[]{message}, "Substance Status");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Substance Type");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Inventory Container Identifier");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Container Carrier Identifier");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Position on Carrier");
       this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Initial Quantity");
       this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Current Quantity");
       this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Available Quantity");
       this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Consumption Quantity");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Quantity Units");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Expiration Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "First Used Date/Time");
       this.add(typeof(TQ), false, 1, 200, new System.Object[]{message}, "On Board Stability Duration");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Test/Fluid Identifier(s)");
       this.add(typeof(ST), false, 1, 200, new System.Object[]{message}, "Manufacturer Lot Number");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Manufacturer Identifier");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Supplier Identifier");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
	///<summary> 
	/// Creates a new ORL_O36_OBSERVATION_REQUEST Group.
	///</summary>
	public ORL_O36_OBSERVATION_REQUEST(IGroup parent, IModelClassFactory factory) : base(parent, factory){
	   try {
	      this.add(typeof(OBR), true, false);
	   } catch(HL7Exception e) {
	      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating ORL_O36_OBSERVATION_REQUEST - this is probably a bug in the source code generator.", e);
	   }
	}
Beispiel #20
0
  /**
   * Creates a PD1 (patient additional demographic) segment object that belongs to the given 
   * message.  
   */
	public PD1(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(IS), false, 0, 2, new System.Object[]{message, 223}, "Living Dependency");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 220}, "Living Arrangement");
       this.add(typeof(XON), false, 0, 250, new System.Object[]{message}, "Patient Primary Facility");
       this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Patient Primary Care Provider Name and ID No.");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 231}, "Student Indicator");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 295}, "Handicap");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 315}, "Living Will Code");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 316}, "Organ Donor Code");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Separate Bill");
       this.add(typeof(CX), false, 0, 250, new System.Object[]{message}, "Duplicate Patient");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Publicity Code");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Protection Indicator");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Protection Indicator Effective Date");
       this.add(typeof(XON), false, 0, 250, new System.Object[]{message}, "Place of Worship");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Advance Directive Code");
       this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 441}, "Immunization Registry Status");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Immunization Registry Status Effective Date");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Publicity Code Effective Date");
       this.add(typeof(IS), false, 1, 5, new System.Object[]{message, 140}, "Military Branch");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 141}, "Military Rank/Grade");
       this.add(typeof(IS), false, 1, 3, new System.Object[]{message, 142}, "Military Status");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #21
0
  /**
   * Creates a PCR (Possible Causal Relationship) segment object that belongs to the given 
   * message.  
   */
	public PCR(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Implicated Product");
       this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 249}, "Generic Product");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Product Class");
       this.add(typeof(CQ), false, 1, 8, new System.Object[]{message}, "Total Duration Of Therapy");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Product Manufacture Date");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Product Expiration Date");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Product Implantation Date");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Product Explantation Date");
       this.add(typeof(IS), false, 1, 8, new System.Object[]{message, 244}, "Single Use Device");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Indication For Product Use");
       this.add(typeof(IS), false, 1, 8, new System.Object[]{message, 245}, "Product Problem");
       this.add(typeof(ST), false, 3, 30, new System.Object[]{message}, "Product Serial/Lot Number");
       this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 246}, "Product Available For Inspection");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Product Evaluation Performed");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Product Evaluation Status");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Product Evaluation Results");
       this.add(typeof(ID), false, 1, 8, new System.Object[]{message, 248}, "Evaluated Product Source");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Date Product Returned To Manufacturer");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 242}, "Device Operator Qualifications");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 250}, "Relatedness Assessment");
       this.add(typeof(ID), false, 6, 2, new System.Object[]{message, 251}, "Action Taken In Response To The Event");
       this.add(typeof(ID), false, 6, 2, new System.Object[]{message, 252}, "Event Causality Observations");
       this.add(typeof(ID), false, 3, 1, new System.Object[]{message, 253}, "Indirect Exposure Mechanism");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #22
0
  /**
   * Creates a PRB (Problem Details) segment object that belongs to the given 
   * message.  
   */
	public PRB(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(ID), true, 1, 2, new System.Object[]{message, 287}, "Action Code");
       this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Action Date/Time");
       this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Problem ID");
       this.add(typeof(EI), true, 1, 60, new System.Object[]{message}, "Problem Instance ID");
       this.add(typeof(EI), false, 1, 60, new System.Object[]{message}, "Episode of Care ID");
       this.add(typeof(NM), false, 1, 60, new System.Object[]{message}, "Problem List Priority");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Problem Established Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Anticipated Problem Resolution Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Actual Problem Resolution Date/Time");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Classification");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Problem Management Discipline");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Persistence");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Confirmation Status");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Life Cycle Status");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Problem Life Cycle Status Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Problem Date of Onset");
       this.add(typeof(ST), false, 1, 80, new System.Object[]{message}, "Problem Onset Text");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Ranking");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Certainty of Problem");
       this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "Probability of Problem (0-1)");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Individual Awareness of Problem");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Prognosis");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Individual Awareness of Prognosis");
       this.add(typeof(ST), false, 1, 200, new System.Object[]{message}, "Family/Significant Other Awareness of Problem/Prognosis");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Security/Sensitivity");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #23
0
        public void ResolveConflicts(IGroup group)
        {
            var conflictService = group.GetSyncConflictService();
            var syncActionService = group.GetSyncActionService();
            var historyService = group.GetService<IMultiFileSystemHistoryService>();

            var changeGraphBuilder = new ChangeGraphBuilder(m_FileReferenceComparer);

            var syncStateUpdater = new SyncActionUpdateBuilder();

            foreach (var conflict in conflictService.Items)
            {
                IFileReference resolved;
                if (TryResolveConflict(changeGraphBuilder, historyService, conflict, out resolved))
                {
                    // remove the conflict
                    syncStateUpdater.RemoveConflict(conflict);


                    // add sync actions
                    throw new NotImplementedException();
                }
            }

            syncStateUpdater.Apply(syncActionService, conflictService);
        }
Beispiel #24
0
 /**
    * Creates a TXA (Document notification segment) segment object that belongs to the given
    * message.
    */
 public TXA(IGroup parent, IModelClassFactory factory)
     : base(parent,factory)
 {
     IMessage message = Message;
     try {
        this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID- TXA");
        this.add(typeof(IS), true, 1, 30, new System.Object[]{message, 270}, "Document Type");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 191}, "Document Content Presentation");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Activity Date/Time");
        this.add(typeof(XCN), false, 1, 60, new System.Object[]{message}, "Primary Activity Provider Code/Name");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Origination Date/Time");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Transcription Date/Time");
        this.add(typeof(TS), false, 0, 26, new System.Object[]{message}, "Edit Date/Time");
        this.add(typeof(XCN), false, 1, 60, new System.Object[]{message}, "Originator Code/Name");
        this.add(typeof(XCN), false, 0, 60, new System.Object[]{message}, "Assigned Document Authenticator");
        this.add(typeof(XCN), false, 1, 48, new System.Object[]{message}, "Transcriptionist Code/Name");
        this.add(typeof(EI), true, 1, 30, new System.Object[]{message}, "Unique Document Number");
        this.add(typeof(EI), false, 1, 30, new System.Object[]{message}, "Parent Document Number");
        this.add(typeof(EI), false, 0, 22, new System.Object[]{message}, "Placer Order Number");
        this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "Filler Order Number");
        this.add(typeof(ST), false, 1, 30, new System.Object[]{message}, "Unique Document File Name");
        this.add(typeof(ID), true, 0, 2, new System.Object[]{message, 271}, "Document Completion Status");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 272}, "Document Confidentiality Status");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 273}, "Document Availability Status");
        this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 275}, "Document Storage Status");
        this.add(typeof(ST), false, 1, 30, new System.Object[]{message}, "Document Change Reason");
        this.add(typeof(PPN), false, 0, 60, new System.Object[]{message}, "Authentication Person, Time Stamp");
        this.add(typeof(XCN), false, 0, 60, new System.Object[]{message}, "Distributed Copies (Code and Name of Recipients)");
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
     }
 }
Beispiel #25
0
 /**
    * Creates a PEO (Product Experience Observation) segment object that belongs to the given
    * message.
    */
 public PEO(IGroup parent, IModelClassFactory factory)
     : base(parent,factory)
 {
     IMessage message = Message;
     try {
        this.add(typeof(CE), false, 0, 60, new System.Object[]{message}, "Event Identifiers Used");
        this.add(typeof(CE), false, 0, 60, new System.Object[]{message}, "Event Symptom/Diagnosis Code");
        this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Event Onset Date/Time");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Event Exacerbation Date/Time");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Event Improved Date/Time");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Event Ended Data/Time");
        this.add(typeof(XAD), false, 1, 106, new System.Object[]{message}, "Event Location Occurred Address");
        this.add(typeof(ID), false, 0, 1, new System.Object[]{message, 237}, "Event Qualification");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 238}, "Event Serious");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 239}, "Event Expected");
        this.add(typeof(ID), false, 0, 1, new System.Object[]{message, 240}, "Event Outcome");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 241}, "Patient Outcome");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event Description From Others");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event From Original Reporter");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event Description From Patient");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event Description From Practitioner");
        this.add(typeof(FT), false, 0, 600, new System.Object[]{message}, "Event Description From Autopsy");
        this.add(typeof(CE), false, 0, 30, new System.Object[]{message}, "Cause Of Death");
        this.add(typeof(XPN), false, 1, 46, new System.Object[]{message}, "Primary Observer Name");
        this.add(typeof(XAD), false, 0, 106, new System.Object[]{message}, "Primary Observer Address");
        this.add(typeof(XTN), false, 0, 40, new System.Object[]{message}, "Primary Observer Telephone");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 242}, "Primary Observer’s Qualification");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 242}, "Confirmation Provided By");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Primary Observer Aware Date/Time");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 243}, "Primary Observer’s Identity May Be Divulged");
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
     }
 }
Beispiel #26
0
  /**
   * Creates a RXD (Pharmacy/Treatment Dispense) segment object that belongs to the given 
   * message.  
   */
	public RXD(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(NM), true, 1, 4, new System.Object[]{message}, "Dispense Sub-ID Counter");
       this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Dispense/Give Code");
       this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Date/Time Dispensed");
       this.add(typeof(NM), true, 1, 20, new System.Object[]{message}, "Actual Dispense Amount");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Actual Dispense Units");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Actual Dosage Form");
       this.add(typeof(ST), true, 1, 20, new System.Object[]{message}, "Prescription Number");
       this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Number of Refills Remaining");
       this.add(typeof(ST), false, 0, 200, new System.Object[]{message}, "Dispense Notes");
       this.add(typeof(XCN), false, 0, 200, new System.Object[]{message}, "Dispensing Provider");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 167}, "Substitution Status");
       this.add(typeof(CQ), false, 1, 10, new System.Object[]{message}, "Total Daily Dose");
       this.add(typeof(LA2), false, 1, 200, new System.Object[]{message}, "Dispense-To Location");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Needs Human Review");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Pharmacy/Treatment Supplier's Special Dispensing Instructions");
       this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Actual Strength");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Actual Strength Unit");
       this.add(typeof(ST), false, 0, 20, new System.Object[]{message}, "Substance Lot Number");
       this.add(typeof(TS), false, 0, 26, new System.Object[]{message}, "Substance Expiration Date");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Substance Manufacturer Name");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Indication");
       this.add(typeof(NM), false, 1, 20, new System.Object[]{message}, "Dispense Package Size");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Dispense Package Size Unit");
       this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 321}, "Dispense Package Method");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Supplementary Code");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Initiating Location");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Packaging/Assembly Location");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #27
0
 /**
    * Creates a STF (Staff identification segment) segment object that belongs to the given
    * message.
    */
 public STF(IGroup parent, IModelClassFactory factory)
     : base(parent,factory)
 {
     IMessage message = Message;
     try {
        this.add(typeof(CE), true, 1, 60, new System.Object[]{message}, "STF - Primary Key Value");
        this.add(typeof(CE), false, 0, 60, new System.Object[]{message}, "Staff ID Code");
        this.add(typeof(XPN), false, 1, 48, new System.Object[]{message}, "Staff Name");
        this.add(typeof(ID), false, 0, 2, new System.Object[]{message, 182}, "Staff Type");
        this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 1}, "Sex");
        this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Date of Birth");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 183}, "Active/Inactive Flag");
        this.add(typeof(CE), false, 0, 200, new System.Object[]{message}, "Department");
        this.add(typeof(CE), false, 0, 200, new System.Object[]{message}, "Service");
        this.add(typeof(TN), false, 0, 40, new System.Object[]{message}, "Phone");
        this.add(typeof(AD), false, 2, 106, new System.Object[]{message}, "Office/Home Address");
        this.add(typeof(CM_DIN), false, 0, 26, new System.Object[]{message}, "Activation Date");
        this.add(typeof(CM_DIN), false, 0, 26, new System.Object[]{message}, "Inactivation Date");
        this.add(typeof(CE), false, 0, 60, new System.Object[]{message}, "Backup Person ID");
        this.add(typeof(ST), false, 0, 40, new System.Object[]{message}, "E-mail Address");
        this.add(typeof(CE), false, 1, 200, new System.Object[]{message}, "Preferred Method of Contact");
        this.add(typeof(IS), false, 0, 1, new System.Object[]{message, 2}, "Marital Status");
        this.add(typeof(ST), false, 1, 20, new System.Object[]{message}, "Job Title");
        this.add(typeof(JCC), false, 1, 20, new System.Object[]{message}, "Job Code/Class");
        this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 66}, "Employment Status");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Additional Insured on Auto");
        this.add(typeof(DLN), false, 1, 25, new System.Object[]{message}, "Driver's License Number");
        this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Copy Auto Ins");
        this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Auto Ins. Expires");
        this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Date Last DMV Review");
        this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Date Next DMV Review");
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
     }
 }
 internal GroupTreeNode(IGroup group)
     : base(group.Name, 0, 1)
 {
     this.Group = group;
     this.Nodes.Add(String.Empty, DUMMY_NODE);
     this.Name = group.Name;
 }
Beispiel #29
0
  /**
   * Creates a BTX (Blood Product Transfusion/Disposition) segment object that belongs to the given 
   * message.  
   */
	public BTX(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID - BTX");
       this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "BC Donation ID");
       this.add(typeof(CNE), false, 1, 250, new System.Object[]{message}, "BC Component");
       this.add(typeof(CNE), false, 1, 250, new System.Object[]{message}, "BC Blood Group");
       this.add(typeof(CWE), false, 1, 250, new System.Object[]{message}, "CP Commercial Product");
       this.add(typeof(XON), false, 1, 250, new System.Object[]{message}, "CP Manufacturer");
       this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "CP Lot Number");
       this.add(typeof(NM), true, 1, 5, new System.Object[]{message}, "BP Quantity");
       this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "BP Amount");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "BP Units");
       this.add(typeof(CWE), true, 1, 250, new System.Object[]{message}, "BP Transfusion/Disposition Status");
       this.add(typeof(ID), true, 1, 1, new System.Object[]{message, 511}, "BP Message Status");
       this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "BP Date/Time of Status");
       this.add(typeof(XCN), false, 1, 250, new System.Object[]{message}, "BP Administrator");
       this.add(typeof(XCN), false, 1, 250, new System.Object[]{message}, "BP Verifier");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "BP Transfusion Start Date/Time of Status");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "BP Transfusion End Date/Time of Status");
       this.add(typeof(CWE), false, 0, 250, new System.Object[]{message}, "BP Adverse Reaction Type");
       this.add(typeof(CWE), false, 1, 250, new System.Object[]{message}, "BP Transfusion Interrupted Reason");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #30
0
  /**
   * Creates a IN1 (Insurance) segment object that belongs to the given 
   * message.  
   */
	public IN1(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
	IMessage message = Message;
    try {
       this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID - IN1");
       this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Insurance Plan ID");
       this.add(typeof(CX), true, 0, 250, new System.Object[]{message}, "Insurance Company ID");
       this.add(typeof(XON), false, 0, 250, new System.Object[]{message}, "Insurance Company Name");
       this.add(typeof(XAD), false, 0, 250, new System.Object[]{message}, "Insurance Company Address");
       this.add(typeof(XPN), false, 0, 250, new System.Object[]{message}, "Insurance Co Contact Person");
       this.add(typeof(XTN), false, 0, 250, new System.Object[]{message}, "Insurance Co Phone Number");
       this.add(typeof(ST), false, 1, 12, new System.Object[]{message}, "Group Number");
       this.add(typeof(XON), false, 0, 250, new System.Object[]{message}, "Group Name");
       this.add(typeof(CX), false, 0, 250, new System.Object[]{message}, "Insured's Group Emp ID");
       this.add(typeof(XON), false, 0, 250, new System.Object[]{message}, "Insured's Group Emp Name");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Plan Effective Date");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Plan Expiration Date");
       this.add(typeof(AUI), false, 1, 239, new System.Object[]{message}, "Authorization Information");
       this.add(typeof(IS), false, 1, 3, new System.Object[]{message, 86}, "Plan Type");
       this.add(typeof(XPN), false, 0, 250, new System.Object[]{message}, "Name Of Insured");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Insured's Relationship To Patient");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Insured's Date Of Birth");
       this.add(typeof(XAD), false, 0, 250, new System.Object[]{message}, "Insured's Address");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 135}, "Assignment Of Benefits");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 173}, "Coordination Of Benefits");
       this.add(typeof(ST), false, 1, 2, new System.Object[]{message}, "Coord Of Ben. Priority");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Notice Of Admission Flag");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Notice Of Admission Date");
       this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 136}, "Report Of Eligibility Flag");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Report Of Eligibility Date");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 93}, "Release Information Code");
       this.add(typeof(ST), false, 1, 15, new System.Object[]{message}, "Pre-Admit Cert (PAC)");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Verification Date/Time");
       this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Verification By");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 98}, "Type Of Agreement Code");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 22}, "Billing Status");
       this.add(typeof(NM), false, 1, 4, new System.Object[]{message}, "Lifetime Reserve Days");
       this.add(typeof(NM), false, 1, 4, new System.Object[]{message}, "Delay Before L.R. Day");
       this.add(typeof(IS), false, 1, 8, new System.Object[]{message, 42}, "Company Plan Code");
       this.add(typeof(ST), false, 1, 15, new System.Object[]{message}, "Policy Number");
       this.add(typeof(CP), false, 1, 12, new System.Object[]{message}, "Policy Deductible");
       this.add(typeof(CP), false, 1, 12, new System.Object[]{message}, "Policy Limit - Amount");
       this.add(typeof(NM), false, 1, 4, new System.Object[]{message}, "Policy Limit - Days");
       this.add(typeof(CP), false, 1, 12, new System.Object[]{message}, "Room Rate - Semi-Private");
       this.add(typeof(CP), false, 1, 12, new System.Object[]{message}, "Room Rate - Private");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Insured's Employment Status");
       this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 1}, "Insured's Administrative Sex");
       this.add(typeof(XAD), false, 0, 250, new System.Object[]{message}, "Insured's Employer's Address");
       this.add(typeof(ST), false, 1, 2, new System.Object[]{message}, "Verification Status");
       this.add(typeof(IS), false, 1, 8, new System.Object[]{message, 72}, "Prior Insurance Plan ID");
       this.add(typeof(IS), false, 1, 3, new System.Object[]{message, 309}, "Coverage Type");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 295}, "Handicap");
       this.add(typeof(CX), false, 0, 250, new System.Object[]{message}, "Insured's ID Number");
       this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 535}, "Signature Code");
       this.add(typeof(DT), false, 1, 8, new System.Object[]{message}, "Signature Code Date");
       this.add(typeof(ST), false, 1, 250, new System.Object[]{message}, "Insured's Birth Place");
       this.add(typeof(IS), false, 1, 2, new System.Object[]{message, 99}, "VIP Indicator");
    } catch (HL7Exception he) {
        HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
    }
  }
Beispiel #31
0
    public override void Initialize(IEventSystem eventSystem, IPoolManager poolManager, GroupFactory groupFactory, PrefabFactory prefabFactory)
    {
        base.Initialize(eventSystem, poolManager, groupFactory, prefabFactory);

        ignoreCollisionWithSiblings = this.Create(typeof(ViewComponent), typeof(IgnoreCollisionWithSibling));
    }
Beispiel #32
0
        public void Add(IBusiness business, ILocation location, IUserBusiness userBusiness, IGroup group)
        {
            try
            {
                Lock();

                _businessRepository.Add(business);
                _locationRepository.Add(location);
                _groupRepository.Add(group);

                foreach (var email in business.Members)
                {
                    var userGroup = new UserGroup
                    {
                        Id   = group.Id,
                        Name = group.Name,
                        Role = GroupRoles.Admin
                    };

                    _userRepository.AddBusinessWithEmail(userBusiness, email);
                    _userRepository.AddGroupWithEmail(userGroup, email);
                }
            }
            catch (Exception)
            {
                //TODO: Rollback logic
                throw new Exception("Failed to perform atomic action - " + Desc);
            }
            finally
            {
                Unlock();
            }
        }
 public UpdateCurrentProjectileSystem(Contexts contexts) : base(contexts.game)
 {
     _contexts  = contexts;
     _inventory = contexts.game.GetGroup(GameMatcher.AllOf(GameMatcher.InsideInventory, GameMatcher.Usage));
 }
Beispiel #34
0
 public void Initialize()
 {
     _carGroup = _context.GetGroup(GameMatcher.Speed);
 }
 public bool TryGet(string groupName, out IGroup group)
 {
     return(dictionary.TryGetValue(groupName, out group));
 }
 public RemoveGameObjectOnEntityDestroySystem(Contexts contexts)
 {
     entities = contexts.game.GetGroup(
         GameMatcher.AllOf(GameMatcher.Destroy, GameMatcher.Destroy)
         );
 }
Beispiel #37
0
 public ServerVehicleCmdExecuteSystemHandler(Contexts serverContexts) : base(serverContexts.vehicle)
 {
     _vehicles = serverContexts.vehicle.GetGroup(VehicleMatcher.AllOf(VehicleMatcher.EntityKey));
 }
Beispiel #38
0
 private bool IsThisLevelGroup(IGroup candidate)
 {
     return(this.CandidateAndParentAreRoot(candidate) ||
            this.CandidateParentAndParentEquals(candidate));
 }
Beispiel #39
0
        internal static int GroupUniqueKey(this IEnumerable <IGroup> groups, IGroup group)
        {
            var parents = GetParentsAndSelf(groups, group);

            return(GetGroupSequenceUniqueKey(parents));
        }
Beispiel #40
0
 private bool CandidateAndParentAreRoot(IGroup candidate)
 {
     return(this.Parent == null && candidate.Parent == null);
 }
Beispiel #41
0
        internal static IList <IGroup> GetParentsAndSelf(this IEnumerable <IGroup> groups, IGroup targetGroup)
        {
            foreach (var group in groups)
            {
                var parents = GetParentsAndSelfRecursive(new List <IGroup> {
                    group
                }, targetGroup);
                if (parents.Count > 0)
                {
                    return(parents);
                }
            }

            return(new List <IGroup>());
        }
Beispiel #42
0
 private bool NodeAlreadyPresent(IGroup candidate)
 {
     return(this.GroupNodes.Any(node => node.Group.StoreIdEquals(candidate)));
 }
Beispiel #43
0
 public ShootCommandSystem(Contexts contexts) : base(contexts.command)
 {
     m_blueprintService = Services.Get <BlueprintService>();
     m_contexts         = contexts;
     m_commands         = contexts.command.GetGroup(CommandMatcher.ShootCommand);
 }
Beispiel #44
0
        private static IList <IGroup> GetParentsAndSelfRecursive(IList <IGroup> parents, IGroup targetGroup)
        {
            var last = parents.Last();

            if (last == targetGroup)
            {
                return(parents);
            }

            if (last.HasSubgroups)
            {
                foreach (var childGroup in last.Subgroups)
                {
                    parents.Add(childGroup);
                    var childParents = GetParentsAndSelfRecursive(parents, targetGroup);
                    if (childParents.Count > 0)
                    {
                        return(childParents);
                    }
                    parents.Remove(childGroup);
                }
            }

            return(new List <IGroup>());
        }
Beispiel #45
0
 public HeroJumpSystem(GameContext game, InputContext input) : base(input)
 {
     _heroes = game.GetGroup(GameMatcher
                             .AllOf(GameMatcher.Hero, GameMatcher.Rigidbody, GameMatcher.Grounded)
                             .NoneOf(GameMatcher.Jumping));
 }
Beispiel #46
0
 static partial void FillBinaryContainedRecordTypeParseCustom(
     MutagenFrame frame,
     IGroup <T> item)
 {
     frame.Reader.Position += 4;
 }
Beispiel #47
0
        public SnakeMoveSystem(Contexts contexts) : base(contexts.game)
        {
            this.gameContext = contexts.game;

            this.snakes = this.gameContext.GetGroup(GameMatcher.AllOf(GameMatcher.SnakePosition, GameMatcher.SnakeDirection));
        }
Beispiel #48
0
 private void CreateTemplateElements(TransformBuilder.TransformBuilder builder, IGroup parentGroup)
 {
     builder.Append(GetTemplateElement(parentGroup));
     foreach (var childGroup in parentGroup.SubGroups)
     {
         CreateTemplateElements(builder, childGroup);
     }
 }
 public RenderTilesSystem(Contexts contexts, ISpritesService spritesService)
 {
     _spritesService = spritesService;
     _tiles          = contexts.game.GetGroup(GameMatcher.Tile);
 }
 public CheckKillEnemiesConditionSystem(GameContext context) : base(context)
 {
     enemyEntities = context.GetGroup(GameMatcher.Enemy);
 }
Beispiel #51
0
 public HealthSystem(Contexts contexts, int bufferCapacity)
 {
     _healthComponents = contexts.game.GetGroup(GameMatcher.Health);
     _buffer           = new List <GameEntity>(bufferCapacity);
 }
Beispiel #52
0
        public static void createVideo(string outputFile, string tempFileName, int width, int height, bool append)
        {
            if (!append)
            {
                tempFileName = outputFile;
            }

            using (ITimeline timeline = new DefaultTimeline())
            {
                IGroup group      = timeline.AddVideoGroup(32, width, height);
                ITrack videoTrack = group.AddTrack();

                foreach (var filename in Directory.GetFiles(@"Output\"))
                {
                    videoTrack.AddImage(filename, 0, (1.0 / 48.0));
                }

                ITrack audioTrack = timeline.AddAudioGroup().AddTrack();
                try
                {
                    using (AviFileRenderer renderer = new AviFileRenderer(timeline, tempFileName))
                    {
                        renderer.Render();
                    }
                }
                catch (Exception ex)
                {
                    throw;
                }
            }

            if (append)
            {
                using (ITimeline timeline = new DefaultTimeline())
                {
                    IGroup group      = timeline.AddVideoGroup(32, width, height);
                    ITrack videoTrack = group.AddTrack();

                    var firstVideoClip  = group.AddTrack().AddVideo(outputFile);
                    var secondVideoClip = group.AddTrack().AddVideo(tempFileName, firstVideoClip.Duration);

                    ITrack audioTrack = timeline.AddAudioGroup().AddTrack();
                    try
                    {
                        using (AviFileRenderer renderer = new AviFileRenderer(timeline, "_" + outputFile))
                        {
                            renderer.Render();
                        }

                        Application.DoEvents();
                        System.Threading.Thread.Sleep(1000);

                        File.Delete(outputFile);
                        File.Delete(tempFileName);
                        File.Move("_" + outputFile, outputFile);
                    }
                    catch (Exception ex)
                    {
                        throw;
                    }
                }
            }
        }
Beispiel #53
0
        protected override void RunInternal()
        {
            Program.Service.NewDocument(DocumentType.Standard);
            IDocument document = Program.Service.Document;

            IDocumentPage page1 = document.CreatePage("Page 1");
            ITreeNode     node1 = document.DocumentSettings.LayoutSetting.PageTree.AddChild(TreeNodeType.Page);

            node1.AttachedObject = page1;

            page1.Open();

            // Get the page view for base adaptive view.
            IPageView baseView1 = page1.PageViews[document.AdaptiveViewSet.Base.Guid];

            IImage image = baseView1.CreateWidget(WidgetType.Image) as IImage;

            image.Annotation.SetTextValue("CreatedTime", DateTime.Now.ToString());
            image.WidgetStyle.Height = 267;
            image.WidgetStyle.Width  = 116;
            image.Name    = "4.png";
            image.Tooltip = "A png image has 116 x 267 in size";

            // Creata a image widget.
            string imageFile = Path.Combine(Program.WORKING_IMAGES_DIRECTORY, "HangGame", "4.png");

            if (File.Exists(imageFile))
            {
                using (FileStream fileStream = new FileStream(imageFile, FileMode.Open, FileAccess.Read))
                {
                    MemoryStream imageStream = new MemoryStream();
                    fileStream.CopyTo(imageStream);
                    image.ImageStream = imageStream;
                }
            }

            // Create a flicking widget.
            IDynamicPanel dynamicPanel = baseView1.CreateWidget(WidgetType.DynamicPanel) as IDynamicPanel;

            dynamicPanel.Annotation.SetTextValue("CreatedTime", DateTime.Now.ToString());
            dynamicPanel.WidgetStyle.Height = 198;
            dynamicPanel.WidgetStyle.Width  = 152;
            dynamicPanel.WidgetStyle.X      = 250;
            dynamicPanel.WidgetStyle.Y      = 250;
            dynamicPanel.WidgetStyle.Z      = 1;
            dynamicPanel.IsAutomatic        = true;

            // Set start panel page as the first created page.
            dynamicPanel.StartPanelStatePage = dynamicPanel.CreatePanelStatePage("Panel 1");
            dynamicPanel.CreatePanelStatePage("Panel 2");
            dynamicPanel.CreatePanelStatePage("Panel 3");

            int imageFileName = 1;

            foreach (IPage statePage in dynamicPanel.PanelStatePages)
            {
                statePage.Open(); // Open page to edit.

                // Get the base view of state page.
                IPageView stateBaseView = statePage.PageViews[document.AdaptiveViewSet.Base.Guid];

                IImage statePageImage = stateBaseView.CreateWidget(WidgetType.Image) as IImage;
                statePageImage.Annotation.SetTextValue("CreatedTime", DateTime.Now.ToString());
                statePageImage.WidgetStyle.Height = 198;
                statePageImage.WidgetStyle.Width  = 152;
                string statePageImageFile = Path.Combine(Program.WORKING_IMAGES_DIRECTORY, "HangGame", imageFileName + ".png");
                if (File.Exists(statePageImageFile))
                {
                    using (FileStream fileStream = new FileStream(statePageImageFile, FileMode.Open, FileAccess.Read))
                    {
                        MemoryStream imageStream = new MemoryStream();
                        fileStream.CopyTo(imageStream);
                        statePageImage.ImageStream = imageStream;
                    }
                }
                statePage.Close(); // Close Page to release resources.

                imageFileName++;
            }

            // Create a group
            List <Guid> widgetGuidList = new List <Guid>();

            widgetGuidList.Add(image.Guid);
            widgetGuidList.Add(dynamicPanel.Guid);
            IGroup group = page1.CreateGroup(widgetGuidList);

            // Create a serialize writer.
            ISerializeWriter writer = document.CreateSerializeWriter(document.AdaptiveViewSet.Base.Guid);

            // Add widgets and groups you want to copy to the writer.
            writer.AddGroup(group);

            // Serialize widgets and groups to a stream.
            Stream stream = writer.WriteToStream();

            // DeflateStream Compress
            long         deflateCompressStart    = DateTime.Now.Ticks;
            MemoryStream deflateCompressedStream = new MemoryStream();

            using (DeflateStream deflateStream = new DeflateStream(deflateCompressedStream, CompressionMode.Compress, true))
            {
                stream.Position = 0;
                stream.CopyTo(deflateStream);
            }
            long   deflateCompressEnd  = DateTime.Now.Ticks;
            double deflateCompressRate = Math.Round((double)(stream.Length - deflateCompressedStream.Length) / (double)stream.Length * 100, 2);

            Console.WriteLine("DeflateStream compress length {0} to length {1}, compress rate: {2}%,  take ticks: {3}.",
                              stream.Length, deflateCompressedStream.Length, deflateCompressRate, deflateCompressEnd - deflateCompressStart);

            // GZipStream Compress
            long         gZipStreamCompressStart    = DateTime.Now.Ticks;
            MemoryStream gZipStreamCompressedStream = new MemoryStream();

            using (GZipStream gZipStream = new GZipStream(gZipStreamCompressedStream, CompressionMode.Compress, true))
            {
                stream.Position = 0;
                stream.CopyTo(gZipStream);
            }
            long   gZipStreamCompressEnd  = DateTime.Now.Ticks;
            double gZipStreamCompressRate = Math.Round((double)(stream.Length - gZipStreamCompressedStream.Length) / (double)stream.Length * 100, 2);

            Console.WriteLine("GZipStream compress length {0} to length {1}, compress rate: {2}%,  take ticks: {3}.",
                              stream.Length, gZipStreamCompressedStream.Length, gZipStreamCompressRate, gZipStreamCompressEnd - gZipStreamCompressStart);

            page1.Close();

            // Paste stream to page 2.
            IDocumentPage page2 = document.CreatePage("Page 2");
            ITreeNode     node2 = document.DocumentSettings.LayoutSetting.PageTree.AddChild(TreeNodeType.Page);

            node2.AttachedObject = page2;
            page2.Open();

            // Get the page view for base adaptive view.
            IPageView baseView2 = page2.PageViews[document.AdaptiveViewSet.Base.Guid];

            IDocumentPage page3 = document.CreatePage("Page 3");
            ITreeNode     node3 = document.DocumentSettings.LayoutSetting.PageTree.AddChild(TreeNodeType.Page);

            node3.AttachedObject = page3;
            page3.Open();

            // Get the page view for base adaptive view.
            IPageView baseView3 = page3.PageViews[document.AdaptiveViewSet.Base.Guid];

            // DeflateStream Decompress
            long deflateDecompressStart = DateTime.Now.Ticks;

            deflateCompressedStream.Position = 0;
            MemoryStream deflateDecompressedStream = new MemoryStream();

            using (DeflateStream deflateStream = new DeflateStream(deflateCompressedStream, CompressionMode.Decompress, true))
            {
                deflateStream.CopyTo(deflateDecompressedStream);
            }
            long deflateDecompressEnd = DateTime.Now.Ticks;

            Console.WriteLine("DeflateStream decompress take ticks: {0}.", deflateDecompressEnd - deflateDecompressStart);

            deflateDecompressedStream.Position = 0;
            baseView2.AddObjects(deflateDecompressedStream); // Paste to page 2.
            page2.Close();

            // GZipStream Decompress
            long gZipStreamDecompressStart = DateTime.Now.Ticks;

            gZipStreamCompressedStream.Position = 0;
            MemoryStream gZipStreamDecompressedStream = new MemoryStream();

            using (GZipStream gZipStream = new GZipStream(gZipStreamCompressedStream, CompressionMode.Decompress, true))
            {
                gZipStream.CopyTo(gZipStreamDecompressedStream);
            }
            long gZipStreamDecompressEnd = DateTime.Now.Ticks;

            Console.WriteLine("DeflateStream decompress take ticks: {0}.", gZipStreamDecompressEnd - gZipStreamDecompressStart);


            gZipStreamDecompressedStream.Position = 0;
            baseView3.AddObjects(gZipStreamDecompressedStream); // Paste to page 3.
            page3.Close();

            // Save the document to a pn file.
            string fileName = Path.Combine(Program.WORKING_DIRECTORY, _caseName + ".pn");

            Program.Service.Save(fileName);

            Program.Service.Close();
        }
Beispiel #54
0
 public EndDeathSystem(Contexts contexts)
 {
     _deathTimers = contexts.logic.GetGroup(LogicMatcher.DeathTimer);
 }
Beispiel #55
0
 private bool groupNeedsAlterntive(IGroup group)
 {
     return(CoreConstants.Groups.GroupsWithAlternative.Contains(group.Name));
 }
    public override void Initialize(IEventSystem eventSystem, IPoolManager poolManager, GroupFactory groupFactory, PrefabFactory prefabFactory)
    {
        base.Initialize(eventSystem, poolManager, groupFactory, prefabFactory);

        clickListeners = this.Create(typeof(Animator), typeof(ClickListener));
    }
Beispiel #57
0
 public StringTag(short id, DeviceAddress addr, IGroup group)
     : base(id, addr, group)
 {
 }
Beispiel #58
0
 // 获取有移动目标Move组和完成移动MoveComplete组
 public MoveSystem(Contexts contexts)
 {
     _moves         = contexts.game.GetGroup(GameMatcher.Move);
     _moveCompletes = contexts.game.GetGroup(GameMatcher.MoveComplete);
 }
Beispiel #59
0
 public FloatTag(short id, DeviceAddress addr, IGroup group)
     : base(id, addr, group)
 {
 }
Beispiel #60
0
 protected ITag(short id, DeviceAddress address, IGroup group)
 {
     _id         = id;
     _group      = group;
     _plcAddress = address;
 }