public Contract() {
     this.ruleField = new Attachment();
     this.legalField = new Attachment();
     this.friendlyField = new Attachment();
     this.termField = new List<ContractTerm>();
     this.signerField = new List<ContractSigner>();
     this.notaryField = new List<Reference>();
     this.executorField = new List<Reference>();
     this.witnessField = new List<Reference>();
     this.granteeField = new List<Reference>();
     this.grantorField = new List<Reference>();
     this.authorField = new List<Reference>();
     this.netField = new Money();
     this.pointsField = new @decimal();
     this.factorField = new @decimal();
     this.unitPriceField = new Money();
     this.quantityField = new Quantity();
     this.appliesField = new Period();
     this.issuedField = new dateTime();
     this.subtypeField = new List<CodeableConcept>();
     this.typeField = new CodeableConcept();
     this.subjectField = new List<Reference>();
     this.identifierField = new Identifier();
 }
 public Media() {
     this.contentField = new Attachment();
     this.durationField = new integer();
     this.framesField = new integer();
     this.widthField = new integer();
     this.heightField = new integer();
     this.deviceNameField = new @string();
     this.viewField = new CodeableConcept();
     this.operatorField = new Reference();
     this.subjectField = new Reference();
     this.createdField = new dateTime();
     this.identifierField = new List<Identifier>();
     this.subtypeField = new CodeableConcept();
     this.typeField = new MediaType();
 }