Class: FHIR::R4::Contract

Inherits:
Model show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r4/generated/resources/Contract.rb

Defined Under Namespace

Classes: ContentDefinition, Friendly, Legal, Rule, Signer, Term

Constant Summary collapse

MULTIPLE_TYPES =
{
  'topic' => ['CodeableConcept', 'Reference'],
  'legallyBinding' => ['Attachment', 'Reference']
}
SEARCH_PARAMS =
['authority', 'domain', 'identifier', 'instantiates', 'issued', 'patient', 'signer', 'status', 'subject', 'url']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Contract.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Contract.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Contract.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'Contract.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Contract.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Contract.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Contract.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Contract.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Contract.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'url' => {'type'=>'uri', 'path'=>'Contract.url', 'min'=>0, 'max'=>1},
  'version' => {'type'=>'string', 'path'=>'Contract.version', 'min'=>0, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/contract-status'=>['amended', 'appended', 'cancelled', 'disputed', 'entered-in-error', 'executable', 'executed', 'negotiable', 'offered', 'policy', 'rejected', 'renewed', 'revoked', 'resolved', 'terminated']}, 'type'=>'code', 'path'=>'Contract.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-status'}},
  'legalState' => {'valid_codes'=>{'http://hl7.org/fhir/contract-legalstate'=>['amended', 'appended', 'cancelled', 'disputed', 'entered-in-error', 'executable', 'executed', 'negotiable', 'offered', 'policy', 'rejected', 'renewed', 'revoked', 'resolved', 'terminated']}, 'type'=>'CodeableConcept', 'path'=>'Contract.legalState', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-legalstate'}},
  'instantiatesCanonical' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Contract'], 'type'=>'Reference', 'path'=>'Contract.instantiatesCanonical', 'min'=>0, 'max'=>1},
  'instantiatesUri' => {'type'=>'uri', 'path'=>'Contract.instantiatesUri', 'min'=>0, 'max'=>1},
  'contentDerivative' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/contract-content-derivative'=>['registration', 'retrieval', 'statement', 'shareable']}, 'type'=>'CodeableConcept', 'path'=>'Contract.contentDerivative', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-content-derivative'}},
  'issued' => {'type'=>'dateTime', 'path'=>'Contract.issued', 'min'=>0, 'max'=>1},
  'applies' => {'type'=>'Period', 'path'=>'Contract.applies', 'min'=>0, 'max'=>1},
  'expirationType' => {'valid_codes'=>{'http://hl7.org/fhir/contract-expiration-type'=>['breach']}, 'type'=>'CodeableConcept', 'path'=>'Contract.expirationType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-expiration-type'}},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Contract.subject', 'min'=>0, 'max'=>Float::INFINITY},
  'authority' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Contract.authority', 'min'=>0, 'max'=>Float::INFINITY},
  'domain' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Contract.domain', 'min'=>0, 'max'=>Float::INFINITY},
  'site' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Contract.site', 'min'=>0, 'max'=>Float::INFINITY},
  'name' => {'type'=>'string', 'path'=>'Contract.name', 'min'=>0, 'max'=>1},
  'title' => {'type'=>'string', 'path'=>'Contract.title', 'min'=>0, 'max'=>1},
  'subtitle' => {'type'=>'string', 'path'=>'Contract.subtitle', 'min'=>0, 'max'=>1},
  'alias' => {'type'=>'string', 'path'=>'Contract.alias', 'min'=>0, 'max'=>Float::INFINITY},
  'author' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Contract.author', 'min'=>0, 'max'=>1},
  'scope' => {'valid_codes'=>{'http://hl7.org/fhir/contract-scope'=>['policy']}, 'type'=>'CodeableConcept', 'path'=>'Contract.scope', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-scope'}},
  'topicCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'Contract.topic[x]', 'min'=>0, 'max'=>1},
  'topicReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Contract.topic[x]', 'min'=>0, 'max'=>1},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/contract-type'=>['privacy', 'disclosure', 'healthinsurance', 'supply', 'consent']}, 'type'=>'CodeableConcept', 'path'=>'Contract.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-type'}},
  'subType' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/contractsubtypecodes'=>['disclosure-ca', 'disclosure-us']}, 'type'=>'CodeableConcept', 'path'=>'Contract.subType', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-subtype'}},
  'contentDefinition' => {'type'=>'Contract::ContentDefinition', 'path'=>'Contract.contentDefinition', 'min'=>0, 'max'=>1},
  'term' => {'type'=>'Contract::Term', 'path'=>'Contract.term', 'min'=>0, 'max'=>Float::INFINITY},
  'supportingInfo' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Contract.supportingInfo', 'min'=>0, 'max'=>Float::INFINITY},
  'relevantHistory' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Provenance'], 'type'=>'Reference', 'path'=>'Contract.relevantHistory', 'min'=>0, 'max'=>Float::INFINITY},
  'signer' => {'type'=>'Contract::Signer', 'path'=>'Contract.signer', 'min'=>0, 'max'=>Float::INFINITY},
  'friendly' => {'type'=>'Contract::Friendly', 'path'=>'Contract.friendly', 'min'=>0, 'max'=>Float::INFINITY},
  'legal' => {'type'=>'Contract::Legal', 'path'=>'Contract.legal', 'min'=>0, 'max'=>Float::INFINITY},
  'rule' => {'type'=>'Contract::Rule', 'path'=>'Contract.rule', 'min'=>0, 'max'=>Float::INFINITY},
  'legallyBindingAttachment' => {'type'=>'Attachment', 'path'=>'Contract.legallyBinding[x]', 'min'=>0, 'max'=>1},
  'legallyBindingReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Composition', 'http://hl7.org/fhir/StructureDefinition/DocumentReference', 'http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', 'http://hl7.org/fhir/StructureDefinition/Contract'], 'type'=>'Reference', 'path'=>'Contract.legallyBinding[x]', 'min'=>0, 'max'=>1}
}

Constants included from FHIR::R4

PRIMITIVES, RESOURCES, TYPES

Constants included from FHIR

Account, ActivityDefinition, Address, AdverseEvent, Age, AllergyIntolerance, Annotation, Appointment, AppointmentResponse, Attachment, AuditEvent, BackboneElement, Basic, Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, CodeableConcept, Coding, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, ContactDetail, ContactPoint, Contract, Contributor, Count, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, DataRequirement, Definitions, DetectedIssue, Device, DeviceDefinition, DeviceMetric, DeviceRequest, DeviceUseStatement, DiagnosticReport, Distance, DocumentManifest, DocumentReference, DomainResource, Dosage, Duration, EffectEvidenceSynthesis, Element, ElementDefinition, Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, EvidenceVariable, ExampleScenario, ExplanationOfBenefit, Expression, Extension, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, GuidanceResponse, HealthcareService, HumanName, Identifier, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, MarketingStatus, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, Meta, MolecularSequence, Money, NamingSystem, Narrative, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, OperationOutcome, Organization, OrganizationAffiliation, PRIMITIVES, ParameterDefinition, Parameters, Patient, PaymentNotice, PaymentReconciliation, Period, Person, PlanDefinition, Population, Practitioner, PractitionerRole, Procedure, ProdCharacteristic, ProductShelfLife, Provenance, Quantity, Questionnaire, QuestionnaireResponse, FHIR::RESOURCES, FHIR::Range, FHIR::Ratio, FHIR::Reference, FHIR::RelatedArtifact, FHIR::RelatedPerson, FHIR::RequestGroup, FHIR::ResearchDefinition, FHIR::ResearchElementDefinition, FHIR::ResearchStudy, FHIR::ResearchSubject, FHIR::Resource, FHIR::RiskAssessment, FHIR::RiskEvidenceSynthesis, SampledData, Schedule, SearchParameter, ServiceRequest, Signature, Slot, Specimen, SpecimenDefinition, StructureDefinition, StructureDefinitionCompare, StructureMap, Subscription, Substance, SubstanceAmount, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, TYPES, Task, TerminologyCapabilities, TestReport, TestScript, Timing, TriggerDefinition, UsageContext, ValueSet, VerificationResult, VisionPrescription

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FHIR::R4

#fhir_version_string, #versioned_fhir_module

Methods included from FHIR

default_logger, fhir_version_string, logger, logger=, primitive?, versioned_fhir_module

Methods included from ClassMethods

#from_contents

Methods included from ClassXml

#from_xml, #valid?, #validate, #xml_node_to_hash

Methods included from InstanceXml

#hash_to_xml_node, #to_xml

Methods included from ClassJson

#from_json

Methods included from InstanceJson

#to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Methods included from Deprecate

#deprecate

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#aliasObject

0-* [ string ]



574
575
576
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 574

def alias
  @alias
end

#appliesObject

0-1 Period



565
566
567
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 565

def applies
  @applies
end

#authorObject

0-1 Reference(Patient|Practitioner|PractitionerRole|Organization)



575
576
577
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 575

def author
  @author
end

#authorityObject

0-* [ Reference(Organization) ]



568
569
570
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 568

def authority
  @authority
end

#containedObject

0-* [ Resource ]



553
554
555
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 553

def contained
  @contained
end

#contentDefinitionObject

0-1 Contract::ContentDefinition



581
582
583
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 581

def contentDefinition
  @contentDefinition
end

#contentDerivativeObject

0-1 CodeableConcept



563
564
565
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 563

def contentDerivative
  @contentDerivative
end

#domainObject

0-* [ Reference(Location) ]



569
570
571
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 569

def domain
  @domain
end

#expirationTypeObject

0-1 CodeableConcept



566
567
568
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 566

def expirationType
  @expirationType
end

#extensionObject

0-* [ Extension ]



554
555
556
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 554

def extension
  @extension
end

#friendlyObject

0-* [ Contract::Friendly ]



586
587
588
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 586

def friendly
  @friendly
end

#idObject

0-1 id



548
549
550
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 548

def id
  @id
end

#identifierObject

0-* [ Identifier ]



556
557
558
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 556

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



550
551
552
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 550

def implicitRules
  @implicitRules
end

#instantiatesCanonicalObject

0-1 Reference(Contract)



561
562
563
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 561

def instantiatesCanonical
  @instantiatesCanonical
end

#instantiatesUriObject

0-1 uri



562
563
564
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 562

def instantiatesUri
  @instantiatesUri
end

#issuedObject

0-1 dateTime



564
565
566
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 564

def issued
  @issued
end

#languageObject

0-1 code



551
552
553
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 551

def language
  @language
end

0-* [ Contract::Legal ]



587
588
589
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 587

def legal
  @legal
end

#legallyBindingAttachmentObject

0-1 Attachment



589
590
591
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 589

def legallyBindingAttachment
  @legallyBindingAttachment
end

#legallyBindingReferenceObject

0-1 Reference(Composition|DocumentReference|QuestionnaireResponse|Contract)



590
591
592
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 590

def legallyBindingReference
  @legallyBindingReference
end

#legalStateObject

0-1 CodeableConcept



560
561
562
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 560

def legalState
  @legalState
end

#metaObject

0-1 Meta



549
550
551
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 549

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



555
556
557
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 555

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



571
572
573
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 571

def name
  @name
end

#relevantHistoryObject

0-* [ Reference(Provenance) ]



584
585
586
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 584

def relevantHistory
  @relevantHistory
end

#ruleObject

0-* [ Contract::Rule ]



588
589
590
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 588

def rule
  @rule
end

#scopeObject

0-1 CodeableConcept



576
577
578
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 576

def scope
  @scope
end

#signerObject

0-* [ Contract::Signer ]



585
586
587
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 585

def signer
  @signer
end

#siteObject

0-* [ Reference(Location) ]



570
571
572
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 570

def site
  @site
end

#statusObject

0-1 code



559
560
561
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 559

def status
  @status
end

#subjectObject

0-* [ Reference(Resource) ]



567
568
569
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 567

def subject
  @subject
end

#subtitleObject

0-1 string



573
574
575
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 573

def subtitle
  @subtitle
end

#subTypeObject

0-* [ CodeableConcept ]



580
581
582
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 580

def subType
  @subType
end

#supportingInfoObject

0-* [ Reference(Resource) ]



583
584
585
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 583

def supportingInfo
  @supportingInfo
end

#termObject

0-* [ Contract::Term ]



582
583
584
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 582

def term
  @term
end

#textObject

0-1 Narrative



552
553
554
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 552

def text
  @text
end

#titleObject

0-1 string



572
573
574
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 572

def title
  @title
end

#topicCodeableConceptObject

0-1 CodeableConcept



577
578
579
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 577

def topicCodeableConcept
  @topicCodeableConcept
end

#topicReferenceObject

0-1 Reference(Resource)



578
579
580
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 578

def topicReference
  @topicReference
end

#typeObject

0-1 CodeableConcept



579
580
581
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 579

def type
  @type
end

#urlObject

0-1 uri



557
558
559
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 557

def url
  @url
end

#versionObject

0-1 string



558
559
560
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 558

def version
  @version
end

Instance Method Details

#resourceTypeObject



592
593
594
# File 'lib/fhir_models/r4/generated/resources/Contract.rb', line 592

def resourceType
  'Contract'
end