Skip to content

Instantly share code, notes, and snippets.

@brianpos
Created April 26, 2022 08:09
Show Gist options
  • Save brianpos/f7928a17f6a98c1a467749bf246ecdb6 to your computer and use it in GitHub Desktop.
Save brianpos/f7928a17f6a98c1a467749bf246ecdb6 to your computer and use it in GitHub Desktop.
Initial pass at Extension Methods code generated for the AU Base extensions.
// <auto-generated/>
// Contents of: hl7.fhir.au.base version: 2.2.0
using System;
using System.Buffers;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
using Hl7.Fhir.Model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
namespace Hl7.Fhir.Model.test
{
/// <summary>
/// Implementation Guide Extension getter/setter extension methods for hl7.fhir.au.base
/// </summary>
public static class hl7_fhir_au_base_Extensions
{
#region << AddressIdentifier >>
/// <summary>
/// Identifier for the address
/// </summary>
public const string exturl_AddressIdentifier = "http://hl7.org.au/fhir/StructureDefinition/address-identifier";
/// <summary>
/// Identifier for the address
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/address-identifier</code>
/// </summary>
public static Identifier AddressIdentifier(this Address me)
{
return me.GetExtensionValue<Identifier>(exturl_AddressIdentifier);
}
#endregion
#region << AHPRAProfessionDetails >>
/// <summary>
/// AHPRA Profession Details
/// </summary>
public const string exturl_AHPRAProfessionDetails = "http://hl7.org.au/fhir/StructureDefinition/ahpraprofession-details";
/// <summary>
/// (first only) AHPRA Profession Details
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ahpraprofession-details</code>
/// </summary>
public static DataType AHPRAProfessionDetails(this IExtendable me)
{
return me.GetExtensionValue<DataType>(exturl_AHPRAProfessionDetails);
}
/// <summary>
/// (collection) AHPRA Profession Details
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ahpraprofession-details</code>
/// </summary>
public static IEnumerable<DataType> AHPRAProfessionDetailss(this IExtendable me)
{
return me.GetExtensions(exturl_AHPRAProfessionDetails).Select(e => e.Value);
}
#endregion
#region << AHPRARegistrationDetails >>
/// <summary>
/// AHPRA Registration Details
/// </summary>
public const string exturl_AHPRARegistrationDetails = "http://hl7.org.au/fhir/StructureDefinition/ahpraregistration-details";
/// <summary>
/// (first only) AHPRA Registration Details
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ahpraregistration-details</code>
/// </summary>
public static DataType AHPRARegistrationDetails(this IExtendable me)
{
return me.GetExtensionValue<DataType>(exturl_AHPRARegistrationDetails);
}
/// <summary>
/// (collection) AHPRA Registration Details
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ahpraregistration-details</code>
/// </summary>
public static IEnumerable<DataType> AHPRARegistrationDetailss(this IExtendable me)
{
return me.GetExtensions(exturl_AHPRARegistrationDetails).Select(e => e.Value);
}
#endregion
#region << AssociatedHealthcareService >>
/// <summary>
/// Associated healthcare service
/// </summary>
public const string exturl_AssociatedHealthcareService = "http://hl7.org.au/fhir/StructureDefinition/associated-healthcareservice";
/// <summary>
/// (first only) Associated healthcare service
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/associated-healthcareservice</code>
/// </summary>
public static ResourceReference AssociatedHealthcareService(this DomainResource me)
{
return me.GetExtensionValue<ResourceReference>(exturl_AssociatedHealthcareService);
}
/// <summary>
/// (collection) Associated healthcare service
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/associated-healthcareservice</code>
/// </summary>
public static IEnumerable<ResourceReference> AssociatedHealthcareServices(this DomainResource me)
{
return me.GetExtensions(exturl_AssociatedHealthcareService).Select(e => e.Value as ResourceReference);
}
#endregion
#region << HL7V2AssigningAuthority >>
/// <summary>
/// HL7 V2 assigning authority
/// </summary>
public const string exturl_HL7V2AssigningAuthority = "http://hl7.org.au/fhir/StructureDefinition/au-assigningauthority";
/// <summary>
/// (first only) HL7 V2 assigning authority
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/au-assigningauthority</code>
/// </summary>
public static DataType HL7V2AssigningAuthority(this Identifier me)
{
return me.GetExtensionValue<DataType>(exturl_HL7V2AssigningAuthority);
}
/// <summary>
/// (collection) HL7 V2 assigning authority
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/au-assigningauthority</code>
/// </summary>
public static IEnumerable<DataType> HL7V2AssigningAuthoritys(this Identifier me)
{
return me.GetExtensions(exturl_HL7V2AssigningAuthority).Select(e => e.Value);
}
#endregion
#region << ReceivingApplication >>
/// <summary>
/// HL7 V2 receiving application
/// </summary>
public const string exturl_ReceivingApplication = "http://hl7.org.au/fhir/StructureDefinition/au-receivingapplication";
/// <summary>
/// (first only) HL7 V2 receiving application
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/au-receivingapplication</code>
/// </summary>
public static DataType ReceivingApplication(this Endpoint me)
{
return me.GetExtensionValue<DataType>(exturl_ReceivingApplication);
}
/// <summary>
/// (collection) HL7 V2 receiving application
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/au-receivingapplication</code>
/// </summary>
public static IEnumerable<DataType> ReceivingApplications(this Endpoint me)
{
return me.GetExtensions(exturl_ReceivingApplication).Select(e => e.Value);
}
#endregion
#region << ReceivingFacility >>
/// <summary>
/// HL7 V2 receiving facility
/// </summary>
public const string exturl_ReceivingFacility = "http://hl7.org.au/fhir/StructureDefinition/au-receivingfacility";
/// <summary>
/// (first only) HL7 V2 receiving facility
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/au-receivingfacility</code>
/// </summary>
public static DataType ReceivingFacility(this Endpoint me)
{
return me.GetExtensionValue<DataType>(exturl_ReceivingFacility);
}
/// <summary>
/// (collection) HL7 V2 receiving facility
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/au-receivingfacility</code>
/// </summary>
public static IEnumerable<DataType> ReceivingFacilitys(this Endpoint me)
{
return me.GetExtensions(exturl_ReceivingFacility).Select(e => e.Value);
}
#endregion
#region << AustralianTimeZone >>
/// <summary>
/// AU time zone
/// </summary>
public const string exturl_AustralianTimeZone = "http://hl7.org.au/fhir/StructureDefinition/au-timezone";
/// <summary>
/// AU time zone
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/au-timezone</code>
/// </summary>
public static DataType AustralianTimeZone(this Time me)
{
return me.GetExtensionValue<DataType>(exturl_AustralianTimeZone);
}
#endregion
#region << AuthorRelatedPerson >>
/// <summary>
/// Related person that authored the resource
/// </summary>
public const string exturl_AuthorRelatedPerson = "http://hl7.org.au/fhir/StructureDefinition/author-related-person";
/// <summary>
/// Related person that authored the resource
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/author-related-person</code>
/// </summary>
public static DataType AuthorRelatedPerson(this DomainResource me)
{
return me.GetExtensionValue<DataType>(exturl_AuthorRelatedPerson);
}
#endregion
#region << ChangeDescription >>
/// <summary>
/// Change description
/// </summary>
public const string exturl_ChangeDescription = "http://hl7.org.au/fhir/StructureDefinition/change-description";
/// <summary>
/// (first only) Change description
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/change-description</code>
/// </summary>
public static FhirString ChangeDescription(this IExtendable me)
{
return me.GetExtensionValue<FhirString>(exturl_ChangeDescription);
}
/// <summary>
/// (collection) Change description
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/change-description</code>
/// </summary>
public static IEnumerable<FhirString> ChangeDescriptions(this IExtendable me)
{
return me.GetExtensions(exturl_ChangeDescription).Select(e => e.Value as FhirString);
}
#endregion
#region << ClosingTheGapRegistration >>
/// <summary>
/// Closing the Gap co-payment eligibility indicator
/// </summary>
public const string exturl_ClosingTheGapRegistration = "http://hl7.org.au/fhir/StructureDefinition/closing-the-gap-registration";
/// <summary>
/// Closing the Gap co-payment eligibility indicator
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/closing-the-gap-registration</code>
/// </summary>
public static FhirBoolean ClosingTheGapRegistration(this Patient me)
{
return me.GetExtensionValue<FhirBoolean>(exturl_ClosingTheGapRegistration);
}
#endregion
#region << ContactPurpose >>
/// <summary>
/// Contact purpose
/// </summary>
public const string exturl_ContactPurpose = "http://hl7.org.au/fhir/StructureDefinition/contact-purpose";
/// <summary>
/// Contact purpose
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/contact-purpose</code>
/// </summary>
public static CodeableConcept ContactPurpose(this ContactPoint me)
{
return me.GetExtensionValue<CodeableConcept>(exturl_ContactPurpose);
}
#endregion
#region << DateAccuracyIndicator >>
/// <summary>
/// Date accuracy indicator
/// </summary>
public const string exturl_DateAccuracyIndicator = "http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator";
/// <summary>
/// Date accuracy indicator
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator</code>
/// </summary>
public static Coding DateAccuracyIndicator(this IExtendable me)
{
return me.GetExtensionValue<Coding>(exturl_DateAccuracyIndicator);
}
#endregion
#region << DateOfArrivalAustralia >>
/// <summary>
/// The date a person first arrived in Australia, from another country, with the intention of living in Australia for one year or more
/// </summary>
public const string exturl_DateOfArrivalAustralia = "http://hl7.org.au/fhir/StructureDefinition/date-of-arrival";
/// <summary>
/// The date a person first arrived in Australia, from another country, with the intention of living in Australia for one year or more
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/date-of-arrival</code>
/// </summary>
public static Date DateOfArrivalAustralia(this IExtendable me)
{
return me.GetExtensionValue<Date>(exturl_DateOfArrivalAustralia);
}
#endregion
#region << DispenseNumber >>
/// <summary>
/// Number of this dispense
/// </summary>
public const string exturl_DispenseNumber = "http://hl7.org.au/fhir/StructureDefinition/dispense-number";
/// <summary>
/// Number of this dispense
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/dispense-number</code>
/// </summary>
public static Integer DispenseNumber(this MedicationDispense me)
{
return me.GetExtensionValue<Integer>(exturl_DispenseNumber);
}
#endregion
#region << EncounterDescription >>
/// <summary>
/// Description, overview or summary of an encounter
/// </summary>
public const string exturl_EncounterDescription = "http://hl7.org.au/fhir/StructureDefinition/encounter-description";
/// <summary>
/// Description, overview or summary of an encounter
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/encounter-description</code>
/// </summary>
public static FhirString EncounterDescription(this Encounter me)
{
return me.GetExtensionValue<FhirString>(exturl_EncounterDescription);
}
#endregion
#region << EncryptionCertificatePEMx509 >>
/// <summary>
/// PEM X509 certificate
/// </summary>
public const string exturl_EncryptionCertificatePEMx509 = "http://hl7.org.au/fhir/StructureDefinition/encryption-certificate-pem-x509";
/// <summary>
/// (first only) PEM X509 certificate
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/encryption-certificate-pem-x509</code>
/// </summary>
public static FhirString EncryptionCertificatePEMx509(this Endpoint me)
{
return me.GetExtensionValue<FhirString>(exturl_EncryptionCertificatePEMx509);
}
/// <summary>
/// (collection) PEM X509 certificate
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/encryption-certificate-pem-x509</code>
/// </summary>
public static IEnumerable<FhirString> EncryptionCertificatePEMx509s(this Endpoint me)
{
return me.GetExtensions(exturl_EncryptionCertificatePEMx509).Select(e => e.Value as FhirString);
}
#endregion
#region << Ethnicity >>
/// <summary>
/// Ethnicity
/// </summary>
public const string exturl_Ethnicity = "http://hl7.org.au/fhir/StructureDefinition/ethnicity";
/// <summary>
/// (first only) Ethnicity
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ethnicity</code>
/// </summary>
public static CodeableConcept Ethnicity(this Patient me)
{
return me.GetExtensionValue<CodeableConcept>(exturl_Ethnicity);
}
/// <summary>
/// (collection) Ethnicity
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ethnicity</code>
/// </summary>
public static IEnumerable<CodeableConcept> Ethnicitys(this Patient me)
{
return me.GetExtensions(exturl_Ethnicity).Select(e => e.Value as CodeableConcept);
}
#endregion
#region << IdentifierRoutability >>
/// <summary>
/// Identifier routability
/// </summary>
public const string exturl_IdentifierRoutability = "http://hl7.org.au/fhir/StructureDefinition/identifier-routability";
/// <summary>
/// Identifier routability
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/identifier-routability</code>
/// </summary>
public static DataType IdentifierRoutability(this Identifier me)
{
return me.GetExtensionValue<DataType>(exturl_IdentifierRoutability);
}
#endregion
#region << IHIRecordStatus >>
/// <summary>
/// IHI record status
/// </summary>
public const string exturl_IHIRecordStatus = "http://hl7.org.au/fhir/StructureDefinition/ihi-record-status";
/// <summary>
/// IHI record status
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ihi-record-status</code>
/// </summary>
public static Coding IHIRecordStatus(this Identifier me)
{
return me.GetExtensionValue<Coding>(exturl_IHIRecordStatus);
}
#endregion
#region << IHIStatus >>
/// <summary>
/// IHI status
/// </summary>
public const string exturl_IHIStatus = "http://hl7.org.au/fhir/StructureDefinition/ihi-status";
/// <summary>
/// IHI status
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ihi-status</code>
/// </summary>
public static Coding IHIStatus(this Identifier me)
{
return me.GetExtensionValue<Coding>(exturl_IHIStatus);
}
#endregion
#region << IHIVerified >>
/// <summary>
/// IHI Verification Date
/// </summary>
public const string exturl_IHIVerified = "http://hl7.org.au/fhir/StructureDefinition/ihi-verified";
/// <summary>
/// IHI Verification Date
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/ihi-verified</code>
/// </summary>
public static FhirDateTime IHIVerified(this Identifier me)
{
return me.GetExtensionValue<FhirDateTime>(exturl_IHIVerified);
}
#endregion
#region << AustralianIndigenousStatus >>
/// <summary>
/// Indigenous status
/// </summary>
public const string exturl_AustralianIndigenousStatus = "http://hl7.org.au/fhir/StructureDefinition/indigenous-status";
/// <summary>
/// Indigenous status
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/indigenous-status</code>
/// </summary>
public static Coding AustralianIndigenousStatus(this Patient me)
{
return me.GetExtensionValue<Coding>(exturl_AustralianIndigenousStatus);
}
#endregion
#region << InformationRecipient >>
/// <summary>
/// Information recipient
/// </summary>
public const string exturl_InformationRecipient = "http://hl7.org.au/fhir/StructureDefinition/information-recipient";
/// <summary>
/// (first only) Information recipient
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/information-recipient</code>
/// </summary>
public static DataType InformationRecipient(this Composition me)
{
return me.GetExtensionValue<DataType>(exturl_InformationRecipient);
}
/// <summary>
/// (collection) Information recipient
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/information-recipient</code>
/// </summary>
public static IEnumerable<DataType> InformationRecipients(this Composition me)
{
return me.GetExtensions(exturl_InformationRecipient).Select(e => e.Value);
}
#endregion
#region << MedicationBrandName >>
/// <summary>
/// Medication brand name
/// </summary>
public const string exturl_MedicationBrandName = "http://hl7.org.au/fhir/StructureDefinition/medication-brand-name";
/// <summary>
/// Medication brand name
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/medication-brand-name</code>
/// </summary>
public static FhirString MedicationBrandName(this IExtendable me)
{
return me.GetExtensionValue<FhirString>(exturl_MedicationBrandName);
}
#endregion
#region << MedicationGenericName >>
/// <summary>
/// Medication generic drug name
/// </summary>
public const string exturl_MedicationGenericName = "http://hl7.org.au/fhir/StructureDefinition/medication-generic-name";
/// <summary>
/// Medication generic drug name
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/medication-generic-name</code>
/// </summary>
public static FhirString MedicationGenericName(this IExtendable me)
{
return me.GetExtensionValue<FhirString>(exturl_MedicationGenericName);
}
#endregion
#region << MedicationLongTerm >>
/// <summary>
/// Medication long term use indicator
/// </summary>
public const string exturl_MedicationLongTerm = "http://hl7.org.au/fhir/StructureDefinition/medication-long-term";
/// <summary>
/// Medication long term use indicator
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/medication-long-term</code>
/// </summary>
public static FhirBoolean MedicationLongTerm(this MedicationStatement me)
{
return me.GetExtensionValue<FhirBoolean>(exturl_MedicationLongTerm);
}
#endregion
#region << MedicationStrength >>
/// <summary>
/// Medication strength
/// </summary>
public const string exturl_MedicationStrength = "http://hl7.org.au/fhir/StructureDefinition/medication-strength";
/// <summary>
/// Medication strength
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/medication-strength</code>
/// </summary>
public static FhirString MedicationStrength(this Medication me)
{
return me.GetExtensionValue<FhirString>(exturl_MedicationStrength);
}
#endregion
#region << MedicationType >>
/// <summary>
/// Medication type
/// </summary>
public const string exturl_MedicationType = "http://hl7.org.au/fhir/StructureDefinition/medication-type";
/// <summary>
/// (first only) Medication type
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/medication-type</code>
/// </summary>
public static Coding MedicationType(this IExtendable me)
{
return me.GetExtensionValue<Coding>(exturl_MedicationType);
}
/// <summary>
/// (collection) Medication type
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/medication-type</code>
/// </summary>
public static IEnumerable<Coding> MedicationTypes(this IExtendable me)
{
return me.GetExtensions(exturl_MedicationType).Select(e => e.Value as Coding);
}
#endregion
#region << MinimumIntervalBetweenRepeats >>
/// <summary>
/// Minimum allowed time period between dispensing repeats
/// </summary>
public const string exturl_MinimumIntervalBetweenRepeats = "http://hl7.org.au/fhir/StructureDefinition/minimum-interval-between-repeats";
/// <summary>
/// Minimum allowed time period between dispensing repeats
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/minimum-interval-between-repeats</code>
/// </summary>
public static Duration MinimumIntervalBetweenRepeats(this MedicationRequest me)
{
return me.GetExtensionValue<Duration>(exturl_MinimumIntervalBetweenRepeats);
}
#endregion
#region << NoFixedAddress >>
/// <summary>
/// No fixed address indicator
/// </summary>
public const string exturl_NoFixedAddress = "http://hl7.org.au/fhir/StructureDefinition/no-fixed-address";
/// <summary>
/// No fixed address indicator
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/no-fixed-address</code>
/// </summary>
public static FhirBoolean NoFixedAddress(this Address me)
{
return me.GetExtensionValue<FhirBoolean>(exturl_NoFixedAddress);
}
#endregion
#region << GroundsForConcurrentSupplyOfMedication >>
/// <summary>
/// Grounds for concurrent supply of medication
/// </summary>
public const string exturl_GroundsForConcurrentSupplyOfMedication = "http://hl7.org.au/fhir/StructureDefinition/subsidised-concurrent-supply";
/// <summary>
/// (first only) Grounds for concurrent supply of medication
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/subsidised-concurrent-supply</code>
/// </summary>
public static Coding GroundsForConcurrentSupplyOfMedication(this IExtendable me)
{
return me.GetExtensionValue<Coding>(exturl_GroundsForConcurrentSupplyOfMedication);
}
/// <summary>
/// (collection) Grounds for concurrent supply of medication
/// <br/><code>http://hl7.org.au/fhir/StructureDefinition/subsidised-concurrent-supply</code>
/// </summary>
public static IEnumerable<Coding> GroundsForConcurrentSupplyOfMedications(this IExtendable me)
{
return me.GetExtensions(exturl_GroundsForConcurrentSupplyOfMedication).Select(e => e.Value as Coding);
}
#endregion
}
}
// end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment