/// url = 'http://hl7.org/fhir/StructureMap/Claim4to5' /// name = 'Claim4to5' /// title = 'Claim Transforms: R4 to R5' /// status = 'active' uses "http://hl7.org/fhir/4.0/Claim" alias ClaimR4 as source uses "http://hl7.org/fhir/5.0/Claim" alias ClaimR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group Claim(source src : ClaimR4, target tgt : ClaimR5) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Claim.status-R4toR5', 'code'); src.type -> tgt.type; src.subType -> tgt.subType; src.use as v -> tgt.use = translate(v, 'http://hl7.org/fhir/ConceptMap/Claim.use-R4toR5', 'code'); src.patient -> tgt.patient; src.billablePeriod -> tgt.billablePeriod; src.created -> tgt.created; src.enterer -> tgt.enterer; src.insurer -> tgt.insurer; src.provider -> tgt.provider; src.priority -> tgt.priority; src.fundsReserve -> tgt.fundsReserve; src.related as s -> tgt.related as t then ClaimRelated(s, t); src.prescription -> tgt.prescription; src.originalPrescription -> tgt.originalPrescription; src.payee as s -> tgt.payee as t then ClaimPayee(s, t); src.referral -> tgt.referral; src.facility -> tgt.facility; src.careTeam as s -> tgt.careTeam as t then ClaimCareTeam(s, t); src.supportingInfo as s -> tgt.supportingInfo as t then ClaimSupportingInfo(s, t); src.diagnosis as s -> tgt.diagnosis as t then ClaimDiagnosis(s, t); src.procedure as s -> tgt.procedure as t then ClaimProcedure(s, t); src.insurance as s -> tgt.insurance as t then ClaimInsurance(s, t); src.accident as s -> tgt.accident as t then ClaimAccident(s, t); src.item as s -> tgt.item as t then ClaimItem(s, t); src.total -> tgt.total; } group ClaimRelated(source src, target tgt) extends BackboneElement { src.claim -> tgt.claim; src.relationship -> tgt.relationship; src.reference -> tgt.reference; } group ClaimPayee(source src, target tgt) extends BackboneElement { src.type -> tgt.type; src.party -> tgt.party; } // group ClaimEvent(source src, target tgt) extends BackboneElement { // src.type -> tgt.type; // src.when : dateTime -> tgt.when; // src.when : Period -> tgt.when; // } group ClaimCareTeam(source src, target tgt) extends BackboneElement { src.sequence -> tgt.sequence; src.provider -> tgt.provider; src.responsible -> tgt.responsible; src.role -> tgt.role; src.qualification -> tgt.specialty; } group ClaimSupportingInfo(source src, target tgt) extends BackboneElement { src.sequence -> tgt.sequence; src.category -> tgt.category; src.code -> tgt.code; src.timing : date -> tgt.timing; src.timing : Period -> tgt.timing; src.value : boolean -> tgt.value; src.value : string -> tgt.value; src.value : Quantity -> tgt.value; src.value : Attachment -> tgt.value; src.value : Reference -> tgt.value; src.reason -> tgt.reason; } group ClaimDiagnosis(source src, target tgt) extends BackboneElement { src.sequence -> tgt.sequence; src.diagnosis : CodeableConcept -> tgt.diagnosis; src.diagnosis : Reference -> tgt.diagnosis; src.type -> tgt.type; src.onAdmission -> tgt.onAdmission; } group ClaimProcedure(source src, target tgt) extends BackboneElement { src.sequence -> tgt.sequence; src.type -> tgt.type; src.date -> tgt.date; src.procedure : CodeableConcept -> tgt.procedure; src.procedure : Reference -> tgt.procedure; src.udi -> tgt.udi; } group ClaimInsurance(source src, target tgt) extends BackboneElement { src.sequence -> tgt.sequence; src.focal -> tgt.focal; src.identifier -> tgt.identifier; src.coverage -> tgt.coverage; src.businessArrangement -> tgt.businessArrangement; src.preAuthRef -> tgt.preAuthRef; src.claimResponse -> tgt.claimResponse; } group ClaimAccident(source src, target tgt) extends BackboneElement { src.date -> tgt.date; src.type -> tgt.type; src.location : Address -> tgt.location; src.location : Reference -> tgt.location; } group ClaimItem(source src, target tgt) extends BackboneElement { src.sequence -> tgt.sequence; src.careTeamSequence -> tgt.careTeamSequence; src.diagnosisSequence -> tgt.diagnosisSequence; src.procedureSequence -> tgt.procedureSequence; src.informationSequence -> tgt.informationSequence; src.revenue -> tgt.revenue; src.category -> tgt.category; src.productOrService -> tgt.productOrService; src.modifier -> tgt.modifier; src.programCode -> tgt.programCode; src.serviced : date -> tgt.serviced; src.serviced : Period -> tgt.serviced; src.location : CodeableConcept -> tgt.location; src.location : Address -> tgt.location; src.location : Reference -> tgt.location; src.quantity -> tgt.quantity; src.unitPrice -> tgt.unitPrice; src.factor -> tgt.factor; src.net -> tgt.net; src.udi -> tgt.udi; src.bodySite : CodeableConcept as s -> tgt.bodySite as t, t.site = s; src.encounter -> tgt.encounter; src.detail as s -> tgt.detail as t then ClaimItemDetail(s, t); } // group ClaimItemBodySite(source src, target tgt) extends BackboneElement { // src.site -> tgt.site; // src.subSite -> tgt.subSite; // } group ClaimItemDetail(source src, target tgt) extends BackboneElement { src.sequence -> tgt.sequence; src.revenue -> tgt.revenue; src.category -> tgt.category; src.productOrService -> tgt.productOrService; src.modifier -> tgt.modifier; src.programCode -> tgt.programCode; src.quantity -> tgt.quantity; src.unitPrice -> tgt.unitPrice; src.factor -> tgt.factor; src.net -> tgt.net; src.udi -> tgt.udi; src.subDetail as s -> tgt.subDetail as t then ClaimItemDetailSubDetail(s, t); } group ClaimItemDetailSubDetail(source src, target tgt) extends BackboneElement { src.sequence -> tgt.sequence; src.revenue -> tgt.revenue; src.category -> tgt.category; src.productOrService -> tgt.productOrService; src.modifier -> tgt.modifier; src.programCode -> tgt.programCode; src.quantity -> tgt.quantity; src.unitPrice -> tgt.unitPrice; src.factor -> tgt.factor; src.net -> tgt.net; src.udi -> tgt.udi; }
group ClaimEvent(source src, target tgt) extends BackboneElement { src.type -> tgt.type; src.when : dateTime -> tgt.when; src.when : Period -> tgt.when; }
group ClaimItemBodySite(source src, target tgt) extends BackboneElement { src.site -> tgt.site; src.subSite -> tgt.subSite; }