Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source generation #147

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

almostchristian
Copy link

  • Added source generation package Microsoft.Health.Fhir.CodeGeneration.
  • Updates shared libraries to multitarget netstandard2.0 which is required for source generators

Usage:

[GeneratedFhir("Models/Pokemon.StructureDefinition.json",
   TerminologyResources = new[] { "Models/PokemonType.CodeSystem.json", "Models/PokemonType.ValueSet.json" })]
public partial class Pokemon
{
}

Currently the FhirVersionInfo used for code generation is hard-coded to R4B, and I don't see any difference when it's R5.

Resolves #140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Source generation for custom resources
1 participant