func (resource *Claim) MarshalJSON() ([]byte, error) {
	resource.ResourceType = "Claim"
	return json.Marshal(*resource)
}
Custom marshaller to add the resourceType property, as required by the specification
package models
import (
	"encoding/json"
	"errors"
	"fmt"
)
type Claim struct {
	DomainResource                 `bson:",inline"`
	Identifier                     []Identifier                     `bson:"identifier,omitempty" json:"identifier,omitempty"`
	Status                         string                           `bson:"status,omitempty" json:"status,omitempty"`
	Type                           *Coding                          `bson:"type,omitempty" json:"type,omitempty"`
	SubType                        []Coding                         `bson:"subType,omitempty" json:"subType,omitempty"`
	Ruleset                        *Coding                          `bson:"ruleset,omitempty" json:"ruleset,omitempty"`
	OriginalRuleset                *Coding                          `bson:"originalRuleset,omitempty" json:"originalRuleset,omitempty"`
	Created                        *FHIRDateTime                    `bson:"created,omitempty" json:"created,omitempty"`
	BillablePeriod                 *Period                          `bson:"billablePeriod,omitempty" json:"billablePeriod,omitempty"`
	InsurerIdentifier              *Identifier                      `bson:"insurerIdentifier,omitempty" json:"insurerIdentifier,omitempty"`
	InsurerReference               *Reference                       `bson:"insurerReference,omitempty" json:"insurerReference,omitempty"`
	ProviderIdentifier             *Identifier                      `bson:"providerIdentifier,omitempty" json:"providerIdentifier,omitempty"`
	ProviderReference              *Reference                       `bson:"providerReference,omitempty" json:"providerReference,omitempty"`
	OrganizationIdentifier         *Identifier                      `bson:"organizationIdentifier,omitempty" json:"organizationIdentifier,omitempty"`
	OrganizationReference          *Reference                       `bson:"organizationReference,omitempty" json:"organizationReference,omitempty"`
	Use                            string                           `bson:"use,omitempty" json:"use,omitempty"`
	Priority                       *Coding                          `bson:"priority,omitempty" json:"priority,omitempty"`
	FundsReserve                   *Coding                          `bson:"fundsReserve,omitempty" json:"fundsReserve,omitempty"`
	EntererIdentifier              *Identifier                      `bson:"entererIdentifier,omitempty" json:"entererIdentifier,omitempty"`
	EntererReference               *Reference                       `bson:"entererReference,omitempty" json:"entererReference,omitempty"`
	FacilityIdentifier             *Identifier                      `bson:"facilityIdentifier,omitempty" json:"facilityIdentifier,omitempty"`
	FacilityReference              *Reference                       `bson:"facilityReference,omitempty" json:"facilityReference,omitempty"`
	Related                        []ClaimRelatedClaimComponent     `bson:"related,omitempty" json:"related,omitempty"`
	PrescriptionIdentifier         *Identifier                      `bson:"prescriptionIdentifier,omitempty" json:"prescriptionIdentifier,omitempty"`
	PrescriptionReference          *Reference                       `bson:"prescriptionReference,omitempty" json:"prescriptionReference,omitempty"`
	OriginalPrescriptionIdentifier *Identifier                      `bson:"originalPrescriptionIdentifier,omitempty" json:"originalPrescriptionIdentifier,omitempty"`
	OriginalPrescriptionReference  *Reference                       `bson:"originalPrescriptionReference,omitempty" json:"originalPrescriptionReference,omitempty"`
	Payee                          *ClaimPayeeComponent             `bson:"payee,omitempty" json:"payee,omitempty"`
	ReferralIdentifier             *Identifier                      `bson:"referralIdentifier,omitempty" json:"referralIdentifier,omitempty"`
	ReferralReference              *Reference                       `bson:"referralReference,omitempty" json:"referralReference,omitempty"`
	Information                    []ClaimSpecialConditionComponent `bson:"information,omitempty" json:"information,omitempty"`
	Diagnosis                      []ClaimDiagnosisComponent        `bson:"diagnosis,omitempty" json:"diagnosis,omitempty"`
	Procedure                      []ClaimProcedureComponent        `bson:"procedure,omitempty" json:"procedure,omitempty"`
	PatientIdentifier              *Identifier                      `bson:"patientIdentifier,omitempty" json:"patientIdentifier,omitempty"`
	PatientReference               *Reference                       `bson:"patientReference,omitempty" json:"patientReference,omitempty"`
	Coverage                       []ClaimCoverageComponent         `bson:"coverage,omitempty" json:"coverage,omitempty"`
	Accident                       *ClaimAccidentComponent          `bson:"accident,omitempty" json:"accident,omitempty"`
	EmploymentImpacted             *Period                          `bson:"employmentImpacted,omitempty" json:"employmentImpacted,omitempty"`
	Hospitalization                *Period                          `bson:"hospitalization,omitempty" json:"hospitalization,omitempty"`
	Item                           []ClaimItemComponent             `bson:"item,omitempty" json:"item,omitempty"`
	Total                          *Quantity                        `bson:"total,omitempty" json:"total,omitempty"`
	MissingTeeth                   []ClaimMissingTeethComponent     `bson:"missingTeeth,omitempty" json:"missingTeeth,omitempty"`
}