Skip to content

Repository files navigation

AuHealthIdentifiers

Australian Health Identifiers

A C# library for validating ✅ and generating 📃 Australian Health Identifiers 🪪

build NuGet Version License: MIT

Features

This project provides C# validators and generators for Australian Health Identifiers, including:

Installation

You can install the package via NuGet Package Manager with the following command:

Install-Package AuHealthIdentifiers

Or via the .NET CLI:

dotnet add package AuHealthIdentifiers

Usage

Here's a quick example of how to use the library to validate and generate an Individual Healthcare Identifier (IHI):

using AuHealthIds;

IndividualHealthIdentifier id = new IndividualHealthIdentifier();
var isValid = id.IsValid("800360123456789"); // returns true if valid
var newId = id.Generate(); // generates a new conformant IHI

Similar classes and methods are available for other identifier types.

The library also includes a static class IdentifierTools for simple validation:

using AuHealthIds;

IdentifierTools.ValidateId(IdentiferType.IHI, "800360123456789"); // returns true if valid

and extension methods for strings:

using AuHealthIds;

var isValid = "800360123456789".IsValidIhi(); // returns true if valid

Targets

The library targets .NET Standard 2.0, making it compatible with a wide range of .NET implementations including .NET Core and .NET Framework..

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes. Please include unit tests for any new validators/fixes.

For major changes, please open an issue first to discuss what you would like to change.

Credits

License

This project is licensed under the MIT License - see the LICENSE file for details.

The nuget icon is licensed under the free Flaticon License for personal and commercial purpose with attribution.

About

Validators and Generators for Australian Health Identifiers. Written in C#

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages